[PHP] Re: simple ereg() question

2003-07-09 Thread gamin
"Eddy-Das" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > ereg(".+") > Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Text boxes posted to MySQL record that contain quotes

2003-07-08 Thread gamin
"Vernon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > OK when I use the mysql_escape_string() it adds the slashes so that the > message will have \"the message\" so I've tried using the stripslashes() as > such: > > $message = > stripslashes(mysql_escape_string($HTTP_POST_VARS[

[PHP] simple ereg() question

2003-07-08 Thread gamin
Hi, How do i check with ereg() is a string is non-empty (!== '') Thx G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: permission problem - i guess

2003-03-17 Thread gamin
set everything right before i start working on the production system. I managed to solve the problem. I rebuilt PHP in a different and more suitable directory. Thank you very much regards gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: permission problem - i guess

2003-03-16 Thread gamin
Here are the outputs from the phpinfo() (called directly from ./u.php and called from /var/www/html/test.php which executes u.php). Note that the section on mysql is missing in the latter. <--- from u.php --- > phpinfo() PHP Version => 4.3.0 System => Linux localhost.localdomain 2.4.7-10 #1 Thu S

Re: [PHP] permission problem - i guess

2003-03-16 Thread gamin
> Weird, check if both versions use the same php.ini, it is mentioned in > phpinfo output. > Yes, they both point to /etc/php.ini Do you want me to paste the contents of the 2 files here ? they are a little long so i'm asking gamin -- PHP General Mailing List (http://ww

Re: [PHP] permission problem - i guess

2003-03-16 Thread gamin
sql.default_socket => no value => no value mysql.default_user => no value => no value mysql.max_links => Unlimited => Unlimited mysql.max_persistent => Unlimited => Unlimited mysql.trace_mode => Off => Off Thank you and regards gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] permission problem - i guess

2003-03-16 Thread gamin
x27; '--with-regex=system' '--with-ttf' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-debugger' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-wddx' '--with-ldap=shared' '--with-mysql=shared' '--with-apxs=/usr/sbin/apxs' Thank you to all With regrads gamin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] fileperms for link

2003-02-03 Thread gamin
fileperms($link) returns - 16877 The permissions seem to be that of the directory the link is pointing to. How can i get the permissions of the link ? is_link only tells me if it is a link or not. thx gamin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] nl2br too?

2003-01-16 Thread gamin
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > --- Cesar Aracena <[EMAIL PROTECTED]> wrote: > > When I make a form in a web site for a visitor to > > send me some comments, I use nl2br() to put things > > like line breaks and see what the visit

[PHP] Re: Question about $_GET

2003-01-15 Thread gamin
Frank, With so many various suggestions coming your way, i'll add my 2 cents. I have gone through all this mess. Read the information from the manual about strings constants arrays (why "$some_array[id]", $some_array[id] are wrong, but would work sometimes) [unless u have intentionally defined

[PHP] difference between shared and /usr/bin/mysql

2003-01-15 Thread gamin
Hi, When compiling PHP what is the difference between these two : ./configure --with-mysql=shared ./configure --with-mysql=/usr/bin/mysql What are the advantages/disadvatages of using either. thx g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP] --without-mysl in configure command

2003-01-14 Thread gamin
"Johannes Schlueter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tuesday 14 January 2003 19:54, gamin wrote: > Thx Johannes for pointing this out. In the php.ini file i have Your welcome ;-) > extension=mysql.so Now i have

Re: [PHP] --without-mysl in configure command

2003-01-14 Thread gamin
"Johannes Schlueter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Yes, the last part is the imortant ;-) The PHP-MySQL-Extension was compile as shared extension. It is included in your php.ini file with a command sth. like extension=php_mysql.so johannes Thx

[PHP] --without-mysl in configure command

2003-01-14 Thread gamin
shows me that php-mysql-4.0.6-7 is installed, maybe something to do with this. Thank you gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] upgrading from 4.0.6 to 4.3.0

2003-01-14 Thread gamin
versions. Do i need to remove the old PHP installation before building the new one ? Would using the configure command that shows in the currently (with 4.0.6) work with the ver 4.3.0 ? Thank you gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] killing child process

2003-01-02 Thread gamin
here a way to make a process a child, so that when the parent termintaes/is terminated the child terminates also ? thx gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PLEASE HELP

2002-12-31 Thread gamin
> Dale > Are u getting this, everytime you declare a variable ? Or only in this one case, then you should post the relevant code. gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Keeping script running, but returning control to user?

2002-12-31 Thread gamin
his page. Here is a simple solution for linux/unix based systems. You put your processing into a command line scirpt (passing it varibles that u need with $argv ) and call the scirpt like this : system("./yourscirpt.php &"); // & will cause the script to go in the background, thus u

Re: [PHP] Re: rtf....I knew it couldn't be this easy

2002-12-31 Thread gamin
le withing single quotes (luckily I dont have single or double quotes in my rtf source, check the format details and escape them if they are present). HTH, good luck gamin. (code tested with PHP 4.1.2 on WinXP running Apache 1.3.x) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: rtf....I knew it couldn't be this easy

2002-12-30 Thread gamin
n > each line of rtf code and when it is opened in word, it shows all the rtf > code. Is there something else I should doI knew it couldn't be this > easy. > > I tried escaping all the characters in the string such as /,;,{ but that > didn't work either. Try opening

[PHP] Re: PHP scripts resulting in stderr ?

2002-12-30 Thread gamin
ese calls and they dont result in any stderr messages. Thx gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP scripts resulting in stderr ?

2002-12-30 Thread gamin
command-line scripts too ? Thx gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Warning: 1 is not a valid File-Handle resource - HELP!

2002-12-29 Thread gamin
ly add this after your fopen.. if ($fileID === false) { // 3 '=' signs checks variable type and value die("Error opening file. $php_errormsg"); // you will need track_errors = ON in php.ini to use $php_errormsg. HTN gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem with REQUIRE in PHP 4.3.0

2002-12-29 Thread gamin
de_path = ".:/usr/local/lib/php:/some/other/path:/absoute/path/to/your/lib/dir" I dont yet have PHP 4.3.0 so this is from ver 4.0.6 HTH gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 4.3.0, function removed?

2002-12-28 Thread gamin
documentation can sometimes be useful. Happy new year gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] exec, system , backtick

2002-12-27 Thread gamin
o i have no problem, but how would one redirect stderr to stdout on a Win machine, if it is possible at all Have a good day gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] exec, system , backtick

2002-12-27 Thread gamin
and STOP the script from going ahead and include the error in a file for later examination. I would be using 'rm, unzip, tar, rpm' etc commands from inside a PHP script. Micheal Sims' post has something interesting. gamin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] exec, system , backtick

2002-12-27 Thread gamin
"Maciek Ruckgaber Bielecki" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > try : > $message = shell_exec('rm file'); > ?> Tried that too, :-( no success gamin -- PHP General Mailing List (ht

[PHP] exec, system , backtick

2002-12-27 Thread gamin
': No such file or directory' #! /usr/bin/php -q What should i do ? thank you gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: URL parsing

2002-12-18 Thread gamin
Hi Mako, if your URL is going to have this format consistently try this $data = explode("/",$URL); $user = $data[3]; HTH (untested code) gamin. "Mako Shark" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... &g

[PHP] Re: PHP question

2002-12-18 Thread gamin
Have a look at suexec HTH gamin "Tom Ray" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Are PHP script supposed to run as the user or as the web server? > Currently I'm running Red Hat 7.3 with apache 1.3.x and all my PHP

[PHP] Re: security of stand alone script

2002-11-24 Thread gamin
i guess i can use $remote_addr to see if the user has an IP. But still out of curosity - any way of knowing the user that called the script ? gamin. Gamin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > >Running Red Hat

[PHP] security of stand alone script

2002-11-24 Thread gamin
Hi, Running Red Hat 7.2, PHP 4.0.6. Is there any way of knowing if a certain PHP script was run from the command line, shell script or through the webserver (Apache). May be i could check the user calling the script and find out but how would i do that ? thx in advance gamin -- PHP

[PHP] get info of sub-directories

2002-11-24 Thread gamin
Hi, i wanted to know if given a certain dir it is possible to get all the sub-directories and files in an XML document. There could be many ways to do this, just wandering if anybody has already done this. thx in advance gamin. -- PHP General Mailing List (http://www.php.net/) To

[PHP] writing to a file

2002-11-22 Thread gamin
ents in 't' when they are written to the file thx in advance gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: funny system()

2002-10-27 Thread gamin
I found the error, silly me i had $!/usr/bin/php -q instead of #!/usr/bin/php -q, sorry gamin. "Gamin" <[EMAIL PROTECTED]> wrote in message news:20021027181157.79883.qmail@;pb1.pair.com... > Hi, > > RedHat 7.2 - PHP 4.0.6 > > i run this command on the co

[PHP] funny system()

2002-10-27 Thread gamin
/php -q the script seems to hang. it does not seem to result in anything for at least 4-5 minutes (i haven't tried more than that) What am i doing wrong ? gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] is it possible using mysql alone

2002-10-27 Thread gamin
= table2.A. ANY CLUES ? here is what i tried - insert into table1 (B) select t1.B from table1 t1, table2 t2 where t1.A = t2.A THIS is only for column B- but it tells me i cant have table2 in the from clause thx in advance gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: using fopen() to download remote files

2002-10-03 Thread gamin
ld I use > for this?? > Hi, I have never done this give this is shot, try it it should work. you can use passthru()/system() to call wget (you can specify the timeout in wget) (wget will let u know the success or failure) and donwload the file in a temporary folder. then you can use fopen

[PHP] fopen() limit

2002-10-03 Thread gamin
Hi, what sort of size limtis does fopen() have on a Linux based system ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] no errors ?

2002-10-03 Thread gamin
_ALL solves this thx everybody gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: using fopen() to download remote files

2002-10-03 Thread gamin
tell the remote web > server to not download the images associated a particular URL? I'm running > Red Hat 7.3 and Apache web server. > > Any help would be greatly appreciated. fopen() will open only the HTML document specified. It does not open or download any of the images etc, n

Re: [PHP] no errors ?

2002-10-03 Thread gamin
I hope this provides enough information to someone who can tell what is going wrong. thx gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] no errors ?

2002-10-02 Thread gamin
php.ini file) - error_reporting = E_ALL & ~E_NOTICE I still cant understand why PHP is not complaining ? thx gamin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] no errors ?

2002-10-02 Thread gamin
hi, i'm running PHP 4.0.6 with apache on RedHat 7.2 , error_reporing is set to default(2039) in the php.ini file : my script is as follows : But i dont get even a parse error or anything Any clues to what is going wrong ? thx gamin. -- PHP General Mailing List (http://www.ph

[PHP] passthru()

2002-05-17 Thread gamin
I have a PHP script that computes the URLs to files that i need to download. Is it possible to put passthru() with wget in a while loop and donwload multiple files at one time ? Or does passthru() complete the shell command and then proceed. Any other suggestions ? thx in advance gamin