I've checked google and the PHP manual, with no results,
so i thought i'd ask here:
Is there any functionality in PHP to allow a function to
find out what function/file/line called it? AFAIK, perl
can do this, and i've always found it a big help when
debugging to have functions die with a call
... and AFAIK, if you're running windows, read 'php.ini'
and you can specify an SMTP server to use for mail
sending.
andy thomas wrote:
On Thu, 14 Mar 2002, andy wrote:
Hi there,
I am wondering, how I could test the mail functions of php on a local
machine. Do I have to install something
Pipes.
I've only had to do it with perl, so i have no idea
what the syntax or function calls are with PHP, but
i'm almost positive that PHP supports reading/writing
to/from pipes.
Liam wrote:
14/03/2002 10:51:10 PM
Hi, I was wondering how I'd go about manipulating some command line
... i think you might have to create the
$date directory before writing a file to it.
writing to /tmp/dir/file.txt will fail if
the directory dir doesn't exist.
jtjohnston wrote:
Does anyone have time to run this code?
This is definitely weird. Either a Windows or a code problem. If I set:
I meant, have you created a physical directory
named $date?
That's your problem. There's no directory
named $date on your computer, and you're
trying to write files into a non-existent
directory.
jtjohnston wrote:
I have created date :)
$date = date (MD);
That's not it. It seems to fail at
It's not absurd at all.
What is absurd is that you're coding without
checking for any error conditions :-)
As a rule of thumb, if a function returns a
success flag, check it. it'll immediately
cut out about 90% of all weird errors.
cosmin laslau wrote:
?
$query = SELECT * from mytable;
Try this... it should only print out Some webpage data
$text =
script somethingscript data./script
Some webpage data
script somethinganother script data /script
;
print preg_replace('/script (.*?)/script(.*?)\/script/',
'', $text);
Ando Saabas wrote:
Ok let me explain my problem further
...because you never shrink $prefix
after output(), try array_pop($prefix);
Alexander Skwar wrote:
Hello!
I'd like to print an array kinda like the way it was created. Ie., I've
got the following array:
$r[0][0]['name'] = 'joe';
$r[0][0]['gender'] = 'male';
$r[0][0]['prop'] =
you have to tell mail() who the email is from.
add in a header similar to: From: [EMAIL PROTECTED]
(read the docs for mail() for syntax)
Dani wrote:
Hi,
I have been trying to use a form to send an email.
I use the mail() function. But I have a bit of problem.
The email send does not
Have you examined the PHP error logs?
Have you turned up error reporting to the max (E_ALL)
and examined what it returned?
Have you examined $php_errmsg (if configured in php.ini)?
Have you tried putting echo statements every few lines
to see exactly where and why the script dies?
Balaji
Are you using MSIE?
what file extension are you testing with?
i was having similar problems using this technique
with PDF files. only with MSIE, sometimes it would
print text crap to the screen and sometimes it
would prompt for download.
MSIE is notorious for disregarding headers and
trying
does that make a difference?
$to_path = c:\\ccl_www\\.$date.\\ccl_www\\;
You want me to change it to:
$to_path = c:\\ccl_www\\$date\\ccl_www\\;
Does anyone follow why?
Scott Furt wrote:
I meant, have you created a physical directory
named $date?
That's your problem. There's
Or, if you're on a *nix platform, try using 'tar'
to tar up the entire directory tree, copy the
'tar' file and un-tar it.
or 'cp -R' should work too.
Martin Towell wrote:
Does xcopy support long file names?
-Original Message-
From: Robert V. Zwink [mailto:[EMAIL PROTECTED]]
Sent:
because the first argument of Setcookie is the name
of the cookie you want to set.
(and what the variable will be called on subsequent pages)
SetCookie('username', $username ...) will do what
you're expecting.
Jesse Warden wrote:
I performed a:
setCookie($username, $username, time()+3600,, ,
Short answer: no.
Long answer: have the PHP script output javascript code
to the browser.
PHP = server-side
Javascript = client-side
Marcel Besancon wrote:
Hi everybody,
is there someone who can tell me how to call a javascript-function by a
php-script.
Thanks for each answer
shall call the
javascript-function by refreshing the whole page.
Bye,
Marcel
--
registered Fli4l-User #0388
Scott Furt [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Short answer: no.
Long answer: have the PHP script output javascr
Message-
From: scott furt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 5:49 PM
To: php
Subject: Re: [PHP] 100% repeatable problem with PHP 4.0.1 in WIN2k
environment.
Try replacing header(Location: success.php)
with something like echo Here we are;
does it still fail
... or mozilla :)
Jason Wong wrote:
On Tuesday 19 March 2002 19:59, scott furt wrote:
Are you using MSIE?
what file extension are you testing with?
i was having similar problems using this technique
with PDF files. only with MSIE, sometimes it would
print text crap to the screen
Errmm... i don't know any apache groups, but
if you want to do what you ask, just read the
documentation, it's easy :-)
jtjohnston wrote:
Anyone know of a good apache group?
I want to hide the structure of a directory when there is no idex.html
present g
J
--
PHP General Mailing
Also, if your sessions use a database, you could
do some SQL queries to see which sessions have
been loaded in the last few minutes.
Julio Nobrega wrote:
From all users on your site? I guess only if you open the directory where
the session files are stored. And loop through the files,
20 matches
Mail list logo