"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
"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[
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
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
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
> 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
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
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
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
"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
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
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.
"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
"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
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
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
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
> 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
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
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
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
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
command-line scripts too ?
Thx
gamin.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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
"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
': 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
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
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
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
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
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
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
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 -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
= 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
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
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
_ALL solves
this
thx everybody
gamin.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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
47 matches
Mail list logo