Get rid of the Content-type for now, and see if you have any error
messages...
You'll need Content-type to make it work, but if you have a PHP error
message on any of the subsequent lines, they don't make a valid image.
You could also re-direct errors to the Apache log (or other) and view that
Running a spell-checker and highlighting problems with a web-interface for
the original author to decide what to do is probably the ideal middle
ground...
It's not a trivial HTML/browser interface to write, but it shouldn't kill
you to do it.
If you don't have
writing to a flat file I am getting 500 error with Apache. I know the path
is correct and when I delete the file.txt and try to write to it. A new
file
is created but no writing. What does Premature end of script headers:
mean?
It means Check your Apache error_log files because PHP and/or
I discovered that the bit that Internet Explorer 4.0 didn't recognize a
cookie as valid when I included an expiration time.
This Doesn't Work:
setcookie (ArtPrintSession,$SessionID,time()+3600);
What's the bug???
IE.
IE read the spec about optional arguments and decided that if you
Use IE long enough to find out what the output is...
Or, log output to a file as well as the browser.
Or... Is this thing taking more than 30 seconds to run?
http://php.net/set_time_limit
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me
I finished English version of my site and wanted to start Russian
part but realized that MySQL server returnes all data in koi-8r
charset which is not very comfortable for some of the users,
specially I know that A LOT of russians using Opera brawser older
versions of which do not support
rename(document.htm, testing.htm);
Warning: Rename failed (Permission denied) in
C:\Inetpub\WEBS\mysko\uploads\rename.php on line 4
The directoy has change permissions. What am i donig wrong...?
Change permissions for which user?
In Microsoft, that Change Permission in the web-root
Yahoo *might* be detecting that you're not a real browser, since PHP
probably sends different headers when you attempt to get the file
dynamically than your browser sends when you type the URL.
So Yahoo may be denying you access when using PHP, but not from your
browser.
There's nothing to stop
Even if you could get it to work, you'd be in trouble, as the PHP
interpreter will clean up after you and trash your MySQL connection when it
finishes, and anything that didn't get done before that would not work.
You'll probably need to code this with two separate PHP files, one which
calls the
?php
function incl_common()
{
global $modroot; //modroot is defined as http://localhost/modules in a
settings file
echo br$modroot from included; //this echos
http://localhost/modules; properly
//the below throws the error, OpenDir: No such file or directory
(error 2) in
Is it possible to have a form submit button call a function. Like for
updating a record in a database or for deleting data. Rather than a
new page or with PHP_SELF
Not really.
PHP lives on the server.
The HTML and its submit button live on the browser.
Any functions in the PHP script that
Actually it doesn't seem like too much of a hack, except that it seems
to be not a realtime operation (otherwise why would they need to contact
your script?).
They contact your script so you can do whatever *YOU* want for each
transaction -- Log it, email the customer, ring a bell, whatever.
You also should use \r\n instead of just \n to be really spec.
Double-check RFC spelling of Reply-To: or Reply-to: Capitalization matters
for email headers.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD:
Are there any firewalls involved?
If so, it's possible that some sort of authentication algorithm for packet
routing is breaking at some point that's not directly related to the
sessions, but to the header-forwarding -- Or even a badly-broken HTTP cache
on the firewalls.
Of course, if it's a
Check your error log to see if there's anything there about why PHP is
dying.
Does it answer this right away, or take forever? If it takes about 10
seconds, your DNS could be messed up.
Can you run PHP from a DOS prompt on the same script? What comes out?
--
WARNING [EMAIL PROTECTED] address
For secure payment pages, I need for the code to determine the persons IP
address, even if they have a spoofer running. Is this possible? Getting
around the spoofer in order to catch criminals using illegal credit card
#'s..
In addition to $REMOTE_ADDR, some firewalls provide an
I can't seem to get my win2000 box to recognize the .php files. It's coming
up with an error,
What error is it coming up with?
and just reading them as test.php.txt files in explorer. How do i get this
to work. I believe
Change their name to not have .txt on the end, and stop using that stupid
How do you know it downloads them twice? What are you seeing?
Also, if you want it downloaded, Content-type should be
application/octet-stream. Perhaps that's causing the browser snag it and
try to display it on top of the download... Sounds like how MS would code
it.
--
WARNING [EMAIL
Are all the mod_rewrite settings exactly the same?...
That would be my first guess.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time:
You can use cURL, and must if it's an SSL server, or you can just fsockopen
to their server on port 80 and send the stuff they expect.
See code archives for sample code.
http://php.net/links.php
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help
This should get me exactly 3 months later and also checks for if its a
later
No, it won't on leap years, or during daylight savings time changes, etc.
Don't try to do the year/month calculation yourself.
Let PHP do it for you, and it will be correct. Every time.
$threemonths = mktim(0, 0,
$command =/home/kyelateas/cgi-bin/test.pl;
exec($command, $return, $status);
if ($return) {
$return = implode(\n, $return);
print preData = $return\n\nStatus = $status/pre;
}
else
# echo No data returned;
echo OS Error $status. Usually paths/permissions. See 'man
What version of PHP/Apache/etc are you using?...
What browser on what OS?
If it's consistently doing this for all browsers, you could write some code
to check the uploaded file, and if it starts with Content-type: , strip
off the lines.
Both GIF and JPEG files have distinctive starting
Huh?
Give a bug ID from http://bugs.php.net or something.
Got no idea what you're asking about.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time:
See browscap in PHP Manual, maybe.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Bolivar
123|blah|foo|bar|etc
To be formatted like:
INSERT INTO Table VALUES (123,'blah','foo','bar','etc');
Assuming there are not | in the actual data:
?php
$path = /path/to/file/to/import.txt;
# A few thousand entries is a bit much to suck in at once, but
# it's a one-time hack,
If you use fputs() you will be adding a blank line.
If you use fwrite() you won't.
If you want to suck in the file and remove line breaks, just use:
$text = str_replace(\n, '', $text);
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?
Could somebody please show me, send me an example or redirect me to a page
which shows how to show a random FLASH movie from a text file which
contains different names of different movies so that when i go on the page
it shows lets say, 1 of the 5 movies in the text document.
?php
# Pick a
my ISP doesn´t support natcasesort(),
can anybody tell me how to write a cmp function?
I couldn´t find a documentaton about it.
function usort_text($value1, $value2){
if ($value1 == $value2){
$result = 0;
}
elseif ($value1 $value2){
$result = -1;
}
else{ #
Have you tried http://php.net/odbc_result
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From:
Also make sure you are running PHP as a Module and not CGI.
You can't do HTTP Authentication from inside PHP under CGI.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a
I set up a user-auth script that checks $PHP_AUTH_USER $PHP_AUTH_PW
against a db with login/pwd information, but on the server my site is
hosted
this doens't work because PHP runns as cgi.
How do I do this with PHP running as a cgi?
You can't.
You'll have to either:
Re-code it to get
watching apache processes (top), trying to track memory usage. It seems to
vary size between 14M 16M vary RES from 12M to 14M. Is this varying
normal? Is this size normal? (2400
Those numbers are normal and are inclusive of SHARED memory segments, so
will add up way higher than actual
try
html code
input type=text name=q[] size=100
input type=text name=a[] size=100
php code
$values = '','$interviewed','$interviewer',
for ($i=0; $i10; $i++) {
$qtemp .= '.q[$i].',;
$atemp .= '.a[$i].',;
}
$fields =
any ideas, oh gurus?
While I'm not a guru, here is some info that may help.
On webaxxs / olm standard account machines, this can't be done (at least
that's the conclusion I have come to after many hours). Even using the
files directive in the htaccess file won't the trick on their servers with
Richard, Tanks for your thinking,
I have used the register_shutdown_function to test the reason for the
break. This result in a normal shutdown, i.e. nothing wrong at the server
side, the output is completely parsed. When I replace the form method POST
into a GET everything works fine. With
I want to generate an image using the following code, and think it should have worked.
Unfortunately I get an error message saying the header info has already been sent,
and the browser (IE5) doesn't print a picture just the
characterset representing the picture. I think I've got it right,
I looked through the archives, and tried finding info in the PHP manual,
but haven't had much luck.
I'm looking for a way to restrict virtual host users to their specific
little directory by putting a Directory thing in my httpd.conf.
It looked like open_basedir should do the trick, but it
It worked!! but only after I removed the two blank lines above the ?php
start line too. Thank you very much.
- Original Message -
From: Corin Rathbone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 3:40 PM
Subject: RE: [PHP] Image header
Bill has hit it right on! Programmers all over the world have already
recognized that PHP is a superior language, and open-source is not the root
of all evil (as M$ would have us believe). However, many (most?) execs do not
listen to reason, but rather only to TV and glossy ads. Therefore, I
Hi! dearest friends,
How to copy files from one directory to another
directory through php on linux platform??
Thanks in advance.
Regards
-Balaji
The Information contained and transmitted by this E-MAIL is proprietary to
Wipro Limited and is intended for use only by the individual or
Balaji Ankem wrote:
Hi! dearest friends,
How to copy files from one directory to another directory through
php on linux platform??
- Be sure you have permission to read the files to be copied and to
write into the destination-directory.
This is rather UNIX-specific than related to PHP.
-
Hi! dearest friends,
How to copy files from one directory to another
directory through php on linux platform??
Thanks in advance.
Regards
-Balaji
The Information contained and transmitted by this E-MAIL is proprietary to
Wipro Limited and is intended for use only by the individual or
On Tue, 7 Aug 2001 19:39, Chris wrote:
I have a bunch of dates like this:
Jul 24 2001
Jul 31 2001
Aug 7 2001
I need to sort it from oldest to newest, but I can't devise a way that
works. And they are text fields in MySQL so that won't sort it
correctly either. Can anyone point me in the
Much of this has already been posted, but it really needs top-level exposure.
Programmers all over the world have already recognized that PHP is a superior
language, and open-source is not the root of all evil (as M$ would have us
believe). However, many (most?) execs do not listen to reason,
will the readfile() function not accept a user/pass combination in an ftp
url? like:
readfile(ftp://user:[EMAIL PROTECTED]/path/to/file;);
I get two errors. The first is a file not found error.
The second is a No Such file or directory error.
droppoing the user:pass section works just fine.
Today's Joke: INDO-PAK WAR
~
The cold war between US and USSR resulted in a system where if USA
launched a Nuke-loaded missile, USSR's satellite were capable of
informing the USSR army in 3 seconds, and in less than 45 seconds USSR
would launch its counter-missile. US knew that
hi everyone!
I'm new to PHP.
I don't know why I can't make this page work.
it doesn't show my search result.
Any help would be appreciated.
This script is driving me nuts! :-)
Thanks!
?php
$connect = mysql_connect(localhost,user_name,password);
$select_data =
On Fri, 11 Feb 2000 09:36, Ardani Sarjito wrote:
hi everyone!
I'm new to PHP.
I don't know why I can't make this page work.
it doesn't show my search result.
Any help would be appreciated.
This script is driving me nuts! :-)
Thanks!
?php
$connect =
Could you please give us some error messages, please?
?php
$connect = mysql_connect(localhost,user_name,password);
$select_data = mysql_select_db(ardani_cd_collection);
$query = SELECT * FROM main where description = '$song_title';
$result = mysql_query($query);
while($row =
I'm back again!
What does this warning mean:
Supplied argument is not a valid MySQL result resource
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,
Hi,
I hope u r regisitering the session variable (i.e. username) on submit of
index.php. If u r doing this then u can access the same by using
$HTTP_SESSION_VARS['username'] assuming u r registering ur session variable
as username.
I hope all the frames have session_start also.
karthik.
Hi! friends,
i also want this feature.
Can u tell me how to start a session whenever the user logged
in and how to end session after logout.
where i have to give these function names...
session_start();session_register(username);
Thanks in advance.
Regards
-Balaji
- Original
Dear everyone who has been trying to help me.
THANKS ALOT!!
Sincerely,
Ardani
--
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]
101 - 154 of 154 matches
Mail list logo