RE: [PHP] Strange Problem with ctype_digit

2004-09-27 Thread Ed Lazor
-Original Message- CODE: ? print ctype_digit( 1094164380 ); ? END OF CODE When I run the above code, my apache server performs an illegal operation and shuts down. It will keep doing this every 20 seconds or so until you restart/stop the server manually. Does anyone else have

[PHP] problem with file upload script

2004-09-27 Thread AMC
Hi, Here is a script I'm using to upload files. Can anyone see anything wrong with it? No file is uploaded when I click the upload button !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html head title/title meta name=GENERATOR content=Microsoft Visual Studio.NET 7.0 meta

RE: [PHP] problem with file upload script

2004-09-27 Thread Jay Blanchard
[snip] Here is a script I'm using to upload files. Can anyone see anything wrong with it? No file is uploaded when I click the upload button [/snip] Start here http://us4.php.net/manual/en/features.file-upload.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] mysql_num_rows()

2004-09-27 Thread PHP Junkie
Ave, In one of my scripts, I'm getting the error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /Library/WebServer/Documents/limiteduse.net/dumptoday.php on line 56 I¹m not clearly sure why. I¹m running PHP5 with mySQL 4 ... Is there a compatibility issues

Re: [PHP] mysql_num_rows()

2004-09-27 Thread M. Sokolewicz
Generally you've got an error in your SQL at such points. If you do, mysql_query return false, and false is nor a valid MySQL result, so mysql_num_rows errors out. Check using mysql_error() to see what you're doing wrong Php Junkie wrote: Ave, In one of my scripts, I'm getting the error:

[PHP] Strange Problem with ctype_digit

2004-09-27 Thread Stephen Edmonds
Hi all, Noticed a strange problem when I was testing a time stamp to make sure it was all numbers. After an hour of debugging, I traced the problem to the ctype_digit funciton. CODE: ? print ctype_digit( 1094164380 ); ? END OF CODE When I run the above code, my apache server performs an

RE: [PHP] mysql_num_rows()

2004-09-27 Thread Jay Blanchard
[snip] In one of my scripts, I'm getting the error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /Library/WebServer/Documents/limiteduse.net/dumptoday.php on line 56 I¹m not clearly sure why. I¹m running PHP5 with mySQL 4 ... Is there a compatibility

[PHP] Structure of Directories?

2004-09-27 Thread Robert Sossomon
What I would like to do is create a list at the top of each page that tells the path to the file starting at the root page and links to that same area so that a document residing in /webroot/folder1/folder2/file.html would have Home Folder1 Folder2 at the top of the page. What's the BEST way

Re: [PHP] mysql_num_rows()

2004-09-27 Thread Jason Wong
On Tuesday 28 September 2004 03:15, PHP Junkie wrote: In one of my scripts, I'm getting the error: Use mysql_error() after every call to the mysql_*() functions. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

[PHP] Re: problem with file upload script

2004-09-27 Thread Mike
I don't know if I'm right, but ckeck this out: the echo $_FILES['file']['name'] variable holds the file name on the computer that uploads the file. and in one place you try to move the uploaded file from the temp folder back into the folder where it came from. I suggest you create a new folder

Re: [PHP] imagejpeg() problem

2004-09-27 Thread Jason Wong
On Tuesday 28 September 2004 02:16, Mike wrote: What i'd like to know is whether php can output some quality jpegs, and if so, then how? imagecopyresampled() -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

RE: [PHP] Structure of Directories?

2004-09-27 Thread Jay Blanchard
[snip] What I would like to do is create a list at the top of each page that tells the path to the file starting at the root page and links to that same area so that a document residing in /webroot/folder1/folder2/file.html would have Home Folder1 Folder2 at the top of the page. What's the

[PHP] is_dir on WIndows

2004-09-27 Thread Mark
I'm having a problem I haven't encountered before. I'm using PHP 4.3.4 (upgrading the 4.3.9, but humor me) on Windows. I'm using the following code snippet to try to get all the subdirectories of a directory into an array. $maildir=MERCURY./MAIL; $handle=opendir($maildir); // echo $handle;

Re: [PHP] imagejpeg() problem

2004-09-27 Thread Mike
I tried that function too, but the same result... Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tuesday 28 September 2004 02:16, Mike wrote: What i'd like to know is whether php can output some quality jpegs, and if so, then how? imagecopyresampled() -- Jason

Re: [PHP] imagejpeg() problem

2004-09-27 Thread Jonathan Haddad
Mike wrote: the resizing part goes well; I don't really know what the imageinterlace function does, but I used it in desperation. Why: the output image's quality is visibly inferior to the source's. And I want the image to look good. The source is a jpeg (dinamic). As you probably have noticed,

Re: [PHP] is_dir on WIndows

2004-09-27 Thread Chris
if (is_dir($file) ($file!=.) ($file!=..)) { $users[]=$file; } It's only adding it to the array if all 3 of those are true. and since $file can't be both '.' and '..' at the same time, it's never matching. I'd do something like: if (is_dir($file) || ($file!=.) || ($file!=..))

Re: [PHP] is_dir on WIndows

2004-09-27 Thread John Nichel
Chris wrote: if (is_dir($file) ($file!=.) ($file!=..)) { $users[]=$file; } It's only adding it to the array if all 3 of those are true. and since $file can't be both '.' and '..' at the same time, it's never matching. I'd do something like: if (is_dir($file) || ($file!=.) ||

[PHP] Re: problem with file upload script

2004-09-27 Thread AMC
Hi, I changed the script to upload to a different directory but it still doesn't work, any ideas? I really appreciate the help. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html head title/title meta name=GENERATOR content=Microsoft Visual Studio.NET 7.0 meta

Re: [PHP] is_dir on WIndows

2004-09-27 Thread Jason Wong
On Tuesday 28 September 2004 03:54, Mark wrote: With the echos above in place, I get the resource handle, and it echos everything you would expect except that is_dir() fails to recognize the directories. Because is_dir() expects a path to the file as well, otherwise it would be trying to

Re: [PHP] is_dir on WIndows

2004-09-27 Thread Mark
--- John Nichel [EMAIL PROTECTED] wrote: Chris wrote: if (is_dir($file) ($file!=.) ($file!=..)) { $users[]=$file; } It's only adding it to the array if all 3 of those are true. and since $file can't be both '.' and '..' at the same time, it's never matching.

[PHP] Re: problem with file upload script

2004-09-27 Thread Daniel Watrous
Someone sent you a link earlier to a php page explaining how to upload files. I think that you will find as you read that page that you are missing SOME HTML in the way you build your form. If in doubt, try to copy and paste from that page exactly to see if it works! DW

Re: [PHP] is_dir on WIndows

2004-09-27 Thread Mark
--- Jason Wong [EMAIL PROTECTED] wrote: On Tuesday 28 September 2004 03:54, Mark wrote: With the echos above in place, I get the resource handle, and it echos everything you would expect except that is_dir() fails to recognize the directories. Because is_dir() expects a path to the

Re: [PHP] is_dir on WIndows

2004-09-27 Thread John Nichel
Mark wrote: --- John Nichel [EMAIL PROTECTED] wrote: Chris wrote: if (is_dir($file) ($file!=.) ($file!=..)) { $users[]=$file; } It's only adding it to the array if all 3 of those are true. and since $file can't be both '.' and '..' at the same time, it's never matching. I'd do

[PHP] Re: blank emails

2004-09-27 Thread Jed R. Brubaker
But wouldn't that mean that the email that is being sent to my client would be blank as well? Manuel Lemos [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, On 09/27/2004 12:27 PM, Jed R. Brubaker wrote: I have run into a problem with my email class. A bunch of reciepients

[PHP] Website with a Instant Messenger

2004-09-27 Thread Ricardo Cezar
Hello all, I want to put a instant messenger in a website. People connect to this website to stay in touch with each other. There is a photo album for everyone, a Forum, groups... The IM must work like ICQ, MSN and other, but via web. Users of the site can add other users to the list, and when

Re: [PHP] is_dir on WIndows

2004-09-27 Thread Mark
--- Jason Wong [EMAIL PROTECTED] wrote: On Tuesday 28 September 2004 03:54, Mark wrote: With the echos above in place, I get the resource handle, and it echos everything you would expect except that is_dir() fails to recognize the directories. Because is_dir() expects a path to the

Re: [PHP] is_dir on WIndows

2004-09-27 Thread Curt Zirzow
* Thus wrote Mark: I'm having a problem I haven't encountered before. I'm using PHP 4.3.4 (upgrading the 4.3.9, but humor me) on Windows. I'm using the following code snippet to try to get all the subdirectories of a directory into an array. $maildir=MERCURY./MAIL;

RE: [PHP] Website with a Instant Messenger

2004-09-27 Thread Jay Blanchard
[snip] Where can I start? [/snip] http://www.google.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Website with a Instant Messenger

2004-09-27 Thread Ricardo Cezar
Well, I think everybody starts there, including me! :) I´m searching google... But thanks :) Jay Blanchard [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] [snip] Where can I start? [/snip] http://www.google.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Website with a Instant Messenger

2004-09-27 Thread Jason Wong
On Tuesday 28 September 2004 04:42, Ricardo Cezar wrote: I want to put a instant messenger in a website. People connect to this website to stay in touch with each other. There is a photo album for everyone, a Forum, groups... The IM must work like ICQ, MSN and other, but via web. Users of

[PHP] Re: blank emails

2004-09-27 Thread M. Sokolewicz
Actually, most of the times I encountered this problem was when I was sending complicated mime email. PlainText emails are built up of headers, and the plaintext message. More complex emails use MIME to seperate multiple things, eg. attachments, different versions of the text (some send both a

Re: [PHP] Website with a Instant Messenger

2004-09-27 Thread Brent Clements
Implementing Jabber is probably his best bet. I believe there are a few php based interfaces for it. -Brent - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 27, 2004 4:01 PM Subject: Re: [PHP] Website with a Instant Messenger On

[PHP] Re: blank emails

2004-09-27 Thread Manuel Lemos
Hello, On 09/27/2004 05:41 PM, Jed R. Brubaker wrote: But wouldn't that mean that the email that is being sent to my client would be blank as well? It depends on the actual cause of the mails being sent as blanks. The class provides some workarounds to avoid some causes that may lead to your

Re: [PHP] Website with a Instant Messenger

2004-09-27 Thread Jim Grill
Hello all, I want to put a instant messenger in a website. People connect to this website to stay in touch with each other. There is a photo album for everyone, a Forum, groups... The IM must work like ICQ, MSN and other, but via web. Users of the site can add other users to the list, and

[PHP] poor image quality in php

2004-09-27 Thread Mike
hi! I have a problem with the imagejpeg() function - or related. I must specify that I'm a newbie with image handling with php and that a piece of advice would really help me right now. The deal is that I want to create a (smaller) resized copy of a certain image using this code: $veche =

Re: [PHP] What do I need in order to validate XMl against an XSD using php?

2004-09-27 Thread Christian Stocker
On Mon, 27 Sep 2004 11:15:23 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Are their any specific php extensions or modules that I'd need in order to do something like this very easily? You need PHP 5 and preferably the latest libxml2 release. The dom extension of PHP 5 has XSD Schema

Re: [PHP] poor image quality in php

2004-09-27 Thread Jim Grill
hi! I have a problem with the imagejpeg() function - or related. I must specify that I'm a newbie with image handling with php and that a piece of advice would really help me right now. The deal is that I want to create a (smaller) resized copy of a certain image using this code: $veche =

Re: [PHP] poor image quality in php

2004-09-27 Thread Marek Kilimajer
Mike wrote: hi! I have a problem with the imagejpeg() function - or related. I must specify that I'm a newbie with image handling with php and that a piece of advice would really help me right now. The deal is that I want to create a (smaller) resized copy of a certain image using this code:

[PHP] cross-compile PHP

2004-09-27 Thread Dan
Has anybody gained general experience with crosscompling PHP? I want to run PHP on an axis devboard82 in combination with sqlite. The crosscompiler is gcc-cris (cris-dist-1.56). I appreciate any feedback, thanks, Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] cross-compile PHP

2004-09-27 Thread Dan
Has anybody gained general experience with crosscompling PHP? I want to run PHP on an axis devboard82 in combination with sqlite. The crosscompiler is gcc-cris (cris-dist-1.56). I appreciate any feedback, thanks, Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Images in PHP and MySQL

2004-09-27 Thread GH
I was wondering how to get images into and out of a Mysql database with in php... I do not have anything in my book... but was told it was possible. I have PHP 4.3.4 and mysql 4.0.18 Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Counter?

2004-09-27 Thread Thomas Goyne
On Mon, 27 Sep 2004 11:29:34 +0200, Nick Wilson [EMAIL PROTECTED] wrote: * and then raditha dissanayake declared These counters are pretty much useless at gauging web traffic. you would be better off using log analysis tool. Who said anything about web traffic? ;-) which in turn

Re: [PHP] Images in PHP and MySQL

2004-09-27 Thread Daniel Watrous
I don't. I have used it on several projects. One caveat I would offer is that this is much slower than one might think. Three possible advantages come from using this approach: 1) there is no need to fiddle with directory permissions to write images. 2) if the content is sensitive you have

RE: [PHP] Images in PHP and MySQL

2004-09-27 Thread Graham Cossey
I'm no certified expert, but preference would be storing a URL to an image in the database rather than the image itself. If however you do want to store them in the db try using a blob column type. This article is PHP3 but shows the basics: http://www.phpbuilder.com/columns/florian19991014.php3

Re: [PHP] Images in PHP and MySQL

2004-09-27 Thread GH
I hope that there are others out there that could weigh in on this topic please The more information and perspective I have the better as it would help me build the most informed decision as posible. On Mon, 27 Sep 2004 23:49:33 +0100, Graham Cossey [EMAIL PROTECTED] wrote: I'm no

Re: [PHP] is_dir on WIndows

2004-09-27 Thread Chris
John Nichel wrote: Chris wrote: if (is_dir($file) || ($file!=.) || ($file!=..)) continue; That will match everything and anything, files and dot directories... The first statement by the OP should work fine. All three will eval to true if it is a directory, and the directory isn't . or ..

Re: [PHP] Images in PHP and MySQL

2004-09-27 Thread Jim Grill
1) there is no need to fiddle with directory permissions to write images. 2) if the content is sensitive you have the added security of the database password (and the fact that the database is ususally not directly accessible). 3) a mysqldump gives a backup of all images along with other

Re: [PHP] Re: Mass Mailing Using PHP

2004-09-27 Thread Roger Thomas
Quoting Manuel Lemos [EMAIL PROTECTED]: Just let me know which OS and local mailer (Sendmail, qmail, postfix, exim, MS IIS, Exchange, etc..) do you use so I can advise. What do you recommend for Linux and qmail combination ? Please advise. -- roger

Re: [PHP] Website with a Instant Messenger

2004-09-27 Thread raditha dissanayake
Ricardo Cezar wrote: Hello all, I want to put a instant messenger in a website. People connect to this website to stay in touch with each other. There is a photo album for everyone, a Forum, groups... The IM must work like ICQ, MSN and other, but via web. Users of the site can add other users to

Re: [PHP] Re: problem with file upload script

2004-09-27 Thread raditha dissanayake
AMC wrote: Hi, I changed the script to upload to a different directory but it still doesn't work, any ideas? I really appreciate the help. You are not the first person to run into problems with file uploads. Quite a few of those who managed to overcome them posted their finding at the link

Re: [PHP] Re: problem with file upload script

2004-09-27 Thread AMC
I did read this and it did not resolve the problem Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] AMC wrote: Hi, I changed the script to upload to a different directory but it still doesn't work, any ideas? I really appreciate the help. You are not the

Re: [PHP] Re: Mass Mailing Using PHP

2004-09-27 Thread Manuel Lemos
Hello, On 09/27/2004 09:02 PM, Roger Thomas wrote: Just let me know which OS and local mailer (Sendmail, qmail, postfix, exim, MS IIS, Exchange, etc..) do you use so I can advise. What do you recommend for Linux and qmail combination ? Please advise. Under Linux qmail or postfix are just fine.

[PHP] submit to a remote form without the use of curl?? Is it possible?

2004-09-27 Thread bclem
Is it possible with php to submit to a remote form without the use of curl? I am developing an application on a hosting server that does not have curl available and I need to submit some values to a remote form. Anybody ever do something like this without the use of curl? Thanks, Brent

Re: [PHP] submit to a remote form without the use of curl?? Is it possible?

2004-09-27 Thread raditha dissanayake
[EMAIL PROTECTED] wrote: Is it possible with php to submit to a remote form without the use of curl? I am developing an application on a hosting server that does not have curl available and I need to submit some values to a remote form. Anybody ever do something like this without the use of curl?

Re: [PHP] submit to a remote form without the use of curl?? Is it possible?

2004-09-27 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]: Is it possible with php to submit to a remote form without the use of curl? I'm assuming you want to POST a form verses a GET, since you can easily do a GET form submission like: $fp = fopen('http://domain.com/?get=var', 'r'); in PHP5 you can accomplish

Re: [PHP] submit to a remote form without the use of curl?? Is it possible?

2004-09-27 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: Is it possible with php to submit to a remote form without the use of curl? You can use fsockopen: http://shiflett.org/hacks/php/http_post If your version of PHP supports streams, you can use streams: http://shiflett.org/hacks/php/streams_post Hope that helps.