If you only have the text directory listing and don't have access to the
file to do a filetime() call on, you can try this:
$modified = stat('header.php');
echo 'Last Modified: ' . date('F j, Y, g:i a',
strtotime(substr($modified[9],35,12)));
Tha's a really long way around it, and a much bette
I was a bit surprised by it when I posted to the newsgroup earlier, but
I think it's a great idea.
Mike
Jim Winstead wrote:
> as some of you may have noticed over the last few days, a new method of
> spam protection has been implemented on lists.php.net.
>
> if you post to one of the lists.ph
I think this approach should work as long as register_globals is set to 'on'
in php.ini. If it isn't, then reference the cookie as
$HTTP_COOKIE_VARS['poccd_session'].
Kirk
> Can someone tell me if there is a bit of code I need to put
> on pages so I
> can retrieve a cookie.
> The cookie was set
Hi, I'm trying to recompile PHP to include GD and PDFLib support. So, I've
installed those libraries (as well as zlib, libjpeg, libtiff, libpng),
delete config.cache, then ran :
./configure --with-apxs=/usr/local/apache/bin/apxs --with-openssl --enable-f
tp --with-gd=shared -with-mysql=/usr --wit
Even if this isn´t a mysql forum i hope to get some help on this:
I have a table with 5 columns (named one to five) which contains numerical
values between 1 and 10.
I am trying to construct a query that gives me the count of the
representation of each numerical value (ie how many fives that are
I generate random key and put it on the hidden input. When I get submit from
client, I compare, is this key actual or old.
";
}else{
echo "Refresh";
}
mt_srand((double)microtime()*100);
$key = md5(mt_rand(0,999));
$html = "\n".
"\n".
"\n".
"\n".
"\n";
echo $html;
?>
Raivo
I am same problem. I use PHP4.0.6, Apache 1.3.20 and WindowsNT.
My code looks like this:
ob_start();
session_start();
session_register('is_logon');
if (!$HTTP_SESSION_VARS['is_logon')
{
header('Location: logon.php');
ob_end_flush();
die();
}
If I try to execute this code, I get Dr.Wa
Is there a short easy mail script that can take an uploaded file from a form
and have it e-mailed to me? Please let me know.
Ben
--
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 a
> Is there a short easy mail script that can take an uploaded
> file from a form and have it e-mailed to me?
http://planetkiller.shadow.net.au/mime-php.txt
This will show you how to send an attachment in an email
without messing around with classes (which I could never
get to work, hence I roll
Daniel,
Try this. Still sort of a brute force method but just 10 query strings
instead of 50 but nothing MySQL is going to balk at.
Then you an print out the results stored in the $num_vals list using a
similar for loop.
-Kevin Stone
- Original Message -
From: "Daniel Alsén" <[EMAI
Hi,
let say that i have 3 e-mail adresses in mysql.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
How can i sort them alphabeticaly but by domain name. That all abc.com
domains go first, then bcd.com, then cde.com etc.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
Can you chown the directory to the same user as the web server runs as
(ie. nobody)? At that point, you will be able to upload into that
directory while retaining the directory permission of 755.
-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11
Put the email addresses in an array:
$email[] = "[EMAIL PROTECTED]";
$email[] = "[EMAIL PROTECTED]";
$email[] = "[EMAIL PROTECTED]";
Then sort like so:
function cmp ($a, $b) {
return strcmp(stristr ($a, "@"), stristr ($b, "@"));
}
usort($email, "cmp");
You now have a properly sorted $em
Hey everyone,
In coldfusion, if you have a file named Application.cfm in the same dir as
the script that is currently executing, then the coldfusion server will
automatically include that file in beginning of every script in that
directory. Is there any way, by manipulating the php config setting
Roel Derckx wrote:
> Hi
>
> I'm working on a large portal-like php/html site with some large graphics.
> The original design is for 1024x768 and up, but i also want it to be well
> viewable under 800x600 so parts of the design have to be resized for that.
>
> BUT, i can't seem to get that kind
Gaylen Fraley wrote:
> I have a friend who is using an ISP that uses php4.0.3pl1 . It appears that
> session_register is not working between pages. In script A, the session var
> gets registered and shows registered using session_is_registered('testvar');
> However, when script B is called, a s
I want to be able to override a function/method in a parent class, but then
call that function/method from within the overriden function in the child
class. The Zend documentation states you can do this:
"In PHP 4.0 you can call member functions of other classes from within
member functions or fr
No, it still doesn't work. I believe it's a documented issue with that
release. it was fixed in 4.0.4dev.
--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com
PHP KISGB v2.6 Guest Book http://www.gaylenandmargie.com/phpwebsite
"Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote in message
[EMA
I want to be able to override a function/method in a parent class, but then
call that function/method from within the overriden function in the child
class. The Zend documentation states you can do this:
"In PHP 4.0 you can call member functions of other classes from within
member functions or fr
Is anyone else experiencing this? Login to admin.php. PHPWS accespts the
login and password. However, when I click on any link, like Edit Web Page,
it kicks up a blank screen where it should be the web page data. If I try
to edit a main page announcement, it just kicks me back to the admin log
You can use the special name "parent". e.g.:
parent::baseClassFunction();
-Original Message-
From: christian calloway [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 08, 2001 2:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] OO question
I want to be able to override a function
I started to use FTP functions and I would greatly appreciate some
confirmation :
- It is not using FTP function than I can download file to a client's
computer. (is there a way other than the ?)
- I can not read the name of the files that are on a client's computer. (The
client would select a
Is there a way to download PHP without clicking the link in my browser?
Right now I can't use my Xwindows so I need to use wget, curl, or ftp.
I've tried using the hypertext reference (HREF) from the link at my
nearby PHP mirrors, but it must be browser-dependent because none of
the wget attempt
Sure... sort of :)
This is what I do...
- in your webserver config file set auto_prepend.php to point to the
following file:
---
---
Now if any directory con
Open up a console and use lynx.
Miles Thompson
At 06:26 PM 12/11/2001 -0800, Erik Price wrote:
>Is there a way to download PHP without clicking the link in my browser?
> Right now I can't use my Xwindows so I need to use wget, curl, or ftp.
> I've tried using the hypertext reference (HREF) fro
Yeah, yeah, tried that already. ;-) Unfortunately Lynx isn't
installed by default on this puppy, and I'd rather not go through the
trouble of installing more software. If that's the ONLY way, then I
suppose I'll end up doing it, but there aren't any other mirrors where
I can just wget the sourc
This might be a stupid question but I have grown fond of easy little one
stop package installations so...
I am running a cobalt raq4 server and installed php4.06 w/ NEWGD and now
want to include pdflib to that configuration. But, since I installed php
4.06 with a package installer from cobalt, I
I'm close to finishing a php script for Paypal's Instant Payment Notification Service.
Here is what I have so far.
I grapped this function off of the php documentation and added the last line. This
forms the response to be posted back to Paypal.
***
>>My problem (due to my lack of fundemental understanding) is that I don't
know how to read Paypal's response to the post. >>Paypal describes the
response like this,
>>"PayPal will respond to the post with a single word,
'VERIFIED' or 'INVALID', in the body of the response."
YES EXACTLY. it
You would need to have write access to the php.ini file as well as execute
access to the httpd binary to do a server restart in order to initialize
with new configuration.
--Jon
At 11:54 AM 12/11/2001 -0500, John King wrote:
>Ahh, Thanks. Ok I don't see it so it must not be enabled. PHP is ins
LOL, I guess Python is spoken for too ;)
--Jon
At 11:32 AM 12/11/2001 -0800, Andrew Chase wrote:
>Maybe an animal beginning with "P" would be a good Mnemonic device (and good
>for alliteration; think "The PHP Panda" or "The PHP Platypus".) Hmm, I
>guess Panda and Platypus aren't particularly "p
Here is something that may help you:
http://www.cba.ua.edu/~spaff/
I have yet to try it but plan on it soon. Apparently you have to patch the
configure script and it will work :)
Let me know how it works out
--Jon
At 09:11 PM 12/11/2001 +0100, Thies C. Arntzen wrote:
>On Tue, Dec 11, 2001 at
I think MySQL has that already ;)
At 12:33 PM 12/11/2001 -0800, Hugh Danaher wrote:
>How about a porpoise. They're fast, intelligent, and as Lewis Carol said,
>"you shouldn't go anywhere without a porpoise."
>- Original Message -
>From: Dan McCullough <[EMAIL PROTECTED]>
>To: PHP General
Jon,
Dolphins and porpoises are often mistaken for one another. But, the noble
porpoise is an oceanic creature, venturing into the deepest of waters--as
does php : )
Hugh
- Original Message -
From: Jon Niola <[EMAIL PROTECTED]>
To: Hugh Danaher <[EMAIL PROTECTED]>; Dan McCullough
<[EMAIL
Just update PHP to v.4.1.0 about 10 mins ago
Worked pretty go so far ! :)
Will tell about loads soon .. But as far as I see, the load really dropped
...
Yeah, and waiting till Zend is bringing out a working version of Optimizer
for
that PHP version ! :)
cya !
Daniel
PS: thx for your affords !
"
Where do we get the Windows Binaries?
Cheers
MH
Zeev Suraski <[EMAIL PROTECTED]> wrote in message
5.1.0.14.2.20011210234236.0516bec0@localhost">news:5.1.0.14.2.20011210234236.0516bec0@localhost...
> After a lengthy QA process, PHP 4.1.0 is finally out. Download at
> http://www.php.net/downloads
They'll be posted within a couple of days.
Zeev
At 07:42 11/12/2001, MindHunter wrote:
>Where do we get the Windows Binaries?
>
>Cheers
>MH
>
>Zeev Suraski <[EMAIL PROTECTED]> wrote in message
>5.1.0.14.2.20011210234236.0516bec0@localhost">news:5.1.0.14.2.20011210234236.0516bec0@localhost...
> >
101 - 137 of 137 matches
Mail list logo