[PHP] Broken ip2long and long2ip?

2001-05-20 Thread Sean Cazzell
It appears that the integer type being used by these functions is not able to store the entire 32 bits (4 bytes). It can only handle up to 31 bits - my guess is the type is signed when it should be unsigned. In any case,I'm running PHP 4.0.5 on Linux 2.4.3 on an x86 machine. I would appreciate

Re: [PHP] Reports in web browser

2001-05-20 Thread John Monfort
I believe there is a window.print() JavaScript code, that lets you print a document. I've never used it, so I'm not sure. a href=# onClick=window.print();Print Document /a //or something like that... good luck !! __John Monfort_

[PHP] problem with cookies

2001-05-20 Thread Peter Knif
Hi! I'm trying to write a simple script that would set a cookie. I keep receiving the following message: Warning: Cannot add header information - headers already sent by (output started at e:\inetpub\wwwroot\PHP\game.php:85) in e:\inetpub\wwwroot\PHP\game.php on line 87 Here's the code: 85

Re: [PHP] problem with cookies

2001-05-20 Thread Peter Knif
never mind, I solved the problem. -- * Peter Knif * [EMAIL PROTECTED] Peter Knif [EMAIL PROTECTED] wrote in message 9e7ror$mp0$[EMAIL PROTECTED]">news:9e7ror$mp0$[EMAIL PROTECTED]... Hi! I'm trying to write a simple script that would set a cookie. I keep receiving the following

[PHP] Max execution time exceeded in Unknown on line 0

2001-05-20 Thread David De Graff
Hi, I've had php (4.0.5) working fine with postgres and w-agora (forum software), but am now having trouble after trying installs of php-nuke and phpWebSite. These use mysql, which has also been freshly installed. After a reboot the ? phpinfo(); ? tag executes immediately, but after trying to

Re: [PHP] Unix problem

2001-05-20 Thread Christian Reiniger
On Saturday 19 May 2001 14:22, Urb LeJeune wrote: I'm using the follow snippet while traversing a directory. while ($Directory=readdir($DirHandle)) { $IsFile = is_file($Directory); $IsDir = is_dir($Directory); echo is file=$IsFile - is dir=$IsDir\n; Works fine on Windows

Re: [PHP] The performance of sleep() and usleep()

2001-05-20 Thread Christian Reiniger
On Saturday 19 May 2001 17:26, BlackLord wrote: If i use these functions in my script, what will be the system resource usage? I know, thread will be open while the script is running but, i believe that they will not use extra system resource, won't they? sleep () does exactly that - putting

Re: [PHP] Include Paths

2001-05-20 Thread Christian Reiniger
On Saturday 19 May 2001 23:18, Dylan Finney wrote: I am fairly new to PHP and so far I love it. One question I have is how to call include files outside of their directory without hard coding the real path to the file itself. Is there map path or a See the include_path ini directive in the

[PHP] comparison operators

2001-05-20 Thread Heidi Belal
Hi All! i'm creating this form for people to upload pictures, so i want to be able to compare the type of the file, so that if it's not a .gif or a .jpg i give them an error message! What i am using is: If ($userfile_type == image/gif) - here it uploads the file otherwise it sends out an

[PHP] comparison operators

2001-05-20 Thread Heidi Belal
Hi All! i'm creating this form for people to upload pictures, so i want to be able to compare the type of the file, so that if it's not a .gif or a .jpg i give them an error message! What i am using is: If ($userfile_type == image/gif) - here it uploads the file otherwise it sends out an

[PHP] comparison operators

2001-05-20 Thread Heidi Belal
Hi All! i'm creating this form for people to upload pictures, so i want to be able to compare the type of the file, so that if it's not a .gif or a .jpg i give them an error message! What i am using is: If ($userfile_type == image/gif) - here it uploads the file otherwise it sends out an

[PHP] Uploading files

2001-05-20 Thread Diego Pérez Rández
Hi to all: I don`t konw very well php. I do examples everyday and solve some problems. But in other i need help. Today i want to upload a file. I have the form that you can find in the php manual. form enctype=multipart/form-data action=_URL_ method=POST input type=hidden

[PHP] Problem using unpack

2001-05-20 Thread Craig Vincent
I'm current trying to use PHP's unpack feature to decode a binary string and am running into a problem. Here is the unpack command I am using $playerdata = unpack(czero/A$lengthone/itwo/fthree/A*four, $rest); basically it is setup so that the hash created has 5 key/value pairs named zero, one,

Re: [PHP] comparison operators

2001-05-20 Thread Diego Pérez Rández
Hi: For compare strings you can use strcmp. $st1 = hi; $st2 = bye; if (strcmp($st1, $st2)) { echo are different; } else { echo are equal; } The strcmp return 0 when the strings are equal. If the strings are diferent, return the pos of the char where begin the diference. I

Re: [PHP] Problem using unpack

2001-05-20 Thread Zak Greant
$playerdata = unpack('czero/A'.$length.'one/itwo/fthree/A*four', $rest); Good Luck! --Zak - Original Message - From: Craig Vincent [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 20, 2001 4:00 AM Subject: [PHP] Problem using unpack I'm current trying to use PHP's unpack

Re: [PHP] Mailserver?!

2001-05-20 Thread FredrikAT
What I look for is a POP/IMAP server that writes incoming mails to a MySQL db! (WIN32) Fredrik Takle Bergen, Norway Plutarck [EMAIL PROTECTED] skrev i melding 9e73vh$95f$[EMAIL PROTECTED]">news:9e73vh$95f$[EMAIL PROTECTED]... Check out http://webgadgets.com/phpost/ That's a good way to get

[PHP] Multiple emails

2001-05-20 Thread Tom Carter
Hi all, I have a list of email addresses pulled from a database and I want to send out an email to all of them (they are the registered users of this particular site). For the first issue of the newsletter I expect to have about 4000 people, but that will probably go up significantly in future

Re: [PHP] Email form

2001-05-20 Thread FredrikAT
Check: http://www.php.net/mail [EMAIL PROTECTED] skrev i melding [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've been out of the loop for so long. I make a normal form, but the action is something.. I don't want it to send from the uers email, but use the server. Some people don't

RE: [PHP] Broken ip2long and long2ip?

2001-05-20 Thread Jorg Krause
From: Sean Cazzell [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 20, 2001 8:41 AM [...] It appears that the integer type being used by these functions is not able to store the entire 32 bits (4 bytes). It can only handle up to 31 bits - my guess is the type is signed when it should be

[PHP] PHP claims that class was defined twice

2001-05-20 Thread Jens Kisters
Hey there i noticed sometinh quite odd when trying to include a class definition: There are several classes in the project in question. Every class resides i a separate file that gets included. When i call the following method function mRenderPrintNav($client) {

php-general Digest 20 May 2001 12:41:02 -0000 Issue 697

2001-05-20 Thread php-general-digest-help
php-general Digest 20 May 2001 12:41:02 - Issue 697 Topics (messages 53570 through 53607): echo question 53570 by: Louis Brooks 53573 by: Jason Lotito Re: Global variables? (unset/set or what?) 53571 by: Richard Re: Global varia **Sorry, I mean... **

Re: [PHP] Reversing htmlspecialchars()

2001-05-20 Thread ~~~i LeoNid ~~
On 19 May 2001 15:27:31 -0700 impersonator of [EMAIL PROTECTED] (=?iso-8859-1?Q?Rudi_Benkovi=E8?=) planted I saw in php.general: function un_htmlentities($str) { $trans = get_html_translation_table (HTML_ENTITIES); $trans = array_flip ($trans); or for

Re: [PHP] Reports in web browser

2001-05-20 Thread Miles Thompson
Well, I think there's a Javascript function one can use to start printing, but users will hate it. A bigger issue, I would think, would be formatting to preserve indents, column alignment ,etc. We have no control over the resolution of the user's system, size of the browser window, etc. Even

Re: [PHP] Unix problem

2001-05-20 Thread Urb LeJeune
Bingo, he said as he slapped his forehead with open palm. Thanks a 10**6 Urb At 10:42 AM 5/20/01 +0200, Christian Reiniger wrote: readdir returns the file/directory name without path, is_file and is_dir expect a complete filenam with path. So unless you only examine your

[PHP] ok, are servlets/jsp faster than php4?

2001-05-20 Thread Christopher Leigh
ok, are servlets/jsp faster than php4? since zend cache isn't free... :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] PHP and XHTML

2001-05-20 Thread Manuel Lemos
Hello Navid, On 18-May-01 19:44:55, you wrote: I would like to start using the XHTML syntax for my future projects, but I heard that PHP is not compatible with XHTML. For example, in XHTML the ID attribute is used in place of the deprecated NAME tag. But PHP depends on the NAME attribute in

Re: [PHP] Book PHP4 Professional WROX Mail over SMTP

2001-05-20 Thread Manuel Lemos
Hello Andreas, On 11-May-01 13:58:13, you wrote: Hi there, I bought this book tryed it for 2 days now to bring the Mail over SMTP example to work. It doesn' t work at all. Does anybody have a class for sending E-Mails over SMTP? This really drives me mad. It should not be so complicated to

Re: [PHP] Site search engine suggestion.

2001-05-20 Thread Manuel Lemos
Hello elias, On 12-May-01 04:04:26, you wrote: Hello guys, I need that badly! I need a suggestion, advise, solution or whatever that might help! I need a Site Search script for a page that mostly have .PHP files some are dynamic and some are not. Basically i was using WebGlimpse but whenever

[PHP] RegEx Question

2001-05-20 Thread George E. Papadakis
Hi, I have an ereg question::. $data = a big string , while (ereg (testing([^;]*);blah(.*),$data,$args)) { $this = $args[1]; $data = $args[2]; } What I wanna do ,obviously, is to get all the strings between 'testng' and 'blah' in an array. This will do it, yet when it wont work when

[PHP] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Manuel Lemos
Hello Zeev, On 12-May-01 14:14:10, you wrote: At 04:05 12/5/2001, Wez Furlong wrote: I know that there might be some bad interactions with apache if you fork, but if you allow PHP to spot that it forked and call _exit() instead of returning into the SAPI, you should be OK? Not really, the

RE: [PHP] Site search engine suggestion.

2001-05-20 Thread Alok K. Dhir
The best open source search engines I've seen/used are: ASPSeek http://www.aspseek.org Mnogoseach http://mnogosearch.org/ ht://dighttp://www.htdig.org I've found that I prefer ASPseek to both mnogo and htdig... -Original Message- From:

[PHP] include() in a file incuded()

2001-05-20 Thread Jaime Torres
Hi! I've been blocked by this tiny problem... I have a main.php file: ? $frames = true; $open = http://myserver.com/info.html;; if ($frames) { include (frameset.php); } ? The frameset.php looks like (omitting almost all the HTML): frameset rows=100,* border=0 frame src=onlineview.php3

Re: [PHP] RegEx Question

2001-05-20 Thread Christian Reiniger
On Sunday 20 May 2001 19:18, George E. Papadakis wrote: I have an ereg question::. $data = a big string , while (ereg (testing([^;]*);blah(.*),$data,$args)) { $this = $args[1]; $data = $args[2]; } What I wanna do ,obviously, is to get all the strings between 'testng' and 'blah'

RE: [PHP] PHP and XHTML

2001-05-20 Thread Navid Yar
Hello Manuel, So you suggest that I use the name attribute in XHTML and ignore the fact that it has been depreciated and replaced by the ID attribute? Will that solve my problem? Navid Yar -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 20, 2001 11:49

[PHP] Image Functions and PHP 4.0.6

2001-05-20 Thread Ryan Sommers
When will PHP4.0.6 be released? I'm writing an image library for my site and could use things like ImageCopyMerge() and ImageCopyResampled(). -- -- Ryan leadZERO Sommers Raving Gaming President [EMAIL PROTECTED] ICQ: 1019590 AIM/MSN: leadZERO -= http://www.ravingaming.com =- /* All

[PHP] porting problem

2001-05-20 Thread Matt Broughton
I'm new to PHP but have found it easier to use than perl...however I'm in the midst of converting my whole site to php from perl and Ive run into a bit of a problem. Everything except one page is database driven, so I havent had to parse much text or grab info from other sites. I've got a

Re: [PHP] include() in a file incuded()

2001-05-20 Thread George E. Papadakis
Replace frame src=onlineview.php3 with frame src=? echo $open;? Variable $open is passed to the included file automatically. Hi! I've been blocked by this tiny problem... I have a main.php file: ? $frames = true; $open = http://myserver.com/info.html;; if ($frames) { include

Re: [PHP] ok, are servlets/jsp faster than php4?

2001-05-20 Thread John Lim
Well if you had more RAM and a faster CPU, servlets/jsp would be faster :-) This link might not answer your question completely, but it could help... http://php.weblogs.com/jsp Christopher Leigh [EMAIL PROTECTED] wrote in message

RE: [PHP] include() in a file incuded()

2001-05-20 Thread Jaime Torres
Thanks for your answer George. But I still have a problem. What if I need to get another variables values from the main.php file? Do I need to pass them with the URL? Something like: frame src=? echo $open.?another_var=.$another_val; ? The big question is including a file from an included file

RE: [PHP] PHP and XHTML

2001-05-20 Thread Manuel Lemos
Hello Navid, On 20-May-01 14:36:33, you wrote: So you suggest that I use the name attribute in XHTML and ignore the fact that it has been depreciated and replaced by the ID attribute? Will that solve my problem? It depends. If what is going to process the document is a regular browser, the

Re: [PHP] PHP and XHTML

2001-05-20 Thread Chris Sano
XHTML is just making your HTML documents XML ready. This means closing your tags, etc.. And Rasmus is right when he says PHP is 100% compatible with XHTML. -C [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i won't pretend to be an XML guru, but isn't saying

Re: [PHP] Network Connectivity help please

2001-05-20 Thread Chris Sano
You could always do a cron job and have a script run every 10-15 minutes, load the existing and connecting IP's in a text file and use another script to print out the latest successful pings. -C Brian [EMAIL PROTECTED] wrote in message 9e4msm$e5a$[EMAIL PROTECTED]">news:9e4msm$e5a$[EMAIL

Re: [PHP] HTTP socket connection

2001-05-20 Thread phpman
I've been working with curl as well. It allows a pretty easy method to access https, however it is limited as far as encrypting data and sending to an https server. So now i'm experimenting with snoopy to simulate a web client. I'm trying to link up with UPS online tools, but the sob's only know

[PHP] unset()- newbie question

2001-05-20 Thread Tom
I can't seem to get unset() to work when I'm strying to delete an element from an array. I have a select list that is populated by an array, and i need to be able to delete items from the list by deleting them from the array, but I don't know how. I tried using unset($array['element']); but

Re: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Rasmus Lerdorf
Not really, the parent has to somehow call wait() on the child, otherwise you'd get zombie processes... Generally, implementing that sort of stuff within the Apache framework is a bit of asking for trouble :I Anyway, PHP really lacks of real multi-threading capabilities. Things like

Re: [PHP] Uploading files

2001-05-20 Thread James, Yz
Hello Diego, You need to use copy() If the form input is like this: file: input name=userfile type=file input type=submit Then PHP will assign a few variables automatically to the file, which include: $file_name - actual name of the file (pic.jpg) $file_size - size in bytes of the file

[PHP] mail server (again!)

2001-05-20 Thread FredrikAT
What I look for is a POP/IMAP server that writes incoming mails to a MySQL db! (WIN32) Fredrik Takle Bergen, Norway Plutarck [EMAIL PROTECTED] skrev i melding 9e73vh$95f$[EMAIL PROTECTED]">news:9e73vh$95f$[EMAIL PROTECTED]... Check out http://webgadgets.com/phpost/ That's a good way to get

RE: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Richard Heyes
Nope, but you can use the ticks feature to do some of this. Is there any documentation for this? I searched the manual and php.net but came up with nothing :( Cheers. -- Richard Heyes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Network Connectivity help please

2001-05-20 Thread Don Read
On 18-May-01 Brian wrote: Good point, I considered, doing it that way, I was just hoping that there might be a 'prettier' way to do it from within PHP. Right now I'm using fping from within a php loop that steps through the class C. The machine I'm doing this on is dog slow though, so I'm

Re: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Manuel Lemos
Hello Rasmus, On 20-May-01 17:42:22, you wrote: Not really, the parent has to somehow call wait() on the child, otherwise you'd get zombie processes... Generally, implementing that sort of stuff within the Apache framework is a bit of asking for trouble :I Anyway, PHP really lacks of real

Re: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Rasmus Lerdorf
On 20-May-01 17:42:22, you wrote: Not really, the parent has to somehow call wait() on the child, otherwise you'd get zombie processes... Generally, implementing that sort of stuff within the Apache framework is a bit of asking for trouble :I Anyway, PHP really lacks of real

Re: [PHP] attachements in mail()

2001-05-20 Thread Henrik Hansen
Mark Wouters [EMAIL PROTECTED] wrote: Hi, I've another question.. is it possible to send attachements with mail() it sure is, look at phpclasses.upperdesign.com for classes for the purpose (unde mail classes) -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Image Functions and PHP 4.0.6

2001-05-20 Thread Henrik Hansen
Ryan Sommers [EMAIL PROTECTED] wrote: When will PHP4.0.6 be released? I'm writing an image library for my site and could use things like ImageCopyMerge() and ImageCopyResampled(). I think the developers are hoping to release it within a week (if everything goes smooth :) -- Henrik Hansen

[PHP] COM objects

2001-05-20 Thread John Skipsey
Can anyone tell me how this asp code would be rewritten in PHP, I'm having trouble getting it to work. Don't worry about the variable names and stuff, it's just the actual connection to the application that's causing me the grief. Thanks for any suggestions, Skipsey. begin 666

Re: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Manuel Lemos
Hello Rasmus, On 20-May-01 19:08:16, you wrote: On 20-May-01 17:42:22, you wrote: Not really, the parent has to somehow call wait() on the child, otherwise you'd get zombie processes... Generally, implementing that sort of stuff within the Apache framework is a bit of asking for

Re: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Rasmus Lerdorf
Weren't you the one that was saying that you opposed to the existence of a PHP compiler? Despite your opposition, Zeev and Andi brought it up to the joy of many PHP users. Well, it is not part of PHP. It isn't even free. Since Zeev and Andi seem to be currently the most capable developers

Re: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Zak Greant
Manuel wrote: [...] Since Zeev and Andi seem to be currently the most capable developers to bring multi-threading capability to PHP because they developed PHP current engine - Zend, my question still goes for them. After all they always seemed more reasonable and opened to my suggestions

Re: [PHP] get all defined constants?

2001-05-20 Thread Alex Black
phpinfo() allways has a list of variables. but of course every variable is allways in $GLOBALS too. including constants? I just print_r'd globals to refresh my memory, and found what I was expecting: none of my constants. ? _alex -- PHP General Mailing List (http://www.php.net/) To

[PHP] Email..

2001-05-20 Thread [EMAIL PROTECTED]
Can someone give me a template of an email form? I don't want it to use an email client, though. I don't get the mail function, and I've been out of the loop too long. :( -Owen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] Email..

2001-05-20 Thread Peter Houchin - SunRentals Australia
$address .= $email ;//insert a comma after $ email to include another address, email address taken from session varables // Subject $subject = ; //Body of email $body = ; //Where the email is from //$from = sender; $headers .= From: \n; $headers .= X-Sender: \n;

Re: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Manuel Lemos
Hello Rasmus, On 20-May-01 20:22:48, you wrote: Weren't you the one that was saying that you opposed to the existence of a PHP compiler? Despite your opposition, Zeev and Andi brought it up to the joy of many PHP users. Well, it is not part of PHP. It isn't even free. As long it works

[PHP] function to complete strings with white spaces on the left

2001-05-20 Thread Carlos Fernando Scheidecker Antunes
Hello All, I need to output a string that must always be 17 characters even if the inside value is not. Supose a have the HELLO word that is a 5 character string and I need to output HELLO which is 17 characters. How can I accomplish this in PHP4 ? Has anyone ever did it?

php-general Digest 21 May 2001 01:01:49 -0000 Issue 698

2001-05-20 Thread php-general-digest-help
php-general Digest 21 May 2001 01:01:49 - Issue 698 Topics (messages 53608 through 53648): Re: Reversing htmlspecialchars() 53608 by: ~~~i LeoNid ~~ Re: Reports in web browser 53609 by: Miles Thompson Re: Unix problem 53610 by: Urb LeJeune ok, are servlets/jsp

[PHP] PLEASE -- Compiling an extension for PHP module (pgsql.so -- missing libpq.so.2)

2001-05-20 Thread Jason
Hi, I'm trying to compile an extension for Postgre support which I will either load in the php.ini or use the dl() function. Both methods fail right now. The dl() function gives me verbose though. I compiled the module like this: ./configure --with-apache=/usr/local/Apache/apache_13

Re: [PHP] function to complete strings with white spaces on the left

2001-05-20 Thread Mark Maggelet
On Sun, 20 May 2001 22:03:05 -0300, Carlos Fernando Scheidecker Antunes ([EMAIL PROTECTED]) wrote: Hello All, I need to output a string that must always be 17 characters even if the inside value is not. Supose a have the HELLO word that is a 5 character string and I need to output HELLO

[PHP] ?=SID? is not translated...

2001-05-20 Thread Christian Marschalek
My system does not tranlate ?=SID? into the PHP Session id... Don't have a clue why, though... Any clues? Tia! Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] undo htmlspecial

2001-05-20 Thread Nicholas
-BEGIN PGP SIGNED MESSAGE- Hash: MD5 someone was looking for an undo htmlspecial chars well i found a snipet on sourcefourge i forgot who sent the mail so here you go who ever you are.. function unconvert_htmlspecialchars($string) { if( strlen($string) 4 ) {

[PHP] should be simple

2001-05-20 Thread Richard Kurth
I am trying to pull html code out of a database to put in page something like this which I have stored in a database under cheader html head title/title /head body div align='center' img src=../autowebpages/autosetup.gif' width='406'height='158'border='0' alt=''/div It seams all I have to do is

RE: [PHP] should be simple

2001-05-20 Thread Jason Murray
It seams all I have to do is put ?echo $cheader? at the top of the page and it should work just like putting variables into a page. But is does nothing. I would look in the manual or the archives but I don't no wear or what to look for. It seams this should be simple what am I missing hear

Re: [PHP] should be simple

2001-05-20 Thread Richard Kurth
Hello Richard, Never Mind It was a stupid mistake I am querying all the data in a function and forgot to add the variable to the global list work just fine DU!! Monday, May 21, 2001, 7:08:16 AM, you wrote: Richard Kurth I am trying to pull html code out of a database to put in page Richard

RE: [PHP] should be simple

2001-05-20 Thread Gerard Onorato
Richard, Forgive me for stating the obvious. How are you filling the variable $cheader? If you are simply putting an echo command without pulling the info from the database first you will obviously be getting nothing. Gerard -Original Message- From: Richard Kurth [mailto:[EMAIL

[PHP] e*reminder and cron

2001-05-20 Thread Henry
i'd like to run something like http://sourceforge.net/projects/e-reminders/ on my site. it uses cron to trigger the mail to be sent. i'm not familiar with unix and cron. apparently i need to use shell access on my site to get this working. anybody got any tips to get cron working in the

[PHP] query question

2001-05-20 Thread Jacky
Hi all What do I do if i want to move all values stored in one field to another field in the same table, from field A to field B? Has anyone ever done that? Jack [EMAIL PROTECTED] There is nothing more rewarding than reaching the goal you set for yourself

[PHP] How to loop the HTTP_POST_VARS array?

2001-05-20 Thread Carlos Fernando Scheidecker Antunes
Hello all, I'm trying to loop the $HTTP_POST_VARS variable like an array like this : $index = count($HTTP_POST_VARS); for($i=0; i $index; i++) { $itens = $HTTP_POST_VARS[$i]; } But it is not working. Can anoyone tell me how to do it? Thanks, Carlos Fernando.

[PHP] How to loop the HTTP_POST_VARS array?

2001-05-20 Thread Carlos Fernando Scheidecker Antunes
Oops. I've got a typo : $itens[] Here's the correct code : Hello all, I'm trying to loop the $HTTP_POST_VARS variable like an array like this : $index = count($HTTP_POST_VARS); for($i=0; i $index; i++) { $itens[] = $HTTP_POST_VARS[$i]; } But it is not working. Can anoyone tell me how

[PHP] php3 vs php4 and ini_get

2001-05-20 Thread Dennis Gearon
I love ini_get() for instance, for finding include_path. Is there anyway to find include_path in php3, since ini_get() is for = php4? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

RE: [PHP] query question

2001-05-20 Thread Maxim Maletsky
several times: UPDATE table SET B=A; Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Jacky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 12:37 AM To: [EMAIL

Re: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Greg Wright
*** REPLY SEPARATOR *** On 20/05/2001 at 5:34 PM Zak Greant [EMAIL PROTECTED] [gregausit/phplist] wrote: Manuel wrote: [...] Since Zeev and Andi seem to be currently the most capable developers to bring multi-threading capability to PHP because they developed PHP current

RE: [PHP] How to loop the HTTP_POST_VARS array?

2001-05-20 Thread Maxim Maletsky
no, you are trying to get an $HTTP_POST_VAR[integer]... it is not there. The keys are your variable names, therefore this is correct: foreach($HTTP_POST_VARS as $key=$val) { $itens[] = $val; } will fit everything form ..POST_VARS into $itens array. BUT you'll loose all the key names,

Re: [PHP] How to loop the HTTP_POST_VARS array?

2001-05-20 Thread Rasmus Lerdorf
foreach($HTTP_POST_VARS as $key = $val) { echo $key: $valbr\n; } On Mon, 21 May 2001, Carlos Fernando Scheidecker Antunes wrote: Hello all, I'm trying to loop the $HTTP_POST_VARS variable like an array like this : $index = count($HTTP_POST_VARS); for($i=0; i $index; i++) {

Re: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Frank Joerdens
On Sun, May 20, 2001 at 01:43:36PM -0700, Rasmus Lerdorf wrote: Not really, the parent has to somehow call wait() on the child, otherwise you'd get zombie processes... Generally, implementing that sort of stuff within the Apache framework is a bit of asking for trouble :I Anyway, PHP

Re: [PHP] Re: [PHP-DEV] Fork() in php?

2001-05-20 Thread Frank Joerdens
On Mon, May 21, 2001 at 01:55:10PM +1000, Greg Wright wrote: [ . . . ] IIRC Rasmus was one of the main people involved in bringing PHP to life, it Well, if anyone can be said to have invented it, it's Rasmus. At some point around 96 (?) he was approached by Zeev and some others who suggested to

[PHP] porting from perl

2001-05-20 Thread Matt Broughton
I'm having some difficulty porting this code from perl to php...can anyone give me a hand? -Matt Broughton #!/usr/bin/perl # Quick and dirty Yahoo movie showtimes grabber use LWP::Simple; my $content = get(http://movies.yahoo.com/showtimes/showtimes.html?z=florence%2C+scr=sim ); my $text =

[PHP] Trimming 2 Characters from the end of a string?

2001-05-20 Thread Jason
Hi, What would be the syntax to trim 2 characters off of a given string? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Trimming 2 Characters from the end of a string?

2001-05-20 Thread Rasmus Lerdorf
What would be the syntax to trim 2 characters off of a given string? $new = substr($old,0,-2); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

Re: [PHP] porting from perl

2001-05-20 Thread Brian Clark
Hi Matt, @ 12:31:35 AM on 5/21/2001, Matt Broughton wrote: I'm having some difficulty porting this code from perl to php...can anyone give me a hand? Briefly.. --(snip)-- #!/usr/bin/perl # Quick and dirty Yahoo movie showtimes grabber use LWP::Simple; my $content =

[PHP] Cannot view source via IE browser

2001-05-20 Thread John M
Hello. I am having a problem when trying to view source via my IE browser. When I try I get the following error: Cannot open the php_submit.php C:\WINDOWS\Temporary Internet Files\Content.IE5\8DMZ02HJ\www.yahoo(1) file. Make sure a disk is in the drive you specified. ** Above I just tried

RE: [PHP] Cannot view source via IE browser

2001-05-20 Thread Maxim Maletsky
this is your browser's problem. PHP has nothing to do with it. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: John M [mailto:[EMAIL PROTECTED]] Sent: Monday, May 21, 2001 2:09

Re: [PHP] ok, are servlets/jsp faster than php4?

2001-05-20 Thread Steven Haryanto
yes, i have discovered recently that php is not as fast as it is hyped to be. don't get me wrong. php is fast, but it depends on how you arrange your scripts. if you include a lot of library code (PEAR, etc etc), the overhead would increase and increase. i thought php has always cached compiled

[PHP] comparison operators

2001-05-20 Thread Heidi Belal
Hi All, I have a form where i let people choose a file to upload, but i want to limit them to image files only. So i want to only allow the .gif and .jpg to be uploaded. What i tried doing was this: if ($filename_type == image/gif) -- upload file otherwise give an error message! but for

[PHP] How to test content encoding?

2001-05-20 Thread Plutarck
I'm trying to test the gz_handler, among other things, but I have no idea if the output is actually gzip encoded. I'm using PHP 4.0.5 as an Apache module, and here's an example of a test script: ?php ob_start(ob_gzhandler); ? pThis should be compressed. [bunch of text here just to ensure it's