Re: [PHP] print html code

2003-07-02 Thread Jeff Harris
On Jul 2, 2003, "Karina S" claimed that: |Hello, | |I want to make a php site which can generate a html code and display it on |the screen. (Display the code itself.) |I use htmlspecialchars() function. It works fine, but now I have to add |about 200 lines of static html code to print it out. If I

[PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-02 Thread Jonathan Pitcher
I have some scripting that includes files. The included files are executed and everything works great. The included page needs to check multiple information. Currently if I want the scripts to end correctly I have to: if () { } else { if () { } else if ()

[PHP] Need a function to calculate time difference.

2003-07-02 Thread Jack Sasportas
I am trying to find a function or information on how to properly take a start time and an end time from mysql timestamps in order to calculate time taken. So in theory $endtime-$starttime = timespent. It would be great if this understood that 11:55 pm til 12:10am one day apart only equals 15 mi

Re: [PHP] Session Performance questions

2003-07-02 Thread Hardik Doshi
I think writing 2 to 3K data into the session is faster than writing to sql db. Your session files are mostly stored on the swap space of your server and swap space is faster to read than database files stored in the hard drive. Let me know if i am incorrect thanks Hardik Doshi --- Sancar Sara

Re: [PHP] print html code

2003-07-02 Thread Jim Lucas
well, tell me. What browser follows the standards 100% ?? - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: "Jim Lucas" <[EMAIL PROTECTED]> Cc: "Wendell Brown" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Karina S" <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 12:57 PM

Re: [PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-02 Thread Jeff Harris
On Jul 2, 2003, "Jonathan Pitcher" claimed that: |I have some scripting that includes files. The included files are |executed and everything works great. | |The included page needs to check multiple information. | |Currently if I want the scripts to end correctly I have to: [snip] |I would love

Re: [PHP] how can I logout autamaitcally (using session)

2003-07-02 Thread Hardik Doshi
Hi, You can add last_request_time variable into the session when user logs into the system. Initially set the time at which user logs in to the system. Now every user click you need to check your last_request_time with the current_time. If the difference of last_request_time and current_time is gr

Re: [PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-02 Thread Jim Lucas
return; will do the trick Jim Lucas - Original Message - From: "Jonathan Pitcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 2:09 PM Subject: [PHP] Break, Exit, Die, Kill, Maime and Stab > I have some scripting that includes files. The included files ar

Re: [PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-02 Thread Jonathan Pitcher
I have thought about that but most of the information is not switchable. I use the code mostly for checking if a list of variables have been setup correctly. Thanks though. Jonathan On Wednesday, July 2, 2003, at 04:23 PM, Jeff Harris wrote: On Jul 2, 2003, "Jonathan Pitcher" claimed that:

Re: [PHP] Need a function to calculate time difference.

2003-07-02 Thread Jim Lucas
what type of format does your column take? date time datetime ?? Jim Lucas - Original Message - From: "Jack Sasportas" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 2:11 PM Subject: [PHP] Need a function to calculate time difference. > I am trying to

Re: [PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-02 Thread Jonathan Pitcher
return will work outside of functions ?? That I didn't know. Thanks, Jonathan On Wednesday, July 2, 2003, at 04:28 PM, Jim Lucas wrote: return; will do the trick Jim Lucas - Original Message - From: "Jonathan Pitcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July

[PHP] PHP Proxy Server - driving me nuts

2003-07-02 Thread Russell Handorf
I have the following code : "> And get the following result (html): =³- kVÕRFMŸNºI"*#ž€V ZH†ŠF$2±ïT„¨PWPR•j{Ê#Û8HÅRW Xàj ‚ Š€µL !.x ã2‚) C†ãÿ‹4¾Ts cÛü"ى“YvÙ9+V€Î ÄèÎ0‚VOi8¢æ>[EMAIL PROTECTED])Ðk±i›nHî&Ê¿‰!IPQ Xˆ‘*pZ,ÆÎÙÀ¬ôÆ0ü (” BšŠhWÇ~v žxäy±ÒJ|ìéG*¨

[PHP] including a file

2003-07-02 Thread Blake Schroeder
Hey all I want to include a php located on a different server. Is this possible? If so, what would be the pest way to do it? -- Blake Schroeder [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how can I logout autamaitcally (using session)

2003-07-02 Thread Jeff Harris
On Jul 2, 2003, "Hardik Doshi" claimed that: |Hi, | |You can add last_request_time variable into the |session when user logs into the system. Initially set |the time at which user logs in to the system. Now |every user click you need to check your |last_request_time with the current_time. If the |

[PHP] Re: including a file

2003-07-02 Thread Catalin Trifu
Hi, > I want to include a php located on a different server. Is this possible? > If so, what would be the pest way to do it? Read the manual http://www.php.net/manual/en/function.include.php Cheers, Catalin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-02 Thread Jim Lucas
Technically you are not outside of a function. you need to use one of the include or require functions to include the file right? Jim Lucas - Original Message - From: "Jonathan Pitcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 2:30 PM Subject: Re: [PHP] B

Re: [PHP] how can I logout autamaitcally (using session)

2003-07-02 Thread Jim Lucas
Just tell your server to allow the session lifetime to be 15 minutes After 15 minutes of inactivity, the session will not exist. Jim Lucas - Original Message - From: "Jeff Harris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 2:45 PM Subject: Re: [PHP] how can

Re: [PHP] print html code

2003-07-02 Thread Jeff Harris
On Jul 2, 2003, "Jim Lucas" claimed that: |well, tell me. What browser follows the standards 100% ?? The same one that is 100% bug free? -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9

Re: [PHP] Need a function to calculate time difference.

2003-07-02 Thread Larry R. Sieting
Hi, I just went through this... for my daughters drive time for a level one michigan license. Thanks to Wendell Brown for the help. following is my create table command; CREATE TABLE `mileage` ( `id` int(11) NOT NULL auto_increment, `drive_date` varchar(12) NOT NULL

[PHP] Using PHP to read style sheet -- create drop-down?

2003-07-02 Thread J J
Is it possible for PHP or maybe javascript+php to read in a style sheet (whatever.css) and create a drop-down of all the elements within that style sheet? CSS contains: .heading {blah blah size blah} .headingBold {blah blah size blah bold} Then in PHP I'd like to have a drop down that shows thos

[PHP] dynamic form display??

2003-07-02 Thread Micah Montoy
On the form that I am creating I allow the user to browse for a file. I would like it that once the user selects the file, that it displays only the file information in a on the same page. The idea is that the user can keep browsing and selecting files and the file information (location and name

Re: [PHP] online file management

2003-07-02 Thread Dean E. Weimer
> > Hiya. > > I'm looking for a tool that will allow online file management, with a UI > something like that of a traditional FTP client. > > The ideal candidate would authenticate based on a MySQL table and would > be able to handle multiple users with unique base directories. I'd > rather not us

RE: [PHP] Using PHP to read style sheet -- create drop-down?

2003-07-02 Thread Sævar Öfjörð
Sure. You should use file functions like http://is.php.net/manual/en/function.fopen.php http://is.php.net/manual/en/function.fread.php or http://is.php.net/manual/en/function.file.php to read the file and then maybe http://is.php.net/manual/en/function.preg-match.php to extract certain element

[PHP] Re: Need a function to calculate time difference.

2003-07-02 Thread \[cz\]Emo
I use this: function getmicrotime() { list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec*1000); } $time=getmicrotime(); echo "Page was generated in ".sprintf("%01.7f",((getmicrotime()-$time)/1000))." seconds."; Emo "Jack Sasportas" <[EMAIL PROTECTED]> píse v

Re: [PHP] how can I logout autamaitcally (using session)

2003-07-02 Thread sunwei
have you read my email and those docs carefully? and you sure I am asking some silly questions? my question is that I have a website. the user may not stay in one page, they may jump from one page to another page so I want to logout the user if he close all the browser windows, in stead one of t

[PHP] Problem authenticating through sessions and cookies

2003-07-02 Thread Sævar Öfjörð
I’m trying to write a class for authentication. I’ve got it going quite good but there are some problems I’m not shure how to deal with. First, here's the idea: When the class is called, the constructor checks a session variable to see if the user is logged in. If not, it checks if a client-cookie

Re: [PHP] print html code

2003-07-02 Thread Leif K-Brooks
Jim Lucas wrote: well, tell me. What browser follows the standards 100% ?? Most likely none. That doesn't mean you should violate the standards for absolutley no reason, though! Future browsers will most likely drop . -- The above message is encrypted with double rot13 encoding. Any unau

RE: [PHP] 2values on form, help in catching as one.

2003-07-02 Thread Miranda, Joel Louie M
Hi everyone! What I did to make it work is.. -- -- if (array_key_exists('Template', $_GET)) { $template = join (" ", $_GET['attributes']); } switch($template) { case 'TemplateOne': echo "one"; break; case 'TemplateTwo': echo "two"; break; } -- -- As simple as that. :) Im learning!

[PHP] stupidity check: (to disable transparent session id)

2003-07-02 Thread Jason k Larson
I'm almost perfectly certain this *should* work ... can anybody shed some light on why it doesn't? $retval1 = ini_set ('session.use_trans_sid',false); or $retval1 = ini_set ('session.use_trans_sid','0'); or $retval1 = ini_set ('session.use_trans_sid','Off'); $retval1 will be: bool(false) and: $r

[PHP] Re: stupidity check: (to disable transparent session id)

2003-07-02 Thread Jean-Christian IMbeault
Jason K Larson wrote: (B> I'm almost perfectly certain this *should* work ... can anybody shed (B> some light on why it doesn't? (B> (B> $retval1 = ini_set ('session.use_trans_sid',false); (B (BJust a quick guess but isn't that one of the settings you *can't* change (Bon the fly since it h

Re: [PHP] Authentication system

2003-07-02 Thread Doug Essinger-Hileman
On 2 Jul 2003 at 13:00, Mike Migurski wrote: > You may find it easier to include, in the e-mail, a > uniquely-generated, limited-time URL that the person can visit to > verify that they have received the e-mail. This will remove the burden > of having to set up a system that responds to e-mail com

[PHP] Calculating if number is multiple of another number

2003-07-02 Thread jwulff
How would I calculate if a $number is a multiple of $spacer? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Need Older version of file upload script

2003-07-02 Thread Webmaster
I just developed a php script that will upload files to a secure server for a client. Works great. Problem: When I uploaded the scripts to the secure server...the file upload doesn't work. Come to find out I developed using php v4.3.2 only to find out that the secure server that it will be running

RE: [PHP] Calculating if number is multiple of another number

2003-07-02 Thread Martin Towell
($spacer % $number == 0) Martin -Original Message- From: jwulff [mailto:[EMAIL PROTECTED] Sent: Thursday, 3 July 2003 11:04 AM To: [EMAIL PROTECTED] Subject: [PHP] Calculating if number is multiple of another number How would I calculate if a $number is a multiple of $spacer? -- PHP G

Re: [PHP] Calculating if number is multiple of another number

2003-07-02 Thread Jason Sheets
Using the modulus operator it returns the remainder of a division operator. For example to find out if a number is divisible by 3 do this: if (($number % 3) == 0) { print $number . ' is divisible by 3'; } else { print $number . ' is not divisible by 3'; } If the remainder of dividing the ta

Re: [PHP] Calculating if number is multiple of another number

2003-07-02 Thread Leif K-Brooks
jwulff wrote: How would I calculate if a $number is a multiple of $spacer? if(int($number / $spacer) == ($number / $spacer)){ echo "It's a multiple!"; }else{ echo "Nope!"; } -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosec

[PHP] Problem with PHP and Oracle

2003-07-02 Thread Anup Vijayaraghavan
Hello I am having problems connecting to Oracle 9.2.0.3.0 from php. It connects fine but crashes after 3 or four attempts. My setup is Redhat Advanced Server 2.1 uname -a Linux .xx.xx 2.4.20 #2 SMP Thu Jun 12 08:35:45 NZST 2003 i686 unknown Server version: Apache/2.0.46 Server built: Jul

[PHP] proc_open() and SSH

2003-07-02 Thread josepablo
Hey folks, Iam trying to call the ssh program and have it connect to a remote host and authenticate, however I havent been able to do it. I used this script but all i get when I run it on port 80 is: command returned 255 At the error log i specified i get: Permission denied, please try agai

Re: [PHP] Problem with PHP installation Under windows 2003

2003-07-02 Thread Philip Olson
On Wed, 2 Jul 2003, Dennis Verdaasdonk wrote: > > Hi there > i was bussy with installing the PHP package under windows 2003 > when i do it with the CGI bin i ill always get error 404 and ca not find > that problem > when i use the ASPI way it's can not be loaded.. any idea please tell > me. Ther

[PHP] mod_rewrite is acting up!!

2003-07-02 Thread John
ok, i had mod_rewrite working perfect: whenever some one entered www.url.com/browse/Pop/10 it would go to www.url.com/browse.php?category=Pop&id=10 Then I created an actual browse folder in the site root with index.php as the only file in that folder to take over the position of the browse.php fil

Re: [PHP] online file management

2003-07-02 Thread Paul Chvostek
On Wed, Jul 02, 2003 at 05:26:26PM -0500, Dean E. Weimer wrote: > > > > The ideal candidate would authenticate based on a MySQL table and would > > be able to handle multiple users with unique base directories. I'd > > rather not use an PHP-based FTP client, but I'm open to that if nothing > > els

[PHP] mail() with OSX

2003-07-02 Thread Justin French
Hi all, I've googled, but to no avail... I have apache 1.3.x, php 4.3.2 and mysql on my new g4 under OSX 10.2.6, and most stuff seems to be working fine, but i just did a test using mail() and it didn't work out... no error in the apache log, no error on the screen. Obviously PHP can't find se

[PHP] Re: Problem with PHP and Oracle

2003-07-02 Thread Lang Sharpe
Hi Anup I had to change ext/oci8/config.m4 Remove the line highlighted in red on this page. http://cvs.php.net/diff.php/php-src/ext/oci8/config.m4?login=2&r1=1.37.2.6&r2=1.37.2.7&ty=h Then do configure/make/make install again. Lang -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] Odd CGI error - help! Deadline looms...

2003-07-02 Thread Brady
Has anyone ever seen the likes of this? I get the following lines when I use a custom compiled CGI app to run my PHP scripts. I followed the directions at http://www.kellybreed.com/phpinstall.txt and had success on one site. This different site, same server, generates the error. Warnin

Re: [PHP] mail() with OSX

2003-07-02 Thread Michael Mulligan
It has sendmail installed but you need to look into activating it as it is not enabled by default (I don't know how off the bat, but google should help) Hope this helps On 07/02/03 11:07 PM, "Justin French" <[EMAIL PROTECTED]> wrote: > Hi all, > > I've googled, but to no avail... I have apache

[PHP] mail + regex + somethoughts

2003-07-02 Thread Shivanischal A
Hi friends, I was just wondering about this. Whenver we reply to the posts here, we just click on the reply button and fire off our messages. This results in long messages (fresh content + earlier content) within a single mail. Now, the question is how would we use the regex functions to remove th

Re: [PHP] mail() with OSX

2003-07-02 Thread Justin French
Excellent -- found it straight away! http://www.roadstead.com/weblog/Tutorials/SMSource.html Thx Justin On Thursday, July 3, 2003, at 02:12 PM, Michael Mulligan wrote: It has sendmail installed but you need to look into activating it as it is not enabled by default (I don't know how off the ba

[PHP] PHP5 classes

2003-07-02 Thread Martin Towell
I've just been playing around with PHP5 beta for windows to get used to the new way it does classes and constuctors, etc, and have found the following... I have a base class which has both a constructor and a destructor. I have a second class that extends the first. I then instantiate the second c

[PHP] PHP 5 and Zend Optimizer/Accelator

2003-07-02 Thread [-^-!-%-
Are there any plans to bundle PHP 5 with Zend Optimizer/Accelerator? (whichever you need to view Zend Encoded files) Will it have any support for encrypted files (like those created by Zend Encoder) ? =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productiv

Re: [PHP] print html code

2003-07-02 Thread John Nichel
Jim Lucas wrote: well, tell me. What browser follows the standards 100% ?? Yeah...that's the attitude...if none of the existing browsers follow standards, then it must be okay for us to break them too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] PHP 5 and Zend Optimizer/Accelator

2003-07-02 Thread Rasmus Lerdorf
Nope, no plans. On Wed, 2 Jul 2003, [-^-!-%- wrote: > > > Are there any plans to bundle PHP 5 with Zend Optimizer/Accelerator? > (whichever you need to view Zend Encoded files) > > Will it have any support for encrypted files (like those created by Zend > Encoder) ? > > > > =P e p i e D e s i g

[PHP] ASSISTANCE NEEDED

2003-07-02 Thread MARIAM ABACHA
Hello, I am sorry for the embarrassment this letter might cause you as we have not had any correspondence before this letter. I got your address through my nephew with Nigerian Military Chamber of Commerce industry and Mining during my research for a reliable and trustworthy partner who l can

Re: [PHP] Session vs Cookie Issues

2003-07-02 Thread Joel Rees
> based on what you're saying, I gather that if I were to choose to > use cookies, and if cookies were rejected by the user, PHP will default to > using sessions? It isn't cookies vs. sessions. It's { sessions by cookie vs. sessions by URL } vs building your own with either cookies or URL.

[PHP] Weird Problem

2003-07-02 Thread The Head Sage
Hey, I've got a script which disables a banner image when it's time is up, the script also sends an e-mail to both me and the banners owner when the time is up I've got a problem which is really weird.. Everything else works, but when the query is sent to the MySQL database, nothing happens...

[PHP] web-based mail client (problem with setting FLAGS using POP3)

2003-07-02 Thread szparag
hi.   i have a problem and i would be very thankfulif you'll help me.i`m writing small web-based mail client.and i haveproblem with setting flags on the messages.everything is ok when i`m logged on the server butwhen i`m trying to check flags with another connectionflags are empty.do you know

[PHP] Optional form variables (IDEA?)

2003-07-02 Thread Miranda, Joel Louie M
Hello, im doing a form that when you pass it will generate a preview report. My problem is some fields are optional the optional fields are 5. And for those fields I need to make it fit when it generate what idea or codes can you suggest? Ex, a businesscard preview form. When it generates it will

Re: [PHP] Session vs Cookie Issues

2003-07-02 Thread Joel Rees
> If anyone can help shed any light on the sort of instability I'm seeing, > that would really help. Apache child processes die right and left, with > segfaults and bus errors. Hardware? Overly agressive optimization switches when you compiled? Using pre-release software somewhere in the chain? -

[PHP] Session Problem

2003-07-02 Thread Michael A Smith
Okay, I'm starting session with session_name("PRATTCMS_ADMIN"); session_save_path($sess_path); session_start(); This works on one server I have, compiled the almost exact same (except without png and jpeg support for gd). They both use trans_sid. What's going on here? In the session path, the s

<    1   2