[PHP] Hi

2002-02-28 Thread dharmavatar
Hi everybody, I am new in this group,so could any one tell me how to start learn PHP? I had install PHP in IIS so where is good place to start Thanks in advance Regards Dharmavatar -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

[PHP] class effeciency

2002-02-28 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I have an application that spits out a contact form in either English or Danish Someone suggested I use a 'class factory' like the PEAR db abstraction layer and that is what I'm doing So I choose the language like this: $form =

[PHP] char encoding question

2002-02-28 Thread Markus Straessle
Dear list I run a php Version on my win2k with MySQL. I have a database runnning keeping address records. I do offer a form-html page to edit certain records. On a PC I can enter any character of the German language and it appears right in the db. On a MAC I can only enter the correct chars

RE: [PHP] Unable to display images on browser

2002-02-28 Thread joakim . andersson
You need to insert the following lines after this line: Header(Content-type: image/gif); $im = ImageCreateFromString ($fileContent); ImageGif ($im); and then remove this line: echo $fileContent; That should do it. /Joakim -Original Message- From: Narvaez, Teresa [mailto:[EMAIL

[PHP] d: Security problem with PHP

2002-02-28 Thread Nick Wilson (E-mail)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, a potential client just sent me this. Is it an old problem? or a new one? - --begin forwarded worrier--- Hi Nick Did you mention that you use PHP? I subscribe to a photo gallery site and they stopped uploads due to

[PHP] Array or SQL?

2002-02-28 Thread Kristjan Kanarik
Hi, I've never had reason to get deeply into array functions, but now it is very likely needed I'm working on a small search engine (to search text from articles) and I'm not sure wheter I will be able to complete it without any external help Here is a snip of code: /* I'm using MySQL 32337

[PHP] Help me!!!Can I use PHP to send SMS message???

2002-02-28 Thread hei
Help me!!!Can I use PHP to send SMS message???If yes, how can I use it??? (((Please e-mail the answer to me [EMAIL PROTECTED]))) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Can I use PHP to check server software????

2002-02-28 Thread hei
Can I use PHP to check server software??? example : If I input http://yahoocom , it will appear Apache If I input http://microsoftcom , it will appear IIS6 -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

Re: [PHP] Hi

2002-02-28 Thread S.Murali Krishna
Hi dharma Better go about PHP manual ( since I started with that ). when you finish that, you would have some idea on where to go further. On Thu, 28 Feb 2002, dharmavatar wrote: Hi everybody, I am new in this group,so could any one tell me how to start learn PHP? I had install PHP

[PHP] Failing to get the semaphore

2002-02-28 Thread indrek siitan
Hi, Has anyone any idea, what the following error might mean: Warning: semget() failed for key 0x219c: No space left on device What space am I out of? FreeBSD 4.4-STABLE, PHP 4.1.1. Rgds, Indrek -- For technical support contracts, goto https://order.mysql.com/ __ ___ ___ __

Re: [PHP] class effeciency

2002-02-28 Thread S.Murali Krishna
Hi I too suggested a way for your previous problem. What you are doing is right here, but some corrections are there. You cannot use 'var' to declare variables inside constructors rather you could use them only before constructor, and intialize them inside constructor, look out the

[PHP] Re: Can I use PHP to check server software????

2002-02-28 Thread Phillip Oertel
Hei wrote: Can I use PHP to check server software??? you can use curl, see the func below needs the php-curl libary enabled phil titleshowHeader - lese HTTP Header Antwort des entfernten Servers/title form action=?php echo $PHP_SELF ? input type=text name=url value=?php echo $url ?

[PHP] novice question

2002-02-28 Thread me us
Hi Id reelly like to know the syntax for returning results from a called function to the program that called it;) ? program add($a,$b); echo$ab; ? === ? function add($a,$b) { $ab =$a+$b; } return?? ? Many many thanks JD

Re: [PHP] class effeciency

2002-02-28 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then SMurali Krishna declared Hi I too suggested a way for your previous problem What you are doing is right here, but some corrections are there You cannot use 'var' to declare variables inside constructors rather you could

Re: [PHP] class effeciency

2002-02-28 Thread Simon Willison
Nick Wilson wrote: Is there a better way? It just seems like overkill to include 6-700 lines of methods /twice/ Use inheritance Define a base class with all of the methods in it Then define the two other classes to extend this base class, meaning they will have all of the methods you have

Re: [PHP] Hi

2002-02-28 Thread Simon Willison
dharmavatar wrote: Hi everybody, I am new in this group,so could any one tell me how to start learn PHP? I had install PHP in IIS so where is good place to start Thanks in advance Regards Dharmavatar wwwdevshedcom has some excellent beginners tutorials in their PHP section (the PHP 101 series)

Re: [PHP] class effeciency

2002-02-28 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Simon Willison declared Nick Wilson wrote: Is there a better way? It just seems like overkill to include 6-700 lines of methods /twice/ Use inheritance Define a base class with all of the methods in it Then define the two other

[PHP] html output done without result of exec_shell

2002-02-28 Thread Gunther E. Biernat
Guys, I'm trying to output the result of a shell command within a page. Problem is, when it's a command with short execution time like echo shell_exec(ls -la); it works fine, but the command I'm really trying to execute takes 2-3 seconds before having calculated the response and by then,

Re: [PHP] d: Security problem with PHP

2002-02-28 Thread Simon Willison
It's a new problem - www.php.net has a fix available though. Nick Wilson (E-mail) wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, a potential client just sent me this. Is it an old problem? or a new one? - --begin forwarded worrier--- Hi Nick Did you

[PHP] Problem unserialising a cookie - beware the magic quotes !!!

2002-02-28 Thread Kearns, Terry
OK, I don't have the problem any more but I decided to go ahead with the post anyway (since I already wrote it up) I solved the problem by turning off magic quotes in the phpini file I made this file for the purposes of a training course I'm writing At the bottom of this email I've included the

[PHP] Where can I learn?

2002-02-28 Thread Sean Kennedy
Hello everyone, I know the basic basics of PHP that I learned from the PHP 4 Bible book, but I would like to learn ALOT more. I'm going to continue in my book, but does anyone have a suggestion on where to learn more? Is there any very experienced PHP programmer out there who has MSN

Re: [PHP] Array or SQL?

2002-02-28 Thread Simon Willison
Here is a way of doing it with arrays - I don't know enough advanced mySQL syntax to see how it could be done just in mySQL: $resultsArray = array(); while ($results = mysql_fetch_array($article_query)) { $art_name = $results[article_name]; $art_text = $results[article_text];

Re: [PHP] Where can I learn?

2002-02-28 Thread Simon Willison
Sean Kennedy wrote: I know the basic basics of PHP that I learned from the PHP 4 Bible book, but I would like to learn ALOT more I'm going to continue in my book, but does anyone have a suggestion on where to learn more? Read EVERY article in the archive of wwwphpbuildercom - it'll take a

Re: [PHP] if(isset($submit))

2002-02-28 Thread Simon Willison
jtjohnston wrote: I can't get this to work: if(isset($submit)) with: input type=\image\ name=\submit\ value=\submit\ src=\nextgif\ border=\0\ align=\ABSCENTER\ I'm not coding correctly? If you are testing for $submit a work around is to have a hidden field in your form that looks like

Re: Re: [PHP] Where can I learn?

2002-02-28 Thread Sean Kennedy
Thank you Simon. -Sean -http://www.gdesigns.vcn.com - Original Message - From: Simon Willison [EMAIL PROTECTED] To: Sean Kennedy [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, February 28, 2002 4:20 AM Subject: Re: [PHP] Where can I learn? Sean Kennedy wrote: I know the

[PHP] getting a files time and date.

2002-02-28 Thread Philip J. Newman
Is there any way that PHP can grab the time and date of a file ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help me!!!Can I use PHP to send SMS message???

2002-02-28 Thread Simon Willison
hei wrote: Help me!!!Can I use PHP to send SMS message???If yes, how can I use it??? (((Please e-mail the answer to me [EMAIL PROTECTED]))) One very cheeky way of doing this would be to sign up to one of the free SMS services on the web (such as lycos mobile) and set up a PHP script that

Re: [PHP] getting a files time and date.

2002-02-28 Thread Simon Willison
Philip J Newman wrote: Is there any way that PHP can grab the time and date of a file ?? If you mean a file's last-access and last-modified date then yes, you need the stat() function: wwwphpnet/stat For example: $stat = stat('filetxt'); $modified = date('l, F dS', $stat[9]); $lastaccess =

Re: [PHP] if(isset($submit))

2002-02-28 Thread Adrian Murphy
just use an input type=hidden and call it submit,thats what i do - Original Message - From: jtjohnston [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 28, 2002 5:32 AM Subject: Re: [PHP] if(isset($submit)) So I can forget using type=image :( Wah, it's not

[PHP] - not meant to scare people !

2002-02-28 Thread John Fishworld
Maybe of interest ! http://securitye-mattersde/advisories/012002html -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

[PHP] Re: errorr log

2002-02-28 Thread Phillip Oertel
Erwien Samantha Y wrote: does you webserver (apache?) and/or php have the rights needed to write to the /tmp directory? if not you have to chmod the permissions for the /tmp dir an maybe better idea would be to make directory /tmp/php directory and chown that to wwwrun but you should

RE: [PHP] Help with Array Walk

2002-02-28 Thread Ford, Mike [LSS]
-Original Message- From: Vidyut Luther [mailto:[EMAIL PROTECTED]] Sent: 28 February 2002 01:27 but when i do. array_walk ($fieldname, '$check-is_allletters'); I get the error. Warning: Unable to call $check-is_allletters() - function does not exist . RTFM:

[PHP] just wanna know

2002-02-28 Thread eoghan
hi whats the difference between print and echo ? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] html output done without result of exec_shell

2002-02-28 Thread Jason Wong
On Thursday 28 February 2002 19:09, Gunther E. Biernat wrote: Guys, I'm trying to output the result of a shell command within a page. Problem is, when it's a command with short execution time like echo shell_exec(ls -la); it works fine, but the command I'm really trying to execute takes 2-3

RE: [PHP] Help with Array Walk

2002-02-28 Thread Ford, Mike [LSS]
-Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]] Sent: 28 February 2002 12:16 So you want: array_walk ($fieldname, array($check,'is_allletters'); OOPS! Make that: array_walk ($fieldname, array($check,'is_allletters')); But you'd have figured that out

Re: [PHP] html output done without result of exec_shell

2002-02-28 Thread Gunther E. Biernat
Hmm, yes, did so, even as the user that the webserver is running as. Switched to another webserver software (caudium) on the same machine and had the script running there, works fine, takes the 2-3 seconds and the output is included as intended. Huh? On Thu, 28 Feb 2002 20:13:24 +0800, Jason

Re: [PHP] Did everybody see the security warning at php.net?

2002-02-28 Thread Bo Kleve
Is this vulnerability exploitable only if I have an upload page or is it also possible to use it other ways? From reading the pages I have found I guess it's only the first way, but I want to be sure. /BoK http://www.php.net/ [27-Feb-2002] Due to a security issue found in all versions of PHP

RE: [PHP] novice question

2002-02-28 Thread Cal Evans
Sumthin like this... ?PHP $a=10; $b=20; echo add($a,$b) function($one, $two){ return $one + $two } // function($one, $two) ? * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: me us [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

RE: [PHP] Can mysql add qty directly?

2002-02-28 Thread Cal Evans
Assuming soldQty is a number and not a string: UPDATE products SET soldqty=soldqty+$sqty WHERE articelno='$articleno'; If ArticleNo is a number you might want to remove the quotes there too. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original

RE: [PHP] Can I use PHP to check server software????

2002-02-28 Thread Cal Evans
you COULD...actually, you would need to either open a socket or use the curl functions to talk to the server, retrieve a page, examine the headers and find the type. Might just be easier to go to www.netcraft.com =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com

[PHP] Web Services

2002-02-28 Thread Andrey Hristov
Hi, Is there someone who knows good places with information about Web Services? Such as SOAP, XML-RPC, WSDL etc. TIA Andrey Hristov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] just wanna know

2002-02-28 Thread Simon Willison
eoghan wrote: whats the difference between print and echo ? From memory, print() is a function while echo is a language construct The major difference is that you can use echo with a comma seperated list of arguments, while print requires you to concatenate strings For example: echo hello

[PHP] Re: Array or SQL?

2002-02-28 Thread michael kimsal
Kristjan Kanarik wrote: Hi, I've never had reason to get deeply into array functions, but now it is very likely needed I'm working on a small search engine (to search text from articles) and I'm not sure wheter I will be able to complete it without any external help snip I feel very

RE: [PHP] Web Services

2002-02-28 Thread Robert V. Zwink
Is there someone who knows good places with information about Web Services? Such as SOAP, XML-RPC, WSDL etc. http://www.nusphere.com/releases/2002/012802.htm I'm not sure how useful it will be, but the above link may be a good starting place. They have a PDF available titled An Introduction to

[PHP] Probably basic but seems advanced to me, PHP/SQL generation.

2002-02-28 Thread DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2)
Hello PHP'ers. First of all - scince joining this list I have got some great help and it is really helping my build me site so a BIG thank you to all. Now back to the help.. I have a table with cols, and say 20 rows in this table. col: 1 2 3 4 5 6 7

[PHP] Reference problem

2002-02-28 Thread John English
I'm trying to build a tree of objects using PHP4, but I'm getting tangled in reference problems. Some test code that illustrates the problem: class X { var $parent; var $ident; var $kids; function X ($parent,$number) { $this-parent = $parent; $this-ident = $number;

Re: [PHP] Probably basic but seems advanced to me, PHP/SQL generation.

2002-02-28 Thread Bas Jobsen
while ($row=mysql_fetch_row($result)) { echo 1 $row[0] for($x=1; $xcount($row); $x++) if(!empty($row[$x])) { echo $x+1; echo .$row[$x]; } } Op donderdag 28 februari 2002 14:40, schreef DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2): Hello PHP'ers. First of all - scince joining this list I have

RE: [PHP] Probably basic but seems advanced to me, PHP/SQL generation.

2002-02-28 Thread DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2)
Hi Baz, Thanks for mailing back, would you care to explain this a little more so I understand whats going on and how to use it I can see that you are fetching the results of select * from - into and array. and while there is records in the array you are echoing data, but I am not sure on whats

[PHP] arithmatic operation inconsistant

2002-02-28 Thread Roy Cabaniss
I have a very simple php page which I am creating an accounting tutorial from I am writing all of the equations on an include file and then calling the file at the beginning of the appropriate pages My problems lie in inconsistant arithmatic operations For some reason the equation for $gm1

[PHP] microtime.c build problem mentioned in FAQ

2002-02-28 Thread Frank Joerdens
I've got the microtimec build problem mentioned in the FAQ with PHP 412 on Redhat 61: [root@superfly /root]# uname -a Linux superfly 2413 #1 SMP Sun Nov 25 18:39:15 CET 2001 i686 unknown [root@superfly /root]# ldd --version ldd (GNU libc) 212 And my symlinks form the kerneldir to /usr/include

RE: [PHP] arithmetic operation inconsistent

2002-02-28 Thread Cal Evans
Hm...you may be on to something. If you run this code you will see that about 30% of the time $ns1 IS actually 1. the funny thing is that if you remove the doubleval calls, $ns1 purports to have a value than 1. Interesting... ?PHP srand ((double) microtime() * 100); Income

[PHP] unzip with php

2002-02-28 Thread Thomas Franz
Hi to everyone, i think i have an interesting question Situation: I have a lot of zip Word Documents Of the unzipped word docs i must create an txt file This is no Problem, if the docs are unzipped (I use word2txt) Problem: I tested the whole with pkunzip under dos, but everybody knows that are

Re: [PHP] unzip with php

2002-02-28 Thread Jason Wong
On Thursday 28 February 2002 22:34, Thomas Franz wrote: Hi to everyone, i think i have an interesting question. Perhaps, but nothing to do with PHP. Situation: I have a lot of zip Word Documents. Of the unzipped word docs i must create an txt file. This is no Problem, if the docs are

Re: [PHP] html output done without result of exec_shell

2002-02-28 Thread Jason Wong
On Thursday 28 February 2002 20:30, Gunther E. Biernat wrote: Hmm, yes, did so, even as the user that the webserver is running as. Switched to another webserver software (caudium) on the same machine and had the script running there, works fine, takes the 2-3 seconds and the output is

Re: [PHP] arithmetic operation inconsistent

2002-02-28 Thread Roy Cabaniss
On Thursday 28 February 2002 08:35, Cal Evans wrote: Hm...you may be on to something. If you run this code you will see that about 30% of the time $ns1 IS actually 1. the funny thing is that if you remove the doubleval calls, $ns1 purports to have a value than 1. Interesting... ?PHP

[PHP] excluding files

2002-02-28 Thread Craig Westerman
while ($file_name = readdir($dir)) if (($file_name != .) ($file_name != ..)) $file_list .= $file_name; } This excludes . and .. files. How would I exclude files that contained pv. Thus filenamepv.html would be excluded, but filename.html would not? Thanks Craig [EMAIL PROTECTED]

[PHP] Re: excluding files

2002-02-28 Thread Henrik Hansen
[EMAIL PROTECTED] (Craig Westerman) wrote: while ($file_name = readdir($dir)) if (($file_name != .) ($file_name != ..)) $file_list .= $file_name; } This excludes . and .. files. How would I exclude files that contained pv. Thus filenamepv.html would be excluded, but

[PHP] BBEdit - URL Check

2002-02-28 Thread Josiah Wallingford
Right now I am on a Mac running OSX I used to run Windows When I was running windows I had a program called Xenu, found at http://homesnafude/tilman/xenulinkhtml; This program KICKED BUTT because it will look at any url or any folder and tell you every link that is broken including

Re: [PHP] excluding files

2002-02-28 Thread Bas Jobsen
if (($file_name != .) ($file_name != ..) !eregi([a-z0-9]+pv\.html,$file)) Op donderdag 28 februari 2002 16:32, schreef Craig Westerman: while ($file_name = readdir($dir)) if (($file_name != .) ($file_name != ..)) $file_list .= $file_name; } This excludes . and .. files. How

[PHP] translate Mac charater to Unix

2002-02-28 Thread Laurent Patureau
Hi, I have to translate Mac special character in a file that a receive on my server from a Mac to standard Unix in PHP Is anybody know how to do ? Regards, Laurent Patureau -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

Re: [PHP] BBEdit - URL Check

2002-02-28 Thread Chuck \PUP\ Payne
Dreamweaver does this but it cost. I am sure there are some shareware or freeware programs. Check versiontracker.com this is the best site to find MacOSX software. Chuck Payne Magi Design and Support on 2/28/02 10:37 AM, Josiah Wallingford at [EMAIL PROTECTED] wrote: Right now I am on a Mac

Re: [PHP] html output done without result of exec_shell

2002-02-28 Thread Gunther E. Biernat
Weird, built a newer apache version, and it runs like hell. Thanks for your help. On Thu, 28 Feb 2002 22:45:52 +0800, Jason Wong wrote: On Thursday 28 February 2002 20:30, Gunther E. Biernat wrote: Hmm, yes, did so, even as the user that the webserver is running as. Switched to another

[PHP] Applying The Patch (Mandrake)

2002-02-28 Thread Chris Hilbert
I'm running mandrake 81 with PHP 411 (RPM install) on my system and was wondering how to apply this patch I know I need to use patch [destination] [source] but I'm ont sure if this patch works with RPM based installation Any help would be greatly appreciated Thanks, Chris Hilbert -- PHP

Re: [PHP] Probably basic but seems advanced to me, PHP/SQL generation.

2002-02-28 Thread Jason Cox
Matt, Perhaps I could elaborate for you. When you run a mysql query through php the function returns a result variable. This is not unlike a cursor that you would use in oracle programming. This result set contains all the rows returned by the query but you must take it a step further to

Re: [PHP] just wanna know

2002-02-28 Thread Sean Kennedy
As far as the output in the browser there is no differnece between echo ; and print( ); . -Sean - Original Message - From: eoghan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 28, 2002 5:17 AM Subject: [PHP] just wanna know hi whats the difference between print

Re: [PHP] novice question

2002-02-28 Thread Jason Cox
JD, This is how you would do it: ? $ab = add($a,$b); echo$ab; ? - or you could do it directly like this - ? echo add($a,$b); ? - or my personal preference - ?=add($a,$b)? === ? function add($a,$b) { $ab =$a+$b; return $ab; } ? A quick read of the section on functions in the online

Re: [PHP] Hi

2002-02-28 Thread Andy
http://www.phpbuilder.com is an excellent site. Features articles and tutorials! Good luck Andy Simon Willison [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]; dharmavatar wrote: Hi everybody, I am new in this group,so could any one tell me how to start learn PHP? I had

Re: [PHP] Probably basic but seems advanced to me, PHP/SQL genera tion.

2002-02-28 Thread Bas Jobsen
Hi Matt, couple of questions (I like to understand what I am doing to that I don't need to ask again) Well, okay, i understand and will try. Please take a look in the manuel too. each() will return a array and sets the array pointer to the next element of the input array. The returned array

[PHP] working with word

2002-02-28 Thread libor matyas
hi, could anyone spare a sample code that would do the following: let's have a link do makedocphp file i want the script to open an existing doc file, change it and send it back to the browser regards libor -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit:

[PHP] Re: arithmatic operation inconsistant

2002-02-28 Thread Philip Hallstrom
The reason that $ns1 is getting set to 1 so many times is because you are doing this: picking a random number between 90 and 120 using number_format to convert that number into a string such as 900,000 or 1,200,000 Then using that *string* in a mathmatical operation So, for as soon as

[PHP] Stupid Question

2002-02-28 Thread PHP List
Yes, this is probably in the manual, but I can't find it. If I want to upgrade from 4.0.6 to 4.1.2, do I have to re-compile apache as well? Thanks Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stupid Question

2002-02-28 Thread Greg Donald
Yes, this is probably in the manual, but I can't find it. If I want to upgrade from 4.0.6 to 4.1.2, do I have to re-compile apache as well? No. I just upgraded 3 machines this morning, and left Apache the same on all of them.

RE: [PHP] Stupid Question

2002-02-28 Thread Jackson Miller
I thought that you do have to recompile if you are running PHP as a module, but not if you are running PHP as CGI. I could be wrong. -Jackson -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 12:28 PM To: PHP List; php Subject: Re: [PHP]

RE: [PHP] Stupid Question

2002-02-28 Thread DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2)
if PHP is NOT a module axps and is build into apache then I was under the impression you had to recompile apache as PHP was built into apache. -Original Message- From: Jackson Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 5:46 PM To: Greg Donald; PHP List; php

[PHP] PNG Lib

2002-02-28 Thread PHP List
Hi, Does anyone know where the PNG library went? The manual points to cdrom.com/pub/png, but that does not exist anymore. Thanks for any help. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stupid Question

2002-02-28 Thread Greg Donald
I thought that you do have to recompile if you are running PHP as a module, but not if you are running PHP as CGI. I could be wrong. No, you do not have to recompile apache. I did this on all three of my machines: ./configure --with-apxs=/usr/sbin/apxs --with-mysql make make install

Re: [PHP] PNG Lib

2002-02-28 Thread Greg Donald
Does anyone know where the PNG library went? The manual points to cdrom.com/pub/png, but that does not exist anymore. http://www.libpng.org/pub/png/ Greg Donald - http://destiney.com/ http://phprated.com/ |

RE: [PHP] Stupid Question

2002-02-28 Thread DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2)
so you are running with apxs and do not need to re-compile as I said. If you are running with PHP as an apxs then fine, if you have built PHP into apache then you should need to re-compile. Matt. -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED]] Sent: Thursday, February

[PHP] Re: mysql php - while loops

2002-02-28 Thread bill
Keep track of rows, and add images at rows 4 8. See below Craig Westerman wrote: The following lists 12 items from a fruits table. $results = mysql_query(SELECT ID, date, appleprice, orangeprice, pearprice FROM fruits); $x=1; while ($data = mysql_fetch_array($results)) { ?

[PHP] PHP and passwords

2002-02-28 Thread webmaster
Is there a way to connect to your database using php without hard coding a password into the php file? We run PostgreSQL 71 on a Linux 72 server with the latest version of apache I don't want to change the authentication within Postgres to not require a password But I also, for security

[PHP] URGENT: CERT Advisory CA-2002-05 Multiple Vulnerabilities in PHP fileupload

2002-02-28 Thread Bogdan Stancescu
Hello everybody! For whever's interested... @cert.org= @cert.org=CERT Advisory CA-2002-05 Multiple Vulnerabilities in PHP fileupload Original release date: February 27, 2002 Last revised: -- Source: CERT/CC A complete revision history can be found at the end of this file.

[PHP] Simple chat

2002-02-28 Thread Danilo Dias
I have 2 problems. Problem #1: I need to make a simple chat page. When a user logs in, he should be able to see everyone that is logged in, and send messages to all. Just that. Its not necessary that they send messages to a particular person. I need just one room. It may be simple, but I

Re: [PHP] Stupid Question

2002-02-28 Thread PHP List
RE: [PHP] Stupid QuestionThanks for all the responses. Just to be clear, I have php installed as a module, so I have to re-compile apache. - Original Message - From: Adam Plocher To: 'PHP List' Sent: Thursday, February 28, 2002 9:46 AM Subject: RE: [PHP] Stupid Question

Re: [PHP] PNG Lib

2002-02-28 Thread PHP List
Thanks, Sorry I asked, I should have just searched for it, but my clue-x-4 is broken. Does anyone know where the PNG library went? The manual points to cdrom.com/pub/png, but that does not exist anymore. http://www.libpng.org/pub/png/

Re: [PHP] Simple chat

2002-02-28 Thread Dean Householder
You can try a very cheesy solution. Totalsimplicity will host a free chat room without any installation. All you have to do is go to the following link: http://www.totalsimplicity.com/genchat.php?fromj=y and specify the name of the chat room you want to create and it will generate the code to

[PHP] Won't display session information

2002-02-28 Thread jeremy spielmann
I'm working on a simple session management program for logging in and I can't seem to get the information to properly display I would really appreciate a second look from someone Code is below ? //main line session_start() session_register(FirstName); session_register(Email); ConnectDB();

[PHP] PHP and BrowserHawk

2002-02-28 Thread Richard Fox
Hi Richard, I have finally got Java working with PHP. My Java is JSDK 1.4.0, the latest release of the SDK from Sun. How do I know it's working? I put $system = new Java(java.lang.System); print Java version=.$system-getProperty(java.version). br\n; print Java

RE: [PHP] URGENT: CERT Advisory CA-2002-05 Multiple Vulnerabilities in PHP fileupload

2002-02-28 Thread Nathan Cassano
I'm finished! Patched all my servers, recompiled and installed. We're safe. -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 9:58 AM To: [EMAIL PROTECTED] Subject: [PHP] URGENT: CERT Advisory CA-2002-05 Multiple Vulnerabilities in

Re: [PHP] Apache Server Side Includes mixed with PHP pages

2002-02-28 Thread Joel Boonstra
Thanks Martin - that does work. I was just thinking in ASP terms. But I am curious as to whether Server Side Includes can work together with php. Nope, at least not with Apache = 2.0. Apache 2 will let you have multi-pass parsing, so your PHP could output SSI, which would then be parsed.

Re: [PHP] class effeciency

2002-02-28 Thread Mika Tuupola
On Thu, 28 Feb 2002, Nick Wilson wrote: It is only the *properties* that are different in each language class not the methods so I'm including all the same methods twice! That doesn't seem terribly efficient There is no need to rewrite the methods See:

[PHP] regular expression; problem with '-' character

2002-02-28 Thread Lee P Reilly
Hi, Could someone be kind enough to have a look at this regular expression and perhaps tell me why is returns false when a '-' character is included in the $center string? if (eregi(^[a-zA-Z0-9!@#\$%^\*\(\),/.//\?;':\~`_\+\|\-\\\t\n\ ]*$, $center)) { return true; } else {

Re: [PHP] fsockopen and HTTP Authorization

2002-02-28 Thread Mika Tuupola
On Thu, 28 Feb 2002, Bas Jobsen wrote: I try to do a HTTP Authorization with a fsockopen, but it doesn't seem to work Who can help? $user and $passwd are set well, my code: I think you can spy from PEAR HTTP_Request class how it can be done:

Re: [PHP] PHP and passwords

2002-02-28 Thread Sam Masiello
What you could do is have a script called connect.inc which has your pg_pconnect statement, then use the include directive to include your connect.inc on all of your subsequent PHP pages. This way you only have the username/password hard coded in one location so if the username/password were to

[PHP] how to: variable = php parsed file include

2002-02-28 Thread Brian Petro
I've got a site that I've used php to include the navigation bar as a separate file Within that nav-bar is a small php application I have no problem including the php nav-bar file and it gets parsed by php and the application works The problem is that I also want to use the same file include

[PHP] Help with the record, here isn't visibility!!!

2002-02-28 Thread Michele Salerno
The page is http://www.coopmediante.net/page/utenti/master.php In the database i have 3 records. the page no print a video the records, because?? Help me...help me! Tanks you very much!...is correct much? Bey bey Michele ?php //Copyright (c) Interakt Online 2001 //

[PHP] Using SSL - slightly OT

2002-02-28 Thread Darren Gamble
Good day, I'm trying to set up a site that will use SSL for all of its web and control transactions. Currently I get an error when Apache is started up with PHP and SSL compiled together (on FreeBSD). There's a bug report on it, so it's just a matter of waiting. In the meantime, I'd like to

[PHP] Re: how to: variable = php parsed file include

2002-02-28 Thread Julio Nobrega Trabalhando
Find on phorm.php where you want to put your nav bar, and use: include('file_name.php'); -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Brian Petro [EMAIL

[PHP] Sockets

2002-02-28 Thread Karl Pietri
Hello i am trying to write a php script to monitor some tcp services running on our network i use fsockopen to open it I use this code to get all the data off the port in one block while(!feof($sock)){ $indata=fgets($sock,256); } the code is roughly like this

[PHP] check on pictures

2002-02-28 Thread Martin Kampherbeek
Can someone help me with this problem? Someone fills in my form. One field on the form is galleryurl. Here he types a url with some pictures on it. On this page the are thumbnail with links to bigger pictures. Now I want to check if the pictures are realy on it. And I want to check if there is

[PHP] MySql - PHP

2002-02-28 Thread Josiah Wallingford
I am in the process of creating a php script that will do the following for users in the ISP that I work at: First screen: Which department do you work for? (List of all departments, in this example we will use the salesman) Second Screen: username - password (employee enters user-pass) They

  1   2   >