Re: [PHP] BreadCrumb Class

2003-01-03 Thread Jason Wong
On Friday 03 January 2003 11:50, Michael J. Pawlowsky wrote: > I was wondering if anyone had a good BreadCrumb class. > If not I will write my own, but thought surely there must be many out > there. But quick searches only brought up "Poof" which is more than I want. You have started a new thread

Re: [PHP] 2 servers for mail implementation

2003-01-03 Thread Rick Widmer
At 07:11 PM 1/2/03 -0800, Roger Thomas wrote: dear all, i have 2 servers that were *given* to me to setup and implement webmail solution for our client. i have done some groundwork in terms of the backend applications that are needed to do this. This doesn't have much to do with PHP. In fact i

Re: [PHP] returning data from a function in a class

2003-01-03 Thread Jason Wong
On Friday 03 January 2003 14:40, Ken Nagorski wrote: > Hi there, > > I am totally new at classes and oop... I have never done any object > oriented stuff before so I don't know if my question is a php one, a > browser issue or an oop one but here goes. I am writing a class that deals > with member

[PHP] Limit to size of autoindex in MySQL/PHPMyAdmin?

2003-01-03 Thread Jim MacCormaic
Hi all. I'm new here, currently implementing my first PHP/MySQL website on an iMac running Mac OS X v.10.2.3. All has been going really well until just now while I was adding records to the MySQL database. I have a table which includes an auto-incremented field which is set as the Primary key.

Re: [PHP] Re: PHP memory usage

2003-01-03 Thread Rick Widmer
At 01:25 AM 1/3/03 -0200, Fernando Serboncini wrote: function a(myclass c) { return c; } would create another copy of "c" in memory. Things get a bit larger when you go with linked-list like structures in classes, where you have to take really good care to don't duplicate data. If you're no

Re: [PHP] Limit to size of autoindex in MySQL/PHPMyAdmin?

2003-01-03 Thread Jasper Bryant-Greene
Jim MacCormaic wrote: Hi all. I'm new here, currently implementing my first PHP/MySQL website on an iMac running Mac OS X v.10.2.3. All has been going really well until just now while I was adding records to the MySQL database. I have a table which includes an auto-incremented field which is

[PHP] Split that keeps delimiter

2003-01-03 Thread Simon Dedeyne
Is there a way to split a string without using something like this: $keywords=preg_split("/[?!.]/", "this ! Is a possible test",PREG_SPLIT_DELIM_CAPTURE); My php version doesn't seem to support the flags, and I want to know which delimiter the string was splitted by. Kind regards, Simon De Deyne

[PHP] Re: Code contents of a function

2003-01-03 Thread liljim
Output buffering functions sound like something you could use: \n"; } function DoStuff() { echo "Something\n"; echo "Something else\n"; OtherStuff(); } // Start output buffering. ob_start(); // Grab the content. DoStuff(); $content = ob_get_contents(); // Finish up. ob_end_cle

[PHP] ImageCreateFromPNG

2003-01-03 Thread Roy van Arem
ImageCreateFromPNG does not work ... I use php4.3 on win2000 and ImageCreateFromPNG give an error... undefined function... how is that possible... can someone help me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mass-mailing method

2003-01-03 Thread Paul Roberts
some times more than 100 bcc's are treated spam and dropped by the server, try it with a limit in the query. Best Wishes & Happy New Year Paul Roberts [EMAIL PROTECTED] - Original Message - From: "Cesar Aracena" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

RE: [PHP] mktime() and the format of the day number entry

2003-01-03 Thread Ford, Mike [LSS]
> -Original Message- > From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] > Sent: 02 January 2003 23:29 > > The month behaves the same: both '08' and '09' are treated as zero by > mktime(). A leading 0 on a number denotes it as octal. 08 and 09 are not valid octal numbers. PHP is interpreti

[PHP] Re: ImageCreateFromPNG

2003-01-03 Thread Leon Mergen
You haven't compiled PHP with png support. "Roy Van Arem" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ImageCreateFromPNG does not work ... > I use php4.3 on win2000 and ImageCreateFromPNG give an error... > undefined function... how is that possible... can

Re: [PHP] Code contents of a function

2003-01-03 Thread Khalid El-Kary
although i never needed to do such a thing, but you can open the PHP file with the file system functions fopen,fread,fgets ... and work with it using string functions strpos(),substr() ... File system functions: http://www.php.net/manual/en/ref.filesystem.php String functions: http://www.php.net

Re: [PHP] Limit to size of autoindex in MySQL/PHPMyAdmin?

2003-01-03 Thread Leif K-Brooks
The limit to tinyint is 255... use int. Jim MacCormaic wrote: Hi all. I'm new here, currently implementing my first PHP/MySQL website on an iMac running Mac OS X v.10.2.3. All has been going really well until just now while I was adding records to the MySQL database. I have a table which incl

[PHP] Re: email/time question

2003-01-03 Thread Tularis
Since PHP is a languaged that work with user-activation, it would only be possible with an infinitive loop, and a constant time check. PHP needs some user interaction before it can start processing. That's the entire basis. As such, it IS techinally possible to do what you said, but is also som

[PHP] include/require vs performance

2003-01-03 Thread Radek Zajkowski
i am designing a small app that obviuosly works best when I have a lot of global files with functions, which cut down on editing. I will likely have a main page that will contain modules and also load all of the required includes like config etc. in total some 10 files will be reqested. Is the

Re: [PHP] include/require vs performance

2003-01-03 Thread Rasmus Lerdorf
> Is there, was there ever issue around including a lot files via > include(). I am running things on a local server so it's hard to gauge. I don't understand that comment. includes/requires are always (well nearly anyway) local to the server regardless of where the request is coming from. So if

Re: [PHP] 2 servers for mail implementation

2003-01-03 Thread Joe Mck
Hi, > At 07:11 PM 1/2/03 -0800, Roger Thomas wrote: > >dear all, > >i have 2 servers that were *given* to me to setup and implement webmail > >solution for our client. i have done some groundwork in terms of the backend > >applications that are needed to do this. > > > This doesn't have

[PHP] Re: include/require vs performance

2003-01-03 Thread Leon Mergen
"Radek Zajkowski" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED]... > Is there, was there ever issue around including a lot files via > include(). I am running things on a local server so it's hard to gauge. I think that the only source that could cause any problems with too many f

[PHP] newbie q: how to count words in a file

2003-01-03 Thread Tauntz
Hi ! I'm new to php and I have not found a solution for my problem (dumb me) ok.. here we go... I have a file.. it's content is: hello, ello, llo and so on and so on ok.. and now I want to know how many "hello" words are in that file.. how can I arrange it ?:) Thanks Tauntz -- PHP Genera

Re: [PHP] include/require vs performance

2003-01-03 Thread Michael J. Pawlowsky
These files are parsed by the interpreter... They are not sent to the client, so I you are thinking bandwidth I dont see how it would affect it. Unless they all output a bunch of data. Of course there will be some overhead for PHP to interpret all that code. Mike *** REPLY SEPARATOR

Re: [PHP] help with form adding to database!!

2003-01-03 Thread Marek Kilimajer
|$sql = "INSERT into $table_name (f_name, l_name, username, password) Values ('$f_name', '$l_name', '$username', '$password')";| notice the single quotes Karl James wrote: Hey guys, I cant figure out what’s wrong with this code. Im sure its syntax can some one take a look at it and Help me ou

Re: [PHP] Re: include/require vs performance

2003-01-03 Thread Stephan Seidt
I guess that PHP will close file 1 before it opens file 2 and so on.. For example : include 'foo'; include 'bar'; When bar is being opened foo is already closed. Leon Mergen wrote: "Radek Zajkowski" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED]... Is there, was there ever issu

[PHP] How to attach a file to mail()

2003-01-03 Thread Davíð Örn Jóhannsson
mail($to, $subject, $body, "From: $email"); how do I insert an attachment into this mail function, It would be submitted with file field and would be called attachment. Regards, David

Re: [PHP] Re: include/require vs performance

2003-01-03 Thread Leon Mergen
"Stephan Seidt" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I guess that PHP will close file 1 before it opens > file 2 and so on.. For example : > > include 'foo'; > include 'bar'; > > When bar is being opened foo is already closed. Hmmm, i think the par

Re: [PHP] include/require vs performance

2003-01-03 Thread Marek Kilimajer
He likely ment that his local server is simply fast enough that any speed defference is unnoticeable, but on a shared host this might make some difference. Use include/require as you are more comfortable with it. Rasmus Lerdorf wrote: Is there, was there ever issue around including a lot files v

Re: [PHP] way to insert timer / pause?

2003-01-03 Thread Gerald Timothy Quimpo
On Friday 03 January 2003 10:56 am, Jeff Bluemel wrote: > if there a command, or a way I can put say a 5 second, or a 10 second pause > which will make it so it will output x amount of html, and then continue? > or if I can pause it will it not display any of the html until the entire > script has

[PHP] Possible bug with PHP v4.1.1 and bits?

2003-01-03 Thread Daevid Vincent
I'm not even sure how to classify this... Given: Where $Enabled is either a 0 or 1 as read from a database ( TINYINT(1) ); And echo "action = ".$_POST[action].""; if ($_POST[action] == "1" || $_POST[action] == "0") echo = "UPDATE Company SET Enabled = ".!(intval($_POST[action]))." WHERE Com

[PHP] PHP-Performance

2003-01-03 Thread Fatih Üstündağ
Do you know any resource about php performance? I wonder that can I use php+apache+oracle for a web site serving to many clients ( such as 10.000 ) at the same time? Fatih Üstündað Yöre Elektronik Yayýmcýlýk A.Þ. 0 212 234 00 90 -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Re: include/require vs performance

2003-01-03 Thread Stephan Seidt
well ok, if it's : main.php : include 'foo'; foo : include 'bar'; bar : include 'whatever'; ... there will be lots of used file descriptors at once Leon Mergen wrote: "Stephan Seidt" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I guess that PHP will c

Re: [PHP] newbie q: how to count words in a file

2003-01-03 Thread Khalid El-Kary
Use file system functions to get the contents of the file in a string, then us substr_count() on that string. Filesystem: http://www.php.net/manual/en/ref.filesystem.php substr_count: http://www.php.net/manual/en/function.substr-count.php Regrads Khalid Al-kary Hi ! I'm new to php and I have n

Re: [PHP] PHP-Performance

2003-01-03 Thread Khalid El-Kary
Performance related issues depend on too many factors infact, however, PHP is known to be fast in itself (as an apache module), oracle is also known to be fast just like MySQL, but still it depends on what your app will do with the database, and how would you manage both your database and applic

Re: [PHP] PHP-Performance

2003-01-03 Thread Michael J. Pawlowsky
Get in touch with Zend. I bet they have benchmarks with their optimizer engine. http://www.zend.com/ Cheers, Mike *** REPLY SEPARATOR *** On 03/01/2003 at 3:56 PM Fatih Üstündað wrote: >Do you know any resource about php performance? > >I wonder that can I use php+apache+ora

Re: [PHP] newbie q: how to count words in a file

2003-01-03 Thread Tauntz
Thank you.. figured it out now. Tauntz Khalid El-Kary wrote: Use file system functions to get the contents of the file in a string, then us substr_count() on that string. Filesystem: http://www.php.net/manual/en/ref.filesystem.php substr_count: http://www.php.net/manual/en/function.substr-c

[PHP] ImageCreateFromPNG

2003-01-03 Thread Roy van Arem
ImageCreateFromPNG just won't work in php4.3 on windows 2000 . . . .I cannot find any information on that ... can someone help me?? please Roy van Arem [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Possible bug with PHP v4.1.1 and bits?

2003-01-03 Thread Marek Kilimajer
inverting value: $action = ($value==='1' ? '0' : '1' ); Daevid Vincent wrote: I'm not even sure how to classify this... Given: Where $Enabled is either a 0 or 1 as read from a database ( TINYINT(1) ); And echo "action = ".$_POST[action].""; if ($_POST[action] == "1" || $_POST[action] == "0

Re: [PHP] Limit to size of autoindex in MySQL/PHPMyAdmin?

2003-01-03 Thread Jim MacCormaic
On Friday, January 3, 2003, at 08:59 am, Leif K-Brooks wrote: The limit to tinyint is 255... use int. On Friday, January 3, 2003, at 09:02 am, Jasper Bryant-Greene wrote: Change the field type from TINYINT to SMALLINT or MEDIUMINT. UNSIGNED TINYINT only has a range of 0 thru 255. Thanks s

Re: [PHP] ImageCreateFromPNG

2003-01-03 Thread Chris Hewitt
Roy van Arem wrote: ImageCreateFromPNG just won't work in php4.3 on windows 2000 . . . .I cannot find any information on that ... can someone help me?? please Does phpinfo() show that you have png support enabled (in gd section)? I'm working with php 4.1.2 (on linux) so things may differ

[PHP] Parsing a string

2003-01-03 Thread Greg
Hi- I'd like to parse the string returned by popen("uptime", "r");. The string that is returned is: 9:47am up 37 days, 16:24, 1 user, load average: 0.09, 0.02, 0.00 What I'd like is 5 strings...the first contains "37 days, 16:24", the second "1 user", the third "0.09", the fourth "0.02", and the

Re: [PHP] Parsing a string

2003-01-03 Thread Michael J. Pawlowsky
Just use explode() and then dont use what you dont want. Mike *** REPLY SEPARATOR *** On 03/01/2003 at 9:49 AM Greg wrote: >Hi- >I'd like to parse the string returned by popen("uptime", "r");. The string >that is returned is: > >9:47am up 37 days, 16:24, 1 user, load average:

Re: [PHP] signal handler to ignore kill of parent

2003-01-03 Thread Thomas Weber
I am using the pcntl_ fork() from PHP. The problem with exec() is that i need the variables and socket-descriptors from the parent. Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PROTECTED] - Original Message - From: "Michael J. Pawlowsky" <[EMAIL PROTECTED]> To: "PHP-List" <[EMAIL PROTE

Re: [PHP] Parsing a string

2003-01-03 Thread Khalid El-Kary
check explode() ;) http://www.php.net/manual/en/function.explode.php Regrads, Khalid Al-kary Hi- I'd like to parse the string returned by popen("uptime", "r");. The string that is returned is: 9:47am up 37 days, 16:24, 1 user, load average: 0.09, 0.02, 0.00 What I'd like is 5 strings...the

[PHP] Loading Module not in php.ini

2003-01-03 Thread Michael J. Pawlowsky
I doubt that I can do this... but as someone once told me, "There's no such thing as a stupid question". I guess they were never on any mailing lists! :-) So here it goes Is there anyway to load a module without having access to php.ini kind of like a ini_set("extension=mymodule.co"); th

Re: [PHP] Loading Module not in php.ini

2003-01-03 Thread Rasmus Lerdorf
php.net/dl On Fri, 3 Jan 2003, Michael J. Pawlowsky wrote: > > > I doubt that I can do this... but as someone once told me, "There's no such thing >as a stupid question". > I guess they were never on any mailing lists! :-) > > So here it goes > > Is there anyway to load a module without ha

[PHP] File Modification Date/Time

2003-01-03 Thread Christopher J. Crane
I am trying to parse through a directory and get the modification dates of the file. \n"; } closedir($handle); } ?> All the files are coming back with a date of December 31 1969 19:00:00. What am I doing wrong? The next step is I want to check if the file is older than 30 minutes and if

[PHP] Recommend payment processors?

2003-01-03 Thread Chad Day
Just wondering what people are using/recommend out there.. I'm going to be getting a merchant account and let people purchase services through my website on a secure server, all in PHP. What concerns me is this archived post I came across: http://marc.theaimsgroup.com/?l=php-general&m=10216562360

[PHP] [PDF Creation] Insertion of image on a PDF using EzPDF library

2003-01-03 Thread Natacha Salmon
Hi all, Here is my problem. I got a web application, who must build a PDF using datas from a MySQL table and a logo (JPEG format), and send the PDF generated by mail. I manage to build the PDF. Instead of sending it via mail, I tried to open it directly on my browser, IE 6.0. All is ok, I see my

Re: [PHP] ImageCreateFromPNG

2003-01-03 Thread Chris Hewitt
Roy van Arem wrote: In gd section. hm... I always used to use PHP 3. something and that didn't have half the variables I can set in php4.3.. anyway this is phpinfo: http://62.142.245.64/g/gheos.com/test.php No gd section or png mentioned on that page. Fatal error: Call to undefined

Re: [PHP] File Modification Date/Time

2003-01-03 Thread Marek Kilimajer
you must prepend $DirToCheck to $file: filemtime($DirToCheck . $file) Christopher J. Crane wrote: I am trying to parse through a directory and get the modification dates of the file. $DirToCheck = "tempdata/"; if ($handle = opendir($DirToCheck)) { while (false !== ($file = readdir($handl

Re: [PHP] File Modification Date/Time

2003-01-03 Thread Christopher J. Crane
Oh that would make sense. I was think ahead. I thought the file was loaded into an array and I was like "foreach" in the array. So simple, I didn't see it. Thank you! "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > you must prepend $DirToCheck

Re: [PHP] Recommend payment processors?

2003-01-03 Thread Rick Emery
I use PayPal. Does not require a merchant account. PHP payment interface and interaction is easy to implement. Via HTML in your webpage, you pass to PayPal the URL of the PHP script to be executed when a payment is received. - Original Message - From: "Chad Day" <[EMAIL PROTECTED]> To

[PHP] Re: threads (was "Re: [PHP] BreadCrumb Class")

2003-01-03 Thread David T-G
Jason, et al -- ...and then Jason Wong said... % % On Friday 03 January 2003 11:50, Michael J. Pawlowsky wrote: % > I was wondering if anyone had a good BreadCrumb class. ... % % You have started a new thread by taking an existing posting and replying to % it while you changed the subject. I tr

[PHP] Javascript broken!

2003-01-03 Thread Adam Wilson
I am beginning a tidy-up of a very messy site i am now managing. I have started splitting repeated sections into single header and footer files, for inclusion via php. Unfortunately the javascript no longer works, i.e. rollovers etc. Can someone please help me on this? Is this a known problem? -

[PHP] Bit manipulation

2003-01-03 Thread Michael J. Pawlowsky
I can't remember who wanted the bit manipulation stuff... But I was looking for something in my bookmarks when I saw this simple little class. I use bits to test for user permissions for specific function. as in if ((int)$user.permissions & (int)$permbit) {} I dont use that class but thought i

Re: [PHP] Javascript broken!

2003-01-03 Thread John Nichel
You may want to try a JavaScript mailing list. Adam Wilson wrote: I am beginning a tidy-up of a very messy site i am now managing. I have started splitting repeated sections into single header and footer files, for inclusion via php. Unfortunately the javascript no longer works, i.e. rollovers et

[PHP] ImageCreateFromPNG

2003-01-03 Thread Michael Weiner
Does someone have a script of php function or page that has this code working that i can review? I am wanting to create a webpage that will let a user enter in an image name (i.e. a png or whatever) and have php create an image from that... Thanks in advance Michael Weiner -- PHP General Mailin

Re: [PHP] Re: threads (was "Re: [PHP] BreadCrumb Class")

2003-01-03 Thread Michael J. Pawlowsky
Unfortunately Calypso threads the messages by date etc. Not Mail IDs. It has a "Show references" command that creates threads but I don't keep these mails on my system for more than a day unless there's some really good info in it. So it had no effect for me. It's a great mailer if you have many

[PHP] installation problems (php 4.2.3/mcrypt/curl)

2003-01-03 Thread Michael Geier
I searched MARC first, but none of the "answers" there seemed to work. Installing: RH 8 Apache 1.3.27 (--enable-module=so) PHP 4.2.3 (--with-apxs --enable-ftp --with-esoob --with-mcrypt --with-curl --with-openssl, etc.) Openssl 0.9.7 Mcrypt 2.5.3 (--disable-posix-th

Re: [PHP] ImageCreateFromPNG

2003-01-03 Thread Michael J. Pawlowsky
I have something that does it but only with gif since I have the old version of GDLib. But everthing is the same except for the output and the opening from a specific file.. It's not exactly what you are looking for but it will get you started I use a db clas for my db calls so dont try and us

[PHP] PHP intereferes with my Javascript

2003-01-03 Thread Adam Wilson
I posted just before, i think i'll try again and re-word... I have split a page up into three sections, header, content and footer. Header and footer are included in content via PHP. Header contains Javascript functions. Content and header both call the javascript functions. When i look at the sou

RE: [PHP] Possible bug with PHP v4.1.1 and bits?

2003-01-03 Thread Ford, Mike [LSS]
-Original Message- From: Daevid Vincent To: [EMAIL PROTECTED] echo "action = ".$_POST[action].""; if ($_POST[action] == "1" || $_POST[action] == "0") echo = "UPDATE Company SET Enabled = ".!(intval($_POST[action]))." WHERE CompanyID = $id"; I cannot figure out how to simply make the 0 a

Re: [PHP] ImageCreateFromPNG

2003-01-03 Thread Michael J. Pawlowsky
Oops... thought you wanted them to upload a file... So here something else... just modify it to your needs It' the code to the URL I sent you... *** REPLY SEPARATOR *** On 03/01/2003 at 11:58 AM Michael Weiner wrote: >Does someone have a script of php func

Re: [PHP] PHP intereferes with my Javascript

2003-01-03 Thread Michael J. Pawlowsky
It's not because of the splitting up... Because the browser does not even know about that. Save both files to disk and do a "diff" on them. I bet there will be a few lines... Mike *** REPLY SEPARATOR *** On 03/01/2003 at 5:21 PM Adam Wilson wrote: >I posted just before,

RE: [PHP] PHP intereferes with my Javascript

2003-01-03 Thread Ford, Mike [LSS]
-Original Message- From: Adam Wilson To: [EMAIL PROTECTED] I have split a page up into three sections, header, content and footer. Header and footer are included in content via PHP. Header contains Javascript functions. Content and header both call the javascript functions. When i look at

Re: [PHP] ImageCreateFromPNG

2003-01-03 Thread R'twick Niceorgaw
I have something that I use to create simple buttons. I use the command line interface version of php to create the buttons offline. However, the function can also be used on an web application easily. I am creating the image with fixed height and width, you can change it by using $i_width and $i_h

Re: [PHP] PHP intereferes with my Javascript

2003-01-03 Thread Khalid El-Kary
two problemes here, off-topic, and i didn't see the code to figure out the error but maybe you forgot to remove the "..." parts from each include except the header? regards, Khalid Al-Kary I posted just before, i think i'll try again and re-word... I have split a page up into three sections,

Re: [PHP] PHP intereferes with my Javascript

2003-01-03 Thread Steve Keller
At 1/3/2003 05:21 PM, you wrote: I have split a page up into three sections, header, content and footer. Header and footer are included in content via PHP. Header contains Javascript functions. Content and header both call the javascript functions. When i look at the source generated it looks exa

Re: [PHP] Baffling output

2003-01-03 Thread Steve Keller
At 1/3/2003 12:25 AM, Lightfirst wrote: Can someone explain to me why the loop that counts to 99 appears before the 5 by 5 grid in the following php code? Yes. ## else { ## echo ""; ## echo ""; ## echo "Hello" ; $i++; ## } //for else You start the tags, but whenever your conditional echoes

RE: [PHP] Recommend payment processors?

2003-01-03 Thread Chad Day
Paypal is not an option for reasons I won't begin to get into. I'm sure someone is using something solid out there .. -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, January 03, 2003 11:36 AM To: php general Subject: Re: [PHP] Recommend payment processors? I

[PHP] PEAR extension (mailparse) not working

2003-01-03 Thread Jeff Schwartz
I've just upgraded to PHP 4.3.0 and am unable to get the PEAR extension mailparse to work. I've installed mailparse via PEAR but PHP doesn't seem to see it. It doesn't show up in phpinfo(). What do I need to do to activate it? Thanks, Jeff - Do you Yahoo!

[PHP] Session Question

2003-01-03 Thread ed
Does php use cookies for sessions even if you don't explicitly use cookie functions to save session data server side? TIA, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Modification Date/Time

2003-01-03 Thread Christopher J. Crane
Doyou know how to compare time. I would like to get the difference in time from now to when the file was last accessed. I was thinking something like this: \n"; $TimeNow = time(); if ($handle = opendir($DirToCheck)) { while (false !== ($file = readdir($handle))) { $FileTimeUnix = fileatime($

Re[2]: [PHP] Possible bug with PHP v4.1.1 and bits?

2003-01-03 Thread Tom Rogers
Hi, Saturday, January 4, 2003, 3:23:37 AM, you wrote: FML> -Original Message- FML> From: Daevid Vincent FML> To: [EMAIL PROTECTED] FML> echo "action = ".$_POST[action].""; FML> if ($_POST[action] == "1" || $_POST[action] == "0") FML> echo = "UPDATE Company SET Enabled = ".!(intval($_POS

RE: [PHP] Baffling output

2003-01-03 Thread Ford, Mike [LSS]
-Original Message- From: Steve Keller To: [EMAIL PROTECTED] At 1/3/2003 12:25 AM, Lightfirst wrote: Can someone explain to me why the loop that counts to 99 appears before the 5 by 5 grid in the following php code? Yes. ## else { ## echo ""; ## echo ""; ## echo "Hello" ;

Re: [PHP] Session Question

2003-01-03 Thread Kevin Stone
In most cases, Yes. Calling session_start() for the first time sets a cookie on the client's computer containing the session id. At the same time the function creates a matching session file on the server. You register whatever variables you want to this file so that when you call session_start

RE: [PHP] Session Question

2003-01-03 Thread Ford, Mike [LSS]
-Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Does php use cookies for sessions even if you don't explicitly use cookie functions to save session data server side? -- That question doesn't even make sense to me -- cookie functions can't save dat

Re: [PHP] Baffling output

2003-01-03 Thread Chris Shiflett
--- Steve Keller <[EMAIL PROTECTED]> wrote: > Here's a good tip someone gave me when I first started > learning PHP: when you're dealing with HTML, it's a good > idea to use \n at the end of your echoed lines and \t's > at the beginnings to create staggered indentations, > this makes it a little ea

RE: [PHP] Session Question

2003-01-03 Thread ed
Sorry I didn't make myself more clear. I only want to use server side sessions. I don't want to have to rely on a client having cookies enabled in their browser. So far having trans_sid is just doing the trick. I can save values into sessions server side and not explicitly create a client side co

RE: [PHP] Session Question

2003-01-03 Thread Michael J. Pawlowsky
I use both... and the way I see PHP handling it is like this... First call in it will add the SESSID to the hrefs. Next call (page load) if it finds the cookie it will not append SESSID to URL. However if it doesn't it will. There are a few instance were I need to get the SESSION ID and append

[PHP] Variables that persist through reload?

2003-01-03 Thread David Chamberlin
Hey, I'm somewhat new to PHP and I'm doing a lot of forms stuff. Looking at some of the examples at: http://www.linuxguruz.org/z.php?id=33 The variables seem to persist through a reload. For example, the first demo has: if (!isset($pick)) { echo "Fill out and submit the form below.";

Re: [PHP] Variables that persist through reload?

2003-01-03 Thread Joseph W. Goff
Your local version does not have register_globals turned on in php.ini. You can either set the value = on or access posted values by using $_POST or $HTTP_POST_VARS depending on your version of php. - Original Message - From: "David Chamberlin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Se

Re: [PHP] Variables that persist through reload?

2003-01-03 Thread Kevin Stone
That's just the browser's cache, nothing to do with PHP. Not all browsers will cache succesfully. If you want to guarentee that variables will be stored for later retrieval (or for repopulating a form) then you need to use sessions or store the content of the variables in a database. -Kevin --

Re: [PHP] Variables that persist through reload?

2003-01-03 Thread Kevin Stone
Woops.. sorry I missed the crux of your post. I didn't read all the way down. :) -Kevin - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "David Chamberlin" <[EMAIL PROTECTED]> Sent: Friday, January 03, 2003 1:18 PM Subject: Re: [PHP] Variables that pe

Re: [PHP] Variables that persist through reload?

2003-01-03 Thread David Chamberlin
Ahhh.that explains it. Just read up on register_globals. I understand now. To make the script work with register_globals off I can just do: $pick = $_GET['pick']; And then the rest works. Thanks! -Dave Joseph W. Goff wrote: Your local version does not have register_globals turned on in

[PHP] One more form question

2003-01-03 Thread David Chamberlin
OK, last one was answered quickly and successfully (thank you!), so here's another one. Is there an easy way to set something in a select list to be selected? Right now I'm doing a real brute-force method. e.g., echo ""; $choices = array( 'pub' => 'On Public Page', 'members' => 'Only on

Re: [PHP] One more form question

2003-01-03 Thread Kevin Stone
- Original Message - From: "David Chamberlin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 03, 2003 1:27 PM Subject: [PHP] One more form question > OK, last one was answered quickly and successfully (thank you!), so > here's another one. > > Is there an easy way to se

[PHP] Excel to MySQL

2003-01-03 Thread Joe LoMoglio
Does anyone know of a FREE utility that will export data from an MS Excel file and import it to MySQL. I have found a bunch of nice utilities, but none of them are FREE. I'm in a bind and have to get over 2000 rows imported to my database by morning and don't have to order one of the other solu

[PHP] Hello and help

2003-01-03 Thread Todd Barr
I am a PHP newbie, and I am having difficulty in getting my records to display here is my code \n"); print ("\n"); print ("\n"); print ("Calender \n"); print ("\n"); print("$result[meeting_name]\n")or die ("you suck"); mysql_close ($Link); ?> any help?

Re: [PHP] Excel to MySQL

2003-01-03 Thread Richard Baskett
You could export, or save as a tab delimited text file, then go ahead and use phpMyAdmin or a custom script to pull all that data into the database. It really shouldn¹t be much of a problem coming from Excel. Cheers! Rick "Finish each day and be done with it. You have done what you could; some b

Re: [PHP] Excel to MySQL

2003-01-03 Thread Michael J. Pawlowsky
I think BiffWriter might do it... By why not simply output a comma delimited files from excel and import it in with a small php script. Mike *** REPLY SEPARATOR *** On 03/01/2003 at 2:20 PM Joe LoMoglio wrote: >Does anyone know of a FREE utility that will export data from a

Re: [PHP] Hello and help

2003-01-03 Thread Richard Baskett
Use this instead: \n"); print ("\n"); print ("\n"); print ("Calender \n"); print ("\n"); print("{$result['meeting_name']}\n") or die ("you suck"); mysql_close ($Link); ?> So basically make sure you escape your double quotes within your print statements, plus yo

Re: [PHP] Hello and help

2003-01-03 Thread Joseph W. Goff
You are on the right track, but missed one major thing. Anytime you want to retrieve information from a database result set you have to follow 3 basic steps. 1) Connect to the database *you got that one 2) Execute a query *you got that one 3) Retrieve the resultset ***missed this one See http://ww

[PHP] Newbie Help

2003-01-03 Thread Erich Kolb
Does anyone have an example of how to download newsgroup headers from a NNTP server and insert them into a MySQL DB? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP post size question

2003-01-03 Thread David Jeffress
Hi, I'm using PHP to implement a contract database for a midrange hospital. I'm having trouble configuring (I assume) the post_max_size and upload_max_filesize to allow for pdf's to be uploaded. Presently, these are set to 1008M and 1006M respectively, and a file of size 620K still gives me a "4

Re: [PHP] include/require vs performance

2003-01-03 Thread R . Z .
Sorry if this was not 100% clear. In a nutshell the app I'm making will be available for poeple to use. My feeling is that there will be users using shared servers, which under a stress tend to suck. The only thing in this one I'm doing that;s new to me is having some 20 includes loaded as I ne

Re: [PHP] PHP post size question

2003-01-03 Thread Michael J. Pawlowsky
Did you also set the file size in the HTML input tag? Also take a look at http://www.phpbuilder.com/columns/florian19991014.php3?page=4 Mike *** REPLY SEPARATOR *** On 03/01/2003 at 4:15 PM David Jeffress wrote: >Hi, > >I'm using PHP to implement a contract database for a

[PHP] Create Online Test Program

2003-01-03 Thread Devin Atencio
Dear PHP Users, I am in the process of trying to create an Online Program that will give questions and possible answers then score the test. I was wondering if anyone has done this type of thing already and might be able to give me some pointers on what the best method of doing this might be? De

[PHP] error

2003-01-03 Thread Ysrael Guzmán
what this error??? PHP has encountered an Access Violation at 012B7DE7 Ysrael Guzmán Meza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Create Online Test Program

2003-01-03 Thread Michael J. Pawlowsky
I've done a few... It all depends on how many question and how many answers. How often will they change. How many will you have. Mike *** REPLY SEPARATOR *** On 03/01/2003 at 2:47 PM Devin Atencio wrote: >Dear PHP Users, > >I am in the process of trying to create an Onlin

[PHP] please help me, y have a error

2003-01-03 Thread Ysrael Guzmán
this is the message of the ERROR: PHP has encountered an Access Violation at 012B7DE7 what this Ysrael Guzmán Meza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >