[PHP] Re: Date

2001-12-11 Thread Mike Eheler
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

[PHP] Re: [ADMIN] spam protection for lists.php.net lists

2001-12-11 Thread Mike Eheler
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

RE: [PHP] Cookie Retrieval

2001-12-11 Thread Johnson, Kirk
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

[PHP] conflicting types for `gdIOCtx'

2001-12-11 Thread Gabriel Richards
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

[PHP] Help with mysql query

2001-12-11 Thread Daniel Alsén
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

[PHP] Re: Help!

2001-12-11 Thread Raivo
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

[PHP] Re: Redirect + SESSION question!!!

2001-12-11 Thread 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

[PHP] E-mail Uploaded File

2001-12-11 Thread Ben Clumeck
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

RE: [PHP] E-mail Uploaded File

2001-12-11 Thread Jason Murray
> 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

Re: [PHP] Help with mysql query

2001-12-11 Thread Kevin Stone
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

[PHP] sorting for thinkers:)

2001-12-11 Thread Rambo Amadeus
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

RE: [PHP] Help creating an image repository/library.

2001-12-11 Thread David Piasecki
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

RE: [PHP] sorting for thinkers:)

2001-12-11 Thread David Piasecki
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

[PHP] Application.cfm like mechanism in PHP?

2001-12-11 Thread christian calloway
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

[PHP] Re: how do i get the browser's screen resolution?

2001-12-11 Thread Yasuo Ohgaki
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

[PHP] Re: session woes

2001-12-11 Thread Yasuo Ohgaki
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

[PHP] OO question

2001-12-11 Thread christian calloway
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

[PHP] Re: session woes

2001-12-11 Thread Gaylen Fraley
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

[PHP] OO question

2001-12-11 Thread christian calloway
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

[PHP] PHPWebSite software broken after 4.1.0 install?

2001-12-11 Thread Gaylen Fraley
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

RE: [PHP] OO question

2001-12-11 Thread Chris Bailey
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

[PHP] FTP functions

2001-12-11 Thread Pierre
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

[PHP] non-browser PHP downloading?

2001-12-11 Thread Erik Price
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

[PHP] Re: Application.cfm like mechanism in PHP?

2001-12-11 Thread Philip Hallstrom
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

Re: [PHP] non-browser PHP downloading?

2001-12-11 Thread Miles Thompson
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

Re: [PHP] non-browser PHP downloading?

2001-12-11 Thread Erik Price
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

[PHP] phplib

2001-12-11 Thread Rodney Davis
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

[PHP] Paypal Instant Payment Notification

2001-12-11 Thread Randall Smith
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. ***

Re: [PHP] Paypal Instant Payment Notification

2001-12-11 Thread Chris Allen
>>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

Re: [PHP] what is "Trans-sid" in PHP

2001-12-11 Thread Jon Niola
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

RE: [PHP] Logo proposal

2001-12-11 Thread Jon Niola
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

Re: [PHP] How to compile PHP-4.1.0 or 4.0.6 with Oracle-9i ?

2001-12-11 Thread Jon Niola
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

Re: [PHP] Logo proposal

2001-12-11 Thread Jon Niola
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

Re: [PHP] Logo proposal

2001-12-11 Thread Hugh Danaher
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

[PHP] Re: PHP 4.1.0 released

2001-12-11 Thread Daniel Urstöger
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 ! "

[PHP] Re: PHP 4.1.0 released

2001-12-11 Thread MindHunter
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

Re: [PHP] Re: PHP 4.1.0 released

2001-12-11 Thread Zeev Suraski
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... > >

<    1   2