Re: [PHP] PHP displaying images

2005-01-28 Thread Jason Wong
On Saturday 29 January 2005 13:42, Ian Johnson wrote: > My php is configured to write error messages to the http error_log and > not to display errors. OK. > In this case the error is displayed and not logged. If you're referring to this ... > > The image "http://localhost/gdtst2.php"; cannot

Re: [PHP] Help with references? again

2005-01-28 Thread Jon
OK, THIS one doesn't throw a syntax error ;) class dir { var $name; var $subdirs; var $files; var $num; var $prio; function dir($name,$num,$prio) { $this->name = $name; $this->num = $num; $this->prio = $prio; $this->files = array(); $this->subdirs = array(); }

[PHP] Trying to compile PECL fileinfo on Windows

2005-01-28 Thread Chris
Hi, Are there any places that might have instructions on compiling PECL extensions on Windows? I tried going the pear install route, but fileinfo is not considered stable yet. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP displaying images

2005-01-28 Thread Ian Johnson
Jason Wong wrote: On Saturday 29 January 2005 10:13, Ian Johnson wrote: There is no error message in the ../httpd/error_log file. That looks like the Apache error log file, which is most likely not what you want to be looking at. You want the PHP error log, see settings in php.ini, and check ph

Re: [PHP] Help with references?

2005-01-28 Thread Jon
Here is one that does not throw an error but does not produce the desired results class dir { var $name; var $subdirs; var $files; var $num; var $prio; function dir($name,$num,$prio) { $this->name = $name; $this->num = $num; $this->prio = $prio; $this->files = array();

Re: [PHP] PHP displaying images

2005-01-28 Thread Ian Johnson
This does the same for png as well. No errors are generated when header () is commented out or other content-types are specified Ian Johnson On Fri, 2005-01-28 at 20:45 -0800, Richard Lynch wrote: > Ian Johnson wrote: > > I am trying to use GD to create and manipulate images but the statement:

Re: [PHP] PHP displaying images

2005-01-28 Thread Jason Wong
On Saturday 29 January 2005 10:13, Ian Johnson wrote: > There is no error message in the ../httpd/error_log file. That looks like the Apache error log file, which is most likely not what you want to be looking at. You want the PHP error log, see settings in php.ini, and check phpinfo(). -- Ja

[PHP] Problems displaying images with PHP-GD

2005-01-28 Thread Ian Johnson
Hello I am trying to use GD to create and manipulate images but the statement: header ("Content-type: image/jpg"); generates the error message: The image "http://localhost/gdtst2.php"; cannot be displayed, because it contains errors. There is no error message in the ../httpd/error

Re: [PHP] PHP displaying images

2005-01-28 Thread Richard Lynch
Ian Johnson wrote: > I am trying to use GD to create and manipulate images but the statement: > > header ("Content-type: image/jpg"); > > generates the error message: > > The image "http://localhost/gdtst2.php"; cannot be displayed, > because > it contains errors. "contains

Re: [PHP] Creating a webpage from an HTML form via PHP

2005-01-28 Thread Richard Lynch
Mike Milligan wrote: > Richard - > > I tried something like that in the past. Just for S&giggles I tried it > again. > Still doesn't work. It does go through the fwrite() process, but it > doesn't > write the $joined contents, or $joined is being reset to NULL after the > first > submit button is

[PHP] PHP displaying images

2005-01-28 Thread Ian Johnson
Hello I am trying to use GD to create and manipulate images but the statement: header ("Content-type: image/jpg"); generates the error message: The image "http://localhost/gdtst2.php"; cannot be displayed, because it contains errors. There is no error message in the ../httpd/error_log

Re: [PHP] Help with references?

2005-01-28 Thread Jochem Maas
Jon wrote: This script only outputs the top level. i.e. that script has syntax errors. ... $arFiles = array( array['file1']( array( ['path] => array( [0] => 'folder1', [1] => 'subfolder1' [2] => 'file1.ext' ), ['length'] => 5464, ['size'] => 8765 ),

[PHP] Help with references?

2005-01-28 Thread Jon
This script only outputs the top level. i.e. -/ | - folder1 | - folder2 | - folder3 it should be - / | - folder1 | | | - subdir1 | | | - file1.ext | - folder2 | | | - subdir2 | | | - file2.ext | - folder3 | - subdir3 | - file3.ext I reall

[PHP] Re: Best way to execute actions within a class

2005-01-28 Thread Matthew Weier O'Phinney
* [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > I have been building a lightweight PHP4 based, hopefully PHP5 OO structure > where each page or php file contains its own class which is then executed > using the constructor like so > > new SomeProject_SomeSubProject(); > > > within the subclasses contruc

[PHP] Re: Regex help

2005-01-28 Thread Stian Berger
On Fri, 28 Jan 2005 14:59:29 -0700, <[EMAIL PROTECTED]> wrote: OK, this is off-topic like every other "regex help" post, but I know some of you enjoy these puzzles :) I need a validation regex that will "pass" a string. The string can be no longer than some maximum length, and it can contain any ch

[PHP] Re: PHP5 stable enough for webapps ?

2005-01-28 Thread Matthew Weier O'Phinney
* [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > I am in the midst of getting work to implement PHP5 onto a new server for a > web based app I am doing using PEAR's DB_DataObject plus some other fancy > OO. To give them the piece of mind I would like to know if its stable enough > to run for an intranet

Re: [PHP] Class declaration, constants and array

2005-01-28 Thread Bret Hughes
On Fri, 2005-01-28 at 14:50, Marek wrote: > php5 class { > > const _SOMETHING_ = 'test'; > > private $abc=_SOMETHING_; // fails, well actually anything fails > similar to this. > var $test=$test2;// also fails > > So since I can not use dynamic var assignment

[PHP] Re: mail problem at interland

2005-01-28 Thread Manuel Lemos
Hello, on 01/28/2005 12:09 AM David Edwards said the following: I have a fairly simple script written that uses the mail() function on a client site hosted at Interland. I have used a similar script quite a few times before with no problem. However although the script generates no errors, no ema

Re: [PHP] __toString() Magic Method (Was: SPL DirectoryIterator)

2005-01-28 Thread Jochem Maas
Chris wrote: Heh, I didn't realize, unitl it was too late, that I mislabeled my subject, I've fixed it. Jochem Maas wrote: iMHO its pretty much the last one, but I don't see the problem with what you have written, ok its a little longer, but you don't have to know that the magic (see below) occur

Re: [PHP] Class declaration, constants and array

2005-01-28 Thread Jochem Maas
Matthew Fonda wrote: t'isnt good OOP practice to do what you want to do in the first place Im not too hot on 'good practice' - if I understand the code and its neatly laid out then Im happy... but there is no point setting this value here if the value is to be used in an instantiated object (which

[PHP] __toString() Magic Method (Was: SPL DirectoryIterator)

2005-01-28 Thread Chris
Heh, I didn't realize, unitl it was too late, that I mislabeled my subject, I've fixed it. Jochem Maas wrote: iMHO its pretty much the last one, but I don't see the problem with what you have written, ok its a little longer, but you don't have to know that the magic (see below) occurs in order to

Re: [PHP] Regex help

2005-01-28 Thread kjohnson
[EMAIL PROTECTED] wrote on 01/28/2005 04:13:38 PM: > On 28 Jan 2005 [EMAIL PROTECTED] wrote: > > > Thanks, Tom. I agree, but not an option at this time - other parts of the > > design require this to be a regex. > > It is pretty easy to do with two regexps, one to check the length and > anoth

Re: [PHP] Creating a webpage from an HTML form via PHP

2005-01-28 Thread Mike Milligan
Richard - I tried something like that in the past. Just for S&giggles I tried it again. Still doesn't work. It does go through the fwrite() process, but it doesn't write the $joined contents, or $joined is being reset to NULL after the first submit button is clicked. Any suggestions? Mike --

Re: [PHP] Regex help

2005-01-28 Thread trlists
On 28 Jan 2005 [EMAIL PROTECTED] wrote: > Thanks, Tom. I agree, but not an option at this time - other parts of the > design require this to be a regex. It is pretty easy to do with two regexps, one to check the length and another to see if there is a double &. Would that work? I don't know

Re: [PHP] Creating a webpage from an HTML form via PHP

2005-01-28 Thread Richard Lynch
Mike Milligan wrote: > I'm have a PHP created HTML form that I want a user to be able to enter > data > into, then see it as the PHP/HTML will format it, then post it to an HTML > file. > I've been trying all day to find something similar on your site, but to > no > avail. > > I am really new to P

Re: [PHP] Regex help

2005-01-28 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote on 01/28/2005 03:19:14 PM: > >> On 28 Jan 2005 [EMAIL PROTECTED] wrote: >> >> > I need a validation regex that will "pass" a string. The string can be > no >> > longer than some maximum length, and it can contain any characters > except >> > two co

Re: [PHP] Regex help

2005-01-28 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > OK, this is off-topic like every other "regex help" post, but I know some > of you enjoy these puzzles :) > > I need a validation regex that will "pass" a string. The string can be no > longer than some maximum length, and it can contain any characters except > two consec

Re: [PHP] display imap inline image?

2005-01-28 Thread Richard Lynch
Fredrik Hampus wrote: > I have rewritten the script and now the output appers in a text form > > $testbody = imap_body($mbox, $msgno, "IMAGE/JPEG"); > $testbody = base64_encode($testbody); > // header('Content-Type: image/jpeg'); > echo $testbody; > > > This is a sample of the script how can i

Re: [PHP] Class declaration, constants and array

2005-01-28 Thread Richard Lynch
Marek wrote: > php5 class { > > const _SOMETHING_ = 'test'; > > private $abc=_SOMETHING_; // fails, well actually anything fails > similar to this. > var $test=$test2;// also fails > > So since I can not use dynamic var assignment within the class > declaration,

[PHP] Creating a webpage from an HTML form via PHP

2005-01-28 Thread Mike Milligan
I'm have a PHP created HTML form that I want a user to be able to enter data into, then see it as the PHP/HTML will format it, then post it to an HTML file. I've been trying all day to find something similar on your site, but to no avail. I am really new to PHP so I may not have done things the e

Re: [PHP] Regex help

2005-01-28 Thread kjohnson
[EMAIL PROTECTED] wrote on 01/28/2005 03:19:14 PM: > On 28 Jan 2005 [EMAIL PROTECTED] wrote: > > > I need a validation regex that will "pass" a string. The string can be no > > longer than some maximum length, and it can contain any characters except > > two consecutive ampersands (&) anywher

Re: [PHP] Regex help

2005-01-28 Thread trlists
On 28 Jan 2005 [EMAIL PROTECTED] wrote: > I need a validation regex that will "pass" a string. The string can be no > longer than some maximum length, and it can contain any characters except > two consecutive ampersands (&) anywhere in the string. This is an example of something that is easier

Re: [PHP] Validating input

2005-01-28 Thread Chris Shiflett
--- Ed Curtis <[EMAIL PROTECTED]> wrote: > I've been looking at the docs and found preg_match and > preg_match_all but these functions only seem to match 1 > specific search item. I want to make sure a variable (say > $mlsnumber) contains only numbers and no spaces. What > would I use to accomplish

Re: [PHP] Class declaration, constants and array

2005-01-28 Thread Matthew Fonda
t'isnt good OOP practice to do what you want to do in the first place perhaps use the constructor to do it On Fri, 2005-01-28 at 12:50, Marek wrote: > php5 class { > > const _SOMETHING_ = 'test'; > > private $abc=_SOMETHING_; // fails, well actually anything fails > similar to this.

[PHP] Regex help

2005-01-28 Thread kjohnson
OK, this is off-topic like every other "regex help" post, but I know some of you enjoy these puzzles :) I need a validation regex that will "pass" a string. The string can be no longer than some maximum length, and it can contain any characters except two consecutive ampersands (&) anywhere in

[PHP] display imap inline image?

2005-01-28 Thread Fredrik Hampus
Hi! I have rewritten the script and now the output appers in a text form $testbody = imap_body($mbox, $msgno, "IMAGE/JPEG"); $testbody = base64_encode($testbody); // header('Content-Type: image/jpeg'); echo $testbody; This is a sample of the script how can i convert the ouput to an image/jpeg?

Re: [PHP] Vars with flash

2005-01-28 Thread Miles Thompson
It ain't a dumb question, and is most easily answered by sending you to pp 576 of Colin Mook's "ActionScript for Flash - The Definitive Guide". If you're doing a lot of Flash work this book is practically a "must have". Are you using LoadVars class(Flash MX) or the LoadVariables (Flash 4) meth

[PHP] Class declaration, constants and array

2005-01-28 Thread Marek
php5 class { const _SOMETHING_ = 'test'; private $abc=_SOMETHING_; // fails, well actually anything fails similar to this. var $test=$test2;// also fails So since I can not use dynamic var assignment within the class declaration, what are some of the easy sol

Re: [PHP] Validating input

2005-01-28 Thread John Nichel
John Nichel wrote: Ed Curtis wrote: I've been looking at the docs and found preg_match and preg_match_all but these functions only seem to match 1 specific search item. I want to make sure a variable (say $mlsnumber) contains only numbers and no spaces. What would I use to accomplish this? Thanks

Re: [PHP] Looking for ideas on scheduling

2005-01-28 Thread John Nichel
Chris W. Parker wrote: Hello, I'm looking to make a simple scheduler for myself and I'd like to get some feedback on how to handle the events and their being executed at the right time. The two options I've come up with both involve adding a job(s) to crontab. 1. Individual jobs are added to the us

Re: [PHP] Validating input

2005-01-28 Thread John Nichel
Ed Curtis wrote: I've been looking at the docs and found preg_match and preg_match_all but these functions only seem to match 1 specific search item. I want to make sure a variable (say $mlsnumber) contains only numbers and no spaces. What would I use to accomplish this? Thanks Ed You really don't

Re: [PHP] Validating input

2005-01-28 Thread trobi
Ed Curtis wrote / napísal (a): I've been looking at the docs and found preg_match and preg_match_all but these functions only seem to match 1 specific search item. I want to make sure a variable (say $mlsnumber) contains only numbers and no spaces. What would I use to accomplish this? Thanks Ed

[PHP] Validating input

2005-01-28 Thread Ed Curtis
I've been looking at the docs and found preg_match and preg_match_all but these functions only seem to match 1 specific search item. I want to make sure a variable (say $mlsnumber) contains only numbers and no spaces. What would I use to accomplish this? Thanks Ed -- PHP General Mailing List (

Re: [PHP] Multiple jobs in crontab

2005-01-28 Thread Richard Lynch
Al wrote: > Richard Lynch wrote: > >> Al wrote: >> >>>I'm trying to run 3 jobs in a crontab and only one job will run. I can >>>rearrange the order and only the first one runs. >> >> >> Try setting the MAILTO and check the output -- Perhaps that will tell >> you >> something useful... >> > Super s

RE: [PHP] Looking for ideas on scheduling

2005-01-28 Thread Chris W. Parker
Richard Lynch on Friday, January 28, 2005 11:36 AM said: > Chris W. Parker wrote: >> The two options I've come up with both involve adding a job(s) to >> crontab. >> >> 1. Individual jobs are added to the users crontab file. This could >> result in LOTS of entries

Re: [PHP] PHP4/Apache2 Content-Length stripped?

2005-01-28 Thread Richard Lynch
Stoian Ivanov wrote: > I'm writing a wap download script involving dynamic image resizing and so > on. I've notice that some phones are quitting in the mids of http > transfer. > After looking further I found out that headers() is sometimes ignored or > stripped. I've googled around and found in a

Re: [PHP] Looking for ideas on scheduling

2005-01-28 Thread Richard Lynch
Chris W. Parker wrote: > I'm looking to make a simple scheduler for myself and I'd like to get > some feedback on how to handle the events and their being executed at > the right time. > > The two options I've come up with both involve adding a job(s) to > crontab. > > 1. Individual jobs are added

Re: [PHP] SPL DirectoryIterator

2005-01-28 Thread Jochem Maas
Chris wrote: I'm not sure if this is a feature request, a "Oh, I didn't know that", or "That's the way it is, deal with it" kind of problem. iMHO its pretty much the last one, but I don't see the problem with what you have written, ok its a little longer, but you don't have to know that the magic

Re: [PHP] Looking for ideas on scheduling

2005-01-28 Thread Greg Donald
On Fri, 28 Jan 2005 10:49:35 -0800, Chris W. Parker <[EMAIL PROTECTED]> wrote: > 2. There is one job put in the crontab file that is executed every five > minutes. This job will be executing a PHP file that runs through the > database for the current user and checks to see if any events need to go

[PHP] SPL DirectoryIterator

2005-01-28 Thread Chris
I'm not sure if this is a feature request, a "Oh, I didn't know that", or "That's the way it is, deal with it" kind of problem. foreach(new DirectoryIterator($sDir) as $oFile) { if($oFile->isDot() || 'hidden.txt' == $oFile->getFilename()) continue; echo $oFile,"\n"; } In the code above, I a

Re: [PHP] Looking for ideas on scheduling

2005-01-28 Thread Jochem Maas
Chris W. Parker wrote: Hello, I'm looking to make a simple scheduler for myself and I'd like to get some feedback on how to handle the events and their being executed at the right time. The two options I've come up with both involve adding a job(s) to crontab. 1. Individual jobs are added to the us

Re: [PHP] PHP5 Class problem

2005-01-28 Thread Jochem Maas
Richard Lynch wrote: [EMAIL PROTECTED] wrote: ... how odd, i have assumed having a class static you could still throw around variables inside it, or its only meant to stay in the one static method so executing it like As I understand it... It's not that you can't use any variables at all -- It's t

[PHP] Looking for ideas on scheduling

2005-01-28 Thread Chris W. Parker
Hello, I'm looking to make a simple scheduler for myself and I'd like to get some feedback on how to handle the events and their being executed at the right time. The two options I've come up with both involve adding a job(s) to crontab. 1. Individual jobs are added to the users crontab file. Th

[PHP] PHP4/Apache2 Content-Length stripped?

2005-01-28 Thread Stoian Ivanov
Hi all, I'm writing a wap download script involving dynamic image resizing and so on. I've notice that some phones are quitting in the mids of http transfer. After looking further I found out that headers() is sometimes ignored or stripped. I've googled around and found in a perl forum that flus

[PHP] Re: Multi-language in script

2005-01-28 Thread Raj Shekhar
"Zoran Lorkovic" <[EMAIL PROTECTED]> writes: > Hi > > I'm interested, which is the best way to include multi-language > support in scripts? > By this I mean that with new version of script/program end-user don't > need to translate whole site again... See http://www.php.net/gettext or have a lo

Re: [PHP] Best method to store shopping cart contents

2005-01-28 Thread Jochem Maas
Bosky, Dave wrote: Do you have a simple example of how to create a multi-dimensional array and store it in a session variable? ... you also asked for a class example, seeing as your asking for this I don't think your ready for the class example... $_SESSION['mycart'] = array(); $_SESSION['mycart'][

Re: [PHP] Multiple jobs in crontab

2005-01-28 Thread Al
Richard Lynch wrote: Al wrote: I'm trying to run 3 jobs in a crontab and only one job will run. I can rearrange the order and only the first one runs. Try setting the MAILTO and check the output -- Perhaps that will tell you something useful... Super suggestion. It clearly showed I had a synt

Re: [PHP] replace

2005-01-28 Thread Jochem Maas
blackwater dev wrote: thanks...I will look that up. Not very good with regular expressions though. this is your chance to get a bit better. have a go, if you get stuck post your code :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Best method to store shopping cart contents

2005-01-28 Thread Richard Lynch
Bosky, Dave wrote: > Do you have a simple example of how to create a multi-dimensional array > and > store it in a session variable? E. Okay. For your penance you now must read: http://php.net/session_start http://php.net/manual/en/language.types.array.php -- Like Music? http://l-i-e.com

Re: [PHP] getid3

2005-01-28 Thread Richard Lynch
Daniel Lahey wrote: > I found a really great utility for getting info on music files that I > thought I'd share. Here's the info: > > / > /// getID3() by James Heinrich <[EMAIL PROTECTED]> // > // available at http://ge

Re: [PHP] mail problem at interland

2005-01-28 Thread Richard Lynch
R'twick Niceorgaw wrote: > Hi David, > > On Thu, January 27, 2005 9:09 pm, David Edwards said: >> Hi, >> >> $headers .= "MIME-Version: 1.0\n"; >> $headers .= "Content-type: text/plain; charset=iso-8859-1\n"; >> $headers .= "X-Priority: 1\n"; >> $headers .= "X-MSMail-Priority: High\n"; >> $heade

[PHP] Re: Re: thanks!

2005-01-28 Thread register
Your file is attached. +++ Attachment: No Virus found +++ Panda AntiVirus - www.pandasoftware.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best way to execute actions within a class

2005-01-28 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > I have been building a lightweight PHP4 based, hopefully PHP5 OO structure > where each page or php file contains its own class which is then executed > using the constructor like so What I would do at this point, if I were you, would be to take a step back and look at t

Re: [PHP] PHP5 Class problem

2005-01-28 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > >> >> 1. you are calling the method on a object >> (i.e. not as a static call like SessionHandler::getOrgSession()) >> >> 2. the function (method) you are calling is _NOT_ defined as static. >> >> in your case you have defined all your methods as static so the >> engi

RE: [PHP] Best method to store shopping cart contents

2005-01-28 Thread Bosky, Dave
Do you have a simple example of how to create a multi-dimensional array and store it in a session variable? Regards, ~Dave - Play more pool! www.mbpoolplayers.com - -Original Message- From: Richard Lynch [mailto:[EMA

Re: [PHP] replace

2005-01-28 Thread blackwater dev
thanks...I will look that up. Not very good with regular expressions though. On Fri, 28 Jan 2005 08:11:59 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: > blackwater dev wrote: > > I have a section of my site that uses HTMLArea to allow the users to > > manage content. For one certain s

Re: [PHP] Best method to store shopping cart contents

2005-01-28 Thread Richard Lynch
Bosky, Dave wrote: > I've written some nice shopping carts in Cold Fusion that use a session > variable to hold an array of structures. > > I need to convert the shopping cart to PHP but I'm unsure of how to store > the cart's contents using PHP. > > Should I create a multi-dimensional array and st

Re: [PHP] Check Url Exists

2005-01-28 Thread Richard Lynch
Binoy AV wrote: >In my php file, I want to check whether the url(residing on another > server) is existing or not. Depending on configuration and settings, either: http://php.net/file_exists http://php.net/curl Be aware that due to connectivity or dog-slow servers, you will get false negativ

Re: [PHP] replace

2005-01-28 Thread Richard Lynch
blackwater dev wrote: > I have a section of my site that uses HTMLArea to allow the users to > manage content. For one certain section, they want all of their links > to pop up in another window. I know they can use HTMLArea and add > this code themselves but they don't want to get to the code si

Re: [PHP] Multiple jobs in crontab

2005-01-28 Thread Richard Lynch
Al wrote: > I'm trying to run 3 jobs in a crontab and only one job will run. I can > rearrange the order and only the first one runs. Try setting the MAILTO and check the output -- Perhaps that will tell you something useful... -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailin

Re: [PHP] regular expressions ?

2005-01-28 Thread Robin Vickery
On Thu, 27 Jan 2005 11:36:39 -0800, Rick Fletcher <[EMAIL PROTECTED]> wrote: > > /^(1?[1-9]|[12]0)$/ works too. The first part covers 1-9, 11-19; the > second part gets you 10 and 20. > > Plus, it's ever so slightly shorter! And isnt' that what's most > important? :P absolutely, and you managed

Re: [PHP] Re: debug_backtrace trick

2005-01-28 Thread Gerard Samuel
David Robley wrote: On Friday 28 January 2005 17:09, Gerard Samuel wrote: There used to be a link in the manual user notes, I believe under debug_backtrace(). Where, there was some javascript voodoo, that would hide/unhide the backtrace. Does anyone have a link to this site? Thanks Maybe ht

[PHP] Multiple jobs in crontab

2005-01-28 Thread Al
I'm trying to run 3 jobs in a crontab and only one job will run. I can rearrange the order and only the first one runs. Here is my code, the command line may show wrapped, but it is not: #phpList PQ This job replaces its log and error files. Runs at 3:03am, 3:18, etc. 3,18,33,48 0 * * * /usr/lo

RE: [PHP] Check Url Exists

2005-01-28 Thread Mike
Or you can use fopen() - http://us3.php.net/manual/en/function.fopen.php - check the file handle to see if it worked and then close the handle. Just remember you need allow_url_fopen allowed in your php.ini file. -M > -Original Message- > From: Jochem Maas [mailto:[EMAIL PROTECTED] > S

[PHP] replace

2005-01-28 Thread blackwater dev
I have a section of my site that uses HTMLArea to allow the users to manage content. For one certain section, they want all of their links to pop up in another window. I know they can use HTMLArea and add this code themselves but they don't want to get to the code side of it. Currently, I just p

Re: [PHP] mysql_pconnect / persistent database conections

2005-01-28 Thread Ben Edwards
On Thu, 27 Jan 2005 22:14:52 -0800, Steve Slater <[EMAIL PROTECTED]> wrote: > At 10:43 AM 1/27/2005, Richard Lynch wrote: > >Ben Edwards wrote: > > > Been meaning to investigate persistent database connections for a > > > while. Coming from a rdbms background (oracle with a bit of whatcom > > > sq

Re: [PHP] PHP5 stable enough for webapps ?

2005-01-28 Thread Greg Donald
On Fri, 28 Jan 2005 23:43:54 +1100, electroteque <[EMAIL PROTECTED]> wrote: > Heh is that for PHP5 or Apache2 ? I think PHP5 is stable enough for > what i need it to do, no bugs hangs or crashes., Convincing others that > it isnt bleeding edge anymore is a different story. I wouldn't say it has no

Re: [PHP] Check Url Exists

2005-01-28 Thread Jochem Maas
Binoy AV wrote: Hi, In my php file, I want to check whether the url(residing on another server) is existing or not. is that I question? (PS I want a car with 200BHP) in case it was a question then have a look at the cURL extension - it allows you to 'hit' another server as if your script is

Re: [PHP] Best method to store shopping cart contents

2005-01-28 Thread Jochem Maas
Bosky, Dave wrote: I've written some nice shopping carts in Cold Fusion that use a session variable to hold an array of structures. I need to convert the shopping cart to PHP but I'm unsure of how to store the cart's contents using PHP. Should I create a multi-dimensional array and store it a se

Re: [PHP] [NEWBIE] Trying to create a function from an existing script [SOLVED]

2005-01-28 Thread Dave
Jon and all, Please disregard my posting just before this. After a night's sleep and looking at my code with fresh eyes, I noticed that I had an extra under bar character in my $HTTP_POST_FILES variable which was causing all the trouble. The script is now working perfectly. Thanks Marek

[PHP] Check Url Exists

2005-01-28 Thread Binoy AV
Hi, In my php file, I want to check whether the url(residing on another server) is existing or not. Thanks in advance. Binoy __ __ __ __ Sent via the WebMail system at softwareassociates.co.uk --- Scanned by

[PHP] Best method to store shopping cart contents

2005-01-28 Thread Bosky, Dave
I've written some nice shopping carts in Cold Fusion that use a session variable to hold an array of structures. I need to convert the shopping cart to PHP but I'm unsure of how to store the cart's contents using PHP. Should I create a multi-dimensional array and store it a session variable?

Re: [PHP] error log

2005-01-28 Thread Jochem Maas
Richard Lynch wrote: Benson wrote: could anyone please help me on how to display all the errors to the browser, but not to file? I have tried modifying php.ini and httpd.conf (apache), but I am not sure how to modify... You would be MUCH MUCH MUCH better off to train yourself to use 'tail -f /usr/

Re: [PHP] PHP5 stable enough for webapps ?

2005-01-28 Thread Jochem Maas
electroteque wrote: On 28/01/2005, at 11:56 PM, Jochem Maas wrote: well if you have been working fine on MacOSX then I reckon thats a good indication! Well umm, its a standard setup really, i install all the libraries needed for the extensions via fink, i compile php via source. was not meant a

Re: [PHP] PHP5 Class problem

2005-01-28 Thread Jochem Maas
electroteque wrote: On 29/01/2005, at 12:02 AM, Jochem Maas wrote: classes cannot be defined as static - defining them as abstract has the effect of being able to only use a given class statically (unless you subclass it and the subclass is not abstract). abstract as in it is the final base cla

RE: [PHP] rss feeder using php?

2005-01-28 Thread Josip Dzolonga
On Fri, 2005-01-28 at 11:49 +, Chris Ramsay wrote: > [snip] > we are looking for a RSS feeder implemented in php. > > Is there anything good out there (something you have tried + tested). > [/snip] I used to code a PHP5 rss-parsing class some time ago, but I haven't finished it (stopped at ca

Re: [PHP] PHP5 stable enough for webapps ?

2005-01-28 Thread electroteque
On 28/01/2005, at 11:56 PM, Jochem Maas wrote: well if you have been working fine on MacOSX then I reckon thats a good indication! Well umm, its a standard setup really, i install all the libraries needed for the extensions via fink, i compile php via source. ...and if you want to run redhat th

Re: [PHP] ftp_put and ftp_fput both failing me

2005-01-28 Thread Jochem Maas
Wayne Zeller wrote: Marek Kilimajer wrote: 30 seconds? This must be your firewall blocking connections from outside world. Use ftp_pasv() to turn on passive mode. That did the trick. Thanks s much! Marek shoots, Marek scores :-) Wayne -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] PHP5 Class problem

2005-01-28 Thread Jochem Maas
[EMAIL PROTECTED] wrote: 1. you are calling the method on a object (i.e. not as a static call like SessionHandler::getOrgSession()) 2. the function (method) you are calling is _NOT_ defined as static. in your case you have defined all your methods as static so the engine will not make $this ava

Re: [PHP] PHP5 stable enough for webapps ?

2005-01-28 Thread Jochem Maas
[EMAIL PROTECTED] wrote: I am in the midst of getting work to implement PHP5 onto a new server for a web based app I am doing using PEAR's DB_DataObject plus some other fancy OO. To give them the piece of mind I would like to know if its stable enough to run for an intranet based app running on Fed

Re: [PHP] PHP5 stable enough for webapps ?

2005-01-28 Thread electroteque
On 28/01/2005, at 11:26 PM, trobi wrote: Under GNU/Linux you can compile it too, you don't have to use th pre-compiled packages. I think GNU/Linux is stable enough but it is up to you. trobi Heh is that for PHP5 or Apache2 ? I think PHP5 is stable enough for what i need it to do, no bugs hangs

Re: [PHP] PHP5 stable enough for webapps ?

2005-01-28 Thread trobi
[EMAIL PROTECTED] wrote / napísal (a): I am in the midst of getting work to implement PHP5 onto a new server for a web based app I am doing using PEAR's DB_DataObject plus some other fancy OO. To give them the piece of mind I would like to know if its stable enough to run for an intranet based app

Re: [PHP] PHP5 Class problem

2005-01-28 Thread M. Sokolewicz
[EMAIL PROTECTED] wrote: 1. you are calling the method on a object (i.e. not as a static call like SessionHandler::getOrgSession()) 2. the function (method) you are calling is _NOT_ defined as static. in your case you have defined all your methods as static so the engine will not make $this ava

RE: [PHP] rss feeder using php?

2005-01-28 Thread Chris Ramsay
[snip] we are looking for a RSS feeder implemented in php. Is there anything good out there (something you have tried + tested). [/snip] I have used the following - http://www.phpinsider.com/php/code/ContentFeeder/ - is worth a go... [snip] >Please, do not answer "do a google search", because I

[PHP] rss feeder using php?

2005-01-28 Thread symbulos partners
Dear friends, we are looking for a RSS feeder implemented in php. Is there anything good out there (something you have tried + tested). Please, do not answer "do a google search", because I ALREADY know how to do a google search. What we are interested is some feedback on real products you have

[PHP] Re: Extended Mail

2005-01-28 Thread scr-request
Partial message is available. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP5 stable enough for webapps ?

2005-01-28 Thread daniel
I am in the midst of getting work to implement PHP5 onto a new server for a web based app I am doing using PEAR's DB_DataObject plus some other fancy OO. To give them the piece of mind I would like to know if its stable enough to run for an intranet based app running on Federo Linux. The extensions

Re: [PHP] PHP5 Class problem

2005-01-28 Thread daniel
> > 1. you are calling the method on a object > (i.e. not as a static call like SessionHandler::getOrgSession()) > > 2. the function (method) you are calling is _NOT_ defined as static. > > in your case you have defined all your methods as static so the > engine will not make $this available e

[PHP] Best way to execute actions within a class

2005-01-28 Thread daniel
I have been building a lightweight PHP4 based, hopefully PHP5 OO structure where each page or php file contains its own class which is then executed using the constructor like so new SomeProject_SomeSubProject(); within the subclasses contructor I then call a method called start which is in a ba

Re: [PHP] PHP5 Class problem

2005-01-28 Thread Jochem Maas
Thomas Munz wrote: I'm using PHP 5.0.3 and if a problem if a class method. I'm initializing a class like that: $o_SessionHandler = new SessionHandler(); var_dump($o_SessionHandler->getOrgSession());exit; ... //-- returns the original login static public function getOrgSession() {

  1   2   >