Search found 23 matches

by scts102
Wed Apr 12, 2006 5:37 pm
Forum: PHP - Code
Topic: cut portion of image
Replies: 1
Views: 313

cut portion of image

Hello, I was wondering if it is possable to take an image, crop out a segment, and save that segment as a different file. I looked at the ImageCopy function, but I am sort of lost in it...the php manual does not elaborate much on it. Here is what I have found: int ImageCopy (resource dst_im, resourc...
by scts102
Sun Mar 12, 2006 5:59 pm
Forum: Miscellaneous
Topic: Forms : "post"ing
Replies: 1
Views: 1277

Forms : "post"ing

Hello,

I was wondering if there was a way to post information from a form to a page without displaying that page.
ex:
My form: http://www.mysite.com/form.htm
which posts to http://www.myothersite.com/formdata.htm

How can I have my form post to the other page without displaying the resulting page?
by scts102
Sat Mar 11, 2006 3:58 pm
Forum: PHP - Code
Topic: Server Query
Replies: 3
Views: 417

Yes, you are correct. I should have seen that, I had a long day yesterday. Thanks. My new issue: when the server is queried, the player list is generated, but it also includes all the extra information, like player stats and current round information. Is there a way to exclude this? I was looking ar...
by scts102
Fri Mar 10, 2006 9:52 pm
Forum: PHP - Code
Topic: Server Query
Replies: 3
Views: 417

Server Query

Hello, I recently downloaded the gsQuery package. I have messed around with it, and figured out how it functioned. Here is one of the full examples: <?php header("Content-type: text/html", TRUE); // application/xhtml+xml normally, but M$ does not know what web standards are... ?> <?php /* ...
by scts102
Wed Jan 18, 2006 3:54 pm
Forum: PHP - Code
Topic: Read text from image
Replies: 1
Views: 199

Read text from image

Hello, Is is possible to read the text from a png file in php? The length of the text would always be 32 characters, with never any spaces. The string starts after a * and ends at the next * eg: *ddb95d7abcdfb7f79f96ba59aa89waa6* Now, each image would have a different set of characters, but they wou...
by scts102
Sun Jan 15, 2006 10:13 pm
Forum: PHP - Code
Topic: PHPBB topic sql
Replies: 2
Views: 191

PHPBB topic sql

I would like some help from somebody who knows how phpbb works....
I am not looking to create a forum...that is way beyond me :P

I would just like the sql code that would be needed to create a new topic. I would not be going through phpbb itself, it would be a seperate script on my site.
by scts102
Fri Dec 09, 2005 4:48 pm
Forum: PHP - Code
Topic: Image Cache
Replies: 3
Views: 298

Okay...that sounds doable

How do I save the dynamic image to a file?
by scts102
Fri Dec 09, 2005 4:02 pm
Forum: PHP - Code
Topic: Image Cache
Replies: 3
Views: 298

Image Cache

I am using GD to place text on an existing image. This works fine. However, each time the image is called, a server is queried...Now, this image may appear on many pages, so I would only want the image to update every 5 or 10 minutes. How can I implement a cache? I read something about headers and e...
by scts102
Tue Dec 06, 2005 5:40 pm
Forum: PHP - Code
Topic: fread();
Replies: 6
Views: 378

Sorry, I should have explained better: This is an extansion off of another topic (See: Query Server in PHP-Code) Basically, a connection is opened to a server, and a command is sent to it. I need to get the server's response, and display it (A "query", if you will). the response will alway...
by scts102
Tue Dec 06, 2005 5:02 pm
Forum: PHP - Code
Topic: fread();
Replies: 6
Views: 378

Could you please give me an example of how to use that? I tried it, but I got an error, something along the lines of expecting string resource. here is what I tried: $fp = @fsockopen("tcp://".server($addr), $port, $errno, $errstr); $tmp= hlsend($fp, "\\version\\"); $c = ''; $c .=...
by scts102
Tue Dec 06, 2005 6:38 am
Forum: PHP - Code
Topic: fread();
Replies: 6
Views: 378

fread();

I am using the fread function to get data from a remote server. The problem is, however, that I do not know the length of data being recieved.

How can I get the data from the remote server without knowing the length of the data?
by scts102
Tue Dec 06, 2005 6:36 am
Forum: PHP - Code
Topic: Query Server
Replies: 2
Views: 406

I figured this out...I needed to change the length of bytes that were being read.
by scts102
Mon Dec 05, 2005 7:05 pm
Forum: PHP - Code
Topic: Query Server
Replies: 2
Views: 406

Query Server

Okay... I am trying to query an application that I developed via php. Here is what I am confused on: -The socket on the app is using a command that sends just text. It does not use a file stream or anything like that. Will php accept this? -I have connected to the application using the following cod...
by scts102
Fri Nov 25, 2005 5:04 pm
Forum: PHP - Code
Topic: Handle Errors
Replies: 2
Views: 290

Yes, you were right in thinking my logic is off. Your second suggestion is what I was looking for.

Thank you
by scts102
Fri Nov 25, 2005 4:42 pm
Forum: PHP - Code
Topic: Handle Errors
Replies: 2
Views: 290

Handle Errors

Hey guys, I have been learning bits of php here and there, and I was wondering how to handle errors. For example , if I were to do a sql query (That returned an empty set), and assign variables to results in specific fields, how would I display my own error message, rather than mysql_result(): unabl...