Re: [PHP] html forms in php

2005-09-19 Thread Alain Reguera
> I HATE "Are you sure?" prompts. If I wasn't sure, I wouldn't have > clicked it in the first place. > > If you want to make your users happy, trust them when they say > "Delete", but make it easy to undo. Instead of deleting the records, > just set the "Delete" flag and timestamp. Then when th

Re: [PHP] Re: about PHP

2005-09-19 Thread viraj
On 9/20/05, Srinivasan Kumar <[EMAIL PROTECTED]> wrote: > sir, > this is srinivasan i have to know about the php.i.e. Google is your friend! ..the best is to search/read a bit more about PHP. follow these links.. http://www.php.net/tut.php http://www.google.com/search?hl=en&lr=&oi=defmore&q=defi

Re: [PHP] My sql CC tool help

2005-09-19 Thread Jasper Bryant-Greene
[EMAIL PROTECTED] wrote: I am using my sql control center on windows server. I am able to extract the DB structure but not able to extract the records from the tables. Is there any way to do the same with mysql cc tool. As this question has nothing at all to do with PHP, maybe you should direc

Re: [PHP] Installing under IIS6.0

2005-09-19 Thread Joe Wollard
On Sep 19, 2005, at 9:45 PM, Dan Trainor wrote: Tjoekbezoer van Damme wrote: I've got PHP set up to the point where it will process files ending in .php, but I want to "blanket" the processing of PHP code under IIS in the same manner in which I blanket PHP code with Apache. If anyone has

[PHP] My sql CC tool help

2005-09-19 Thread loveneesh.bansal
Hi, I am using my sql control center on windows server. I am able to extract the DB structure but not able to extract the records from the tables. Is there any way to do the same with mysql cc tool. Regards, loveneesh Bansal http://www.bsdinfotech.com/loveneesh.htm

Re: [PHP] Problems with PHP after MySQL Upgrade

2005-09-19 Thread Joe Wollard
On Sep 19, 2005, at 4:36 PM, Nathan wrote: Here's the issue. I use MySQL as my database backend. I used to have php running fine and I used phpMyAdmin to do any admin functions I needed to on MySQL. I recently upgraded to MySQL 5.x and ever since I've gotten the following error messages

Re: [PHP] headers .vs javascript location.href

2005-09-19 Thread Joe Wollard
On Sep 19, 2005, at 5:08 PM, Chris Shiflett wrote: bruce wrote: i'd already asked/explained the error. to reiterate, the error i'm getting is the error that's generated when you try to use the php 'header' function, and it throws a warning/error regarding 'headers already being sent...' If

[PHP] core files

2005-09-19 Thread Jon
I am trying to copy the files needed to run a php commandline script so that I can send them to a different computer and run as a scheduled task. I do not know what I am missing but for some reason my file commands do not seem to be working. fopen does not work and so fwrite does not work either.

[PHP] Re: about PHP

2005-09-19 Thread Srinivasan Kumar
sir, this is srinivasan i have to know about the php.i.e. how can i view the php pages in windows98 PWS?.could you reply in this regard. thanking you k.srinivasan Gabor Hojtsy <[EMAIL PROTECTED]> wrote:Dear Srinivasan Kumar, Since your problem has nothing to do with webmastering of the php.

Re: [PHP] Re: User error handler must not modify error context

2005-09-19 Thread Robert Cummings
On Mon, 2005-09-19 at 23:09, Jasper Bryant-Greene wrote: > Noel wrote: > > Actually, that's all of it aside from the function statement and the > > return statement. > > > > function funcTitle ($title='') { > > global $mywebsite; > > if ($_POST['title']) $title = $_POST['title'];

Re: [PHP] Re: User error handler must not modify error context

2005-09-19 Thread Jasper Bryant-Greene
Noel wrote: Actually, that's all of it aside from the function statement and the return statement. function funcTitle ($title='') { global $mywebsite; if ($_POST['title']) $title = $_POST['title']; elseif ($_GET['title']) $title = $_GET['title']; elseif (!$title)

[PHP] Re: User error handler must not modify error context

2005-09-19 Thread Noel
Actually, that's all of it aside from the function statement and the return statement. function funcTitle ($title='') { global $mywebsite; if ($_POST['title']) $title = $_POST['title']; elseif ($_GET['title']) $title = $_GET['title']; elseif (!$title) $title = $my

Re: [PHP] Installing under IIS6.0

2005-09-19 Thread Dan Trainor
Tjoekbezoer van Damme wrote: I've got PHP set up to the point where it will process files ending in .php, but I want to "blanket" the processing of PHP code under IIS in the same manner in which I blanket PHP code with Apache. If anyone has any suggestions, other than reading PHP's manual which

RE: [PHP] User error handler must not modify error context

2005-09-19 Thread Michael Sims
Noel wrote: > Error Message: > Fatal error: User error handler must not modify error context in > [FILENAME] on line 58 [...] > My site has just been upgraded to this version. In the previous > version (4.3.11), my site works just fine. Could this be a bug? If it > is, how can I solve it at least u

Re: [PHP] User error handler must not modify error context

2005-09-19 Thread Jasper Bryant-Greene
Noel wrote: Error Message: Fatal error: User error handler must not modify error context in [FILENAME] on line 58 [snip] The error number is pointing to this code: LINE 57: global $mywebsite; LINE 58: if ($_POST['title']) $title = $_POST['title']; LINE 59: elseif ($_GET['title']) $title = $_G

[PHP] User error handler must not modify error context

2005-09-19 Thread Noel
Error Message: Fatal error: User error handler must not modify error context in [FILENAME] on line 58 This error seems to occur only when I use: $old_error_handler = set_error_handler ('userErrorHandler'); The error number is pointing to this code: LINE 57: global $mywebsite; LINE 58: if ($_PO

Re: [PHP] Php converting jpegs to pjpegs: Help

2005-09-19 Thread Jasper Bryant-Greene
jnoyes wrote: Can someone tell me why, or better yet how I can make sure that PHP doesn't turn my non-progressive jpegs to pjepgs on upload? Using the code below, if I upload a non-progressive jpeg, PHP tells me that the file uploaded successfully, and the file is of type pjpeg. How can I avoid

Re: [PHP] Re: [php]: monthly statistics

2005-09-19 Thread Graham Cossey
On 9/19/05, David Robley <[EMAIL PROTECTED]> wrote: > > John Taylor-Johnston wrote: > > > How will I draw a graph > height=$mydate->number_of_hits_per_day>? Anything in the manual to look > > at? http://www.mysql.com/search/?q=YEARMONTH&charset=utf-8 > > http://ca3.php.net/manual-lookup.php?pat

[PHP] Php converting jpegs to pjpegs: Help

2005-09-19 Thread jnoyes
Can someone tell me why, or better yet how I can make sure that PHP doesn't turn my non-progressive jpegs to pjepgs on upload? Using the code below, if I upload a non-progressive jpeg, PHP tells me that the file uploaded successfully, and the file is of type pjpeg. How can I avoid this problem?

RE: [PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Anas Mughal on Monday, September 19, 2005 4:02 PM said: > The simplest way to solve this problem is as follows: > > - Have your Customer class hold only attributes for a customer. This > class would only have getter and setter methods. In the Java world, > this is r

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Ken Tozier
On Sep 19, 2005, at 7:19 PM, Stephen Leaf wrote: On Monday 19 September 2005 06:04 pm, Ken Tozier wrote: Not a bad Idea. You might like this function I made then ;) function createElement($parentNode, $name, $elements=array()) { $node = $this->Dom->createElement($name); for

[PHP] Re: Size limits of mysql

2005-09-19 Thread Michelle Konzack
Am 2005-09-14 07:37:49, schrieb [EMAIL PROTECTED]: > Hi All, > > I have a simple database with one table with about 6 fields, just > holding filenames, filepaths and sizes. Very basic audit for management > here. Problem is I import a load of records into this table and it > seems to only allow

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Stephen Leaf
On Monday 19 September 2005 06:04 pm, Ken Tozier wrote: Not a bad Idea. You might like this function I made then ;) function createElement($parentNode, $name, $elements=array()) { $node = $this->Dom->createElement($name); for ($x=0; $x < count($elements); $x

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Stephen Leaf
On Monday 19 September 2005 12:25 pm, Ken Tozier wrote: > > I would be extremely careful with this.. because sadly PHP's XML > > generator > > uses the short form whenever possible. > > will *NOT* work in most browsers such as FireFox. > > Will work. > > Thanks for the heads up. Looks like if you

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Ken Tozier
Even better, you can just extend the DOMDocument class, which is perfect, since I'm basically just adding convenience methods. Thanks all for your help Ken createScriptElement('howdy.js'); $x->createCSSLinkElement('howdy.css'); $x->createStyledDivElement('bugColumnTitle', "I'm a styl

Re: [PHP] Suggestions for class design

2005-09-19 Thread Anas Mughal
The simplest way to solve this problem is as follows: - Have your Customer class hold only attributes for a customer. This class would only have getter and setter methods. In the Java world, this is referred to as a JavaBean. - Then, have a DAO class that does your data access functions. Here i

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Ken Tozier
Thanks Jasper Works perfectly on my Mac now as well. Ken On Sep 19, 2005, at 4:58 PM, Jasper Bryant-Greene wrote: createScriptElement('howdy.js'); print($x->saveXML()); class MyDom { private $dom; /* __construct() = PHP5 constructor */ function __construct() { $this->dom

Re: [PHP] REGEX Help Please

2005-09-19 Thread Stephen Leaf
On Monday 19 September 2005 09:03 am, Shaun wrote: > Hi, > > I am trying to implement a regular expression so that I have a number > between 0.00 and 1.00. the following works except I can go up to 1.99 > > $regexp = "/^[0-1]{1}.[0-9]{2}/"; > > Can anyone help here please? > > Thanks $regexp = "/^

Re: [PHP] this may be a daft question but.....defining indexes

2005-09-19 Thread Thorsten Suckow-Homberg
This may be a daft question but I keep getting notices on undefined indexes I'm sorry to tell you, but this implies bad programming-practice. ;) First off: Leveling the error_reporting in the php-ini is NOT a good idea! Have you ever tested osCommerce with error_reporting set to E_ALL? You b

Re: [PHP] Installing under IIS6.0

2005-09-19 Thread Tjoekbezoer van Damme
> I've got PHP set up to the point where it will process files ending in > .php, but I want to "blanket" the processing of PHP code under IIS in > the same manner in which I blanket PHP code with Apache. > > If anyone has any suggestions, other than reading PHP's manual which > I've read several t

Re: [PHP] this may be a daft question but.....defining indexes

2005-09-19 Thread Tjoekbezoer van Damme
> This may be a daft question but I keep getting notices on undefined indexes > > Is there a way to define them prior to use similar to.. > > $global $myvariable; > > Can you show me examples of how to do this with cookies/arrays? $array = array( ); and with a class you can use class Test {

[PHP] this may be a daft question but.....defining indexes

2005-09-19 Thread Ross
Hi This may be a daft question but I keep getting notices on undefined indexes Is there a way to define them prior to use similar to.. $global $myvariable; Can you show me examples of how to do this with cookies/arrays? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Suggestions for class design

2005-09-19 Thread M Saleh EG
>From what I understand is you need a data objects class. Use a generic class such as PEAR's DB_DataObject (http://pear.php.net/package/DB_DataObject). All you have to do is give the table name and the class for example would be in our case DB_DataObject_Customer And then querying the table wou

[PHP] Re: Unserialize Errors

2005-09-19 Thread Al
James Thomas Richardson wrote: Hello all, I'm curious to know if there are stability issues with the un/serialize functions. I've my code, I serialize a multidimensional array to disk and when I read it in later, 20% of the time I get errors like: Notice: unserialize(): Error at offset 2137774

Re: [PHP] Suggestions for class design

2005-09-19 Thread Satyam
""Chris W. Parker"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Jay Blanchard on Monday, September 19, 2005 10:40 AM said: > [snip] > Where I get tripped up is when I realize I'll need to at some point > get more than one customer at a time and thus

Re: [PHP] headers .vs javascript location.href

2005-09-19 Thread Chris Shiflett
bruce wrote: i'd already asked/explained the error. to reiterate, the error i'm getting is the error that's generated when you try to use the php 'header' function, and it throws a warning/error regarding 'headers already being sent...' If you're absolutely certain that your script produces no

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Jasper Bryant-Greene
Ken Tozier wrote: Rats. Looks like you can't encapsulate DOM objects in your own classes. I tried this and the browser 'view source' shows a completely empty document. createScriptElement('howdy.js'); class MyDom { function MyDom() { $dom = new

RE: [PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Michael Sims on Monday, September 19, 2005 12:04 PM said: > Basically you're implementing DAO's (Data Access Objects), similar to > what an ORM (Object Relational Mapper) tool would do for you. [snip] Thanks for the info, and I'll check out the Propel site a little

[PHP] Problems with PHP after MySQL Upgrade

2005-09-19 Thread Nathan
Here's the issue. I use MySQL as my database backend. I used to have php running fine and I used phpMyAdmin to do any admin functions I needed to on MySQL. I recently upgraded to MySQL 5.x and ever since I've gotten the following error messages. When I try to use extension=php_mysqli.dll This er

Re: [PHP] replace

2005-09-19 Thread tg-php
I hope this is what you were looking for: $contents = "Numbers 1, 2, 3, 4 and 5 will be replaced with A, B, C, D, and E"; $searcharr = array("1", "2", "3", "4", "5"); $replacearr = array("A", "B", "C", "D", "E"); $newcontents = str_replace($searcharr, $replacearr, $contents); echo $newcontents;

[PHP] replace

2005-09-19 Thread php @ net mines
Hi all if I have an array of chars to be replaced array(1,2,3,4,5); and an arry of chars to replace with array(a,b,c,d,e) what function do I need to replace all chars from one arry to the other that are found in the var $contents Thanks M -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Ken Tozier
On Sep 19, 2005, at 3:26 PM, Vance Rodriguez wrote: I am used to seeing global class variables initialized in the class level if they are available to the class's $this statement. createScriptElement('howdy.js'); class MyDom { protected $dom; function __construct()

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread comex
> $dom = new DOMDocument('1.0', 'iso-8859-1'); Shouldn't this be > $this->dom = new DOMDocument('1.0', 'iso-8859-1'); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Suggestions for class design

2005-09-19 Thread Manuel Lemos
Hello, on 09/19/2005 02:33 PM Chris W. Parker said the following: Let's take for example a class called 'Customer' that (obviously) manipulates customers in the database. Here is a very basic Customer class. (Data validation and the like are left out for brevity.) This is a basic object persis

RE: [PHP] Suggestions for class design

2005-09-19 Thread Michael Sims
Chris W. Parker wrote: > Let's take for example a class called 'Customer' that (obviously) > manipulates customers in the database. Here is a very basic Customer > class. (Data validation and the like are left out for brevity.) [snip] > Where I get tripped up is when I realize I'll need to at some

[PHP] Installing under IIS6.0

2005-09-19 Thread Dan Trainor
Hello, all - This is a subject that I've seen pop up on the list a few times, but not in great detail about setting up PHP under IIS 6.0. What I'm trying to achieve here is to install PHP to process PHP code embedded inside of HTML pages. Under Apache, I'd just add .html to my AddType directive

[PHP] Re: Javscript embedding problem

2005-09-19 Thread David Dorward
Iggep wrote: > countdown.js looks like this: >

Re: [PHP] Suggestions for class design

2005-09-19 Thread Rory McKinley
Chris W. Parker wrote: >> >> class Customer >> { >> var $id; >> var $name; >> function get_customer() >> { $this->name = $customer['name']; >> } >> Where I get tripped up is when I realize I'll need to at some point get >> more than one customer at a

Re: [PHP] Suggestions for class design

2005-09-19 Thread Robert Cummings
On Mon, 2005-09-19 at 14:00, Mikey wrote: > Jay Blanchard wrote: > > >[snip] > >Well, yes I think it does, but what I'm missing is how this new object > >interacts with the original one if it does at all. And what would I call > >it? 'Multiple_Customers'? Or.. perhaps just 'Customers'! :) > > > >D

Re: [PHP] can not re-use a object

2005-09-19 Thread Joe Wollard
I have try to use the same $db and to create a new one... Are you trying to use the $db object inside of another function later in the code? If so you'll need to use $GLOBALS['db'] instead. Sorry, this is the only thing I can think of with your description Have you tried a simple test program

[PHP] Re: RSS creator class

2005-09-19 Thread Manuel Lemos
Hello, on 09/19/2005 11:16 AM David Robley said the following: Wondering if anyone knows of a PHP class or other PHP tool for creating RSS/XML data which gracefully handles 'strange' characters such as M$ Word's delightful 'smart quotes'. I've found a couple so far, libRSS (by Jan Pieper) and C

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Ken Tozier
Rats. Looks like you can't encapsulate DOM objects in your own classes. I tried this and the browser 'view source' shows a completely empty document. createScriptElement('howdy.js'); class MyDom { function MyDom() { $dom = new DOMDocument('1.0',

RE: [PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Jay Blanchard on Monday, September 19, 2005 10:53 AM said: > I think that it should be a stand alone class. The Customers class > could instantiate the needed number of Customer objects and the > methods of the Customers class could affect each Customer object. I'm

Re: [PHP] Suggestions for class design

2005-09-19 Thread Mikey
Jay Blanchard wrote: [snip] Well, yes I think it does, but what I'm missing is how this new object interacts with the original one if it does at all. And what would I call it? 'Multiple_Customers'? Or.. perhaps just 'Customers'! :) Do I extend the Customer class or is it a stand alone class? [/

RE: [PHP] Suggestions for class design

2005-09-19 Thread Jay Blanchard
[snip] Well, yes I think it does, but what I'm missing is how this new object interacts with the original one if it does at all. And what would I call it? 'Multiple_Customers'? Or.. perhaps just 'Customers'! :) Do I extend the Customer class or is it a stand alone class? [/snip] I think that it s

[PHP] Unserialize Errors

2005-09-19 Thread James Thomas Richardson
Hello all, I'm curious to know if there are stability issues with the un/serialize functions. I've my code, I serialize a multidimensional array to disk and when I read it in later, 20% of the time I get errors like: Notice: unserialize(): Error at offset 2137774 of 2137781 bytes -- James T.

RE: [PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Jay Blanchard on Monday, September 19, 2005 10:40 AM said: > [snip] > Where I get tripped up is when I realize I'll need to at some point > get more than one customer at a time and thus I want to add a method > called 'get_customers()'. > [/snip] > Why, at any point

RE: [PHP] Suggestions for class design

2005-09-19 Thread Jay Blanchard
[snip] Where I get tripped up is when I realize I'll need to at some point get more than one customer at a time and thus I want to add a method called 'get_customers()'. [/snip] I know that you didn't ask for this, but the point needs discussing given your assertion above. Why, at any point, woul

[PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Hello, Every time I write some classes I always come across the same fundamental problem that I haven't figured out how to solve/approach yet. I'm not exactly sure how to put it into words simply but here goes... Let's take for example a class called 'Customer' that (obviously) manipulates custom

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Ken Tozier
I would be extremely careful with this.. because sadly PHP's XML generator uses the short form whenever possible. will *NOT* work in most browsers such as FireFox. Will work. Thanks for the heads up. Looks like if you define the tag like $script= $dom->createElement('script',''); <--

Re: [PHP] RSS creator class

2005-09-19 Thread Rory Browne
On 9/19/05, David Robley <[EMAIL PROTECTED]> wrote: > Wondering if anyone knows of a PHP class or other PHP tool for creating > RSS/XML data which gracefully handles 'strange' characters such as M$ > Word's delightful 'smart quotes'. Why not do something simple like preg_replace [^a-zA-Z0-9_-](or

Re: [PHP] Can I install versions of PHP/MySQL that will be compatible with my host server?

2005-09-19 Thread Jordan Miller
That is very interesting, thank you. We cannot escape politics, eh? Jordan On Sep 19, 2005, at 9:32 AM, Jochem Maas wrote: Jordan Miller wrote: On Sep 19, 2005, at 8:31 AM, Jochem Maas wrote: e.g: $var = array_pop( explode('-', '1-2-3-4-5') ); .. is bad code (read the manual page for a

Re: [PHP] bowscap ini

2005-09-19 Thread Mikey
John Nichel wrote: Mikey wrote: http://uk.php.net/manual/en/function.get-browser.php How about that. I've been using php since late '98, early '99. Messing around on this list since '99, and _did not_ know about that function. Ah now, don't be saying things like that - it will only i

[PHP] Re: headers .vs javascript location.href

2005-09-19 Thread Al
bruce wrote: hi.. need to talk to someone to figure out how/what i need to do to use the php 'headers' function, as opposed to the javascript 'location.href'. i've tried to implement the buffering functions, but still get the same error... is there someone that i can talk to about this, who ha

Re: [PHP] Can I install versions of PHP/MySQL that will be compatible with my host server?

2005-09-19 Thread Jochem Maas
Jordan Miller wrote: On Sep 19, 2005, at 8:31 AM, Jochem Maas wrote: e.g: $var = array_pop( explode('-', '1-2-3-4-5') ); .. is bad code (read the manual page for array_pop very carefully) and would work in older versions but the engine has been tightened up to disallow such fauxpas.

[PHP] Re: Problem with mysql_connect(...)

2005-09-19 Thread Mark Rees
I'm trying to connect to my MySQL server with mysql_connect(...). The server is up and running, and I'm running Apache with PHP properly installed. : --- But have you got the mysql extension? put this in a script and view the output to check The cod

[PHP] RSS creator class

2005-09-19 Thread David Robley
Wondering if anyone knows of a PHP class or other PHP tool for creating RSS/XML data which gracefully handles 'strange' characters such as M$ Word's delightful 'smart quotes'. I've found a couple so far, libRSS (by Jan Pieper) and ContentFeeder 2.0, but neither deals very well with the plethora of

Re: [PHP] REGEX Help Please

2005-09-19 Thread Robert Cummings
On Mon, 2005-09-19 at 10:11, John Nichel wrote: > Shaun wrote: > > Hi, > > > > I am trying to implement a regular expression so that I have a number > > between 0.00 and 1.00. the following works except I can go up to 1.99 > > > > $regexp = "/^[0-1]{1}.[0-9]{2}/"; > > > > Can anyone help here p

[PHP] Re: REGEX Help Please

2005-09-19 Thread Mark Rees
> I am trying to implement a regular expression so that I have a number > between 0.00 and 1.00. the following works except I can go up to 1.99 > > $regexp = "/^[0-1]{1}.[0-9]{2}/"; > You could always do this, unless you are set on using a regular expression: if($num>=0 && $num<=1.01){ echo numb

[PHP] Problem with mysql_connect(...)

2005-09-19 Thread A T
Hello. I'm trying to connect to my MySQL server with mysql_connect(...). The server is up and running, and I'm running Apache with PHP properly installed. The code: $hleServer = mysql_connect($host, $user, $password) or die("Error: Database. Error code: 1. Contact the web master!"); $host, $us

Re: [PHP] REGEX Help Please

2005-09-19 Thread John Nichel
Shaun wrote: Hi, I am trying to implement a regular expression so that I have a number between 0.00 and 1.00. the following works except I can go up to 1.99 $regexp = "/^[0-1]{1}.[0-9]{2}/"; Can anyone help here please? Thanks May have to go outside just a regex... if ( preg_match ( "/

Re: [PHP] bowscap ini

2005-09-19 Thread John Nichel
Mikey wrote: http://uk.php.net/manual/en/function.get-browser.php How about that. I've been using php since late '98, early '99. Messing around on this list since '99, and _did not_ know about that function. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP Ge

Re: [PHP] Can I install versions of PHP/MySQL that will be compatible with my host server?

2005-09-19 Thread Jordan Miller
On Sep 19, 2005, at 8:31 AM, Jochem Maas wrote: e.g: $var = array_pop( explode('-', '1-2-3-4-5') ); .. is bad code (read the manual page for array_pop very carefully) and would work in older versions but the engine has been tightened up to disallow such fauxpas. Jochem, Whoa... what

[PHP] REGEX Help Please

2005-09-19 Thread Shaun
Hi, I am trying to implement a regular expression so that I have a number between 0.00 and 1.00. the following works except I can go up to 1.99 $regexp = "/^[0-1]{1}.[0-9]{2}/"; Can anyone help here please? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Can I install versions of PHP/MySQL that will be compatible with my host server?

2005-09-19 Thread Dave Gutteridge
Thank you for your helpful assistance in explaining the situation to me. It would seem from the advice I've been given that I don't need to worry about compatibility when it comes to application versions. But I do have a follow up question. Are there any specifications or installation options tha

Re: [PHP] bowscap ini

2005-09-19 Thread Mikey
Ross wrote: Hi, Can some pont me towards a tutorial that can help me extract the information when using browscap.ini. I need to know browser, version and operating system If you any other advice for browser I would be happy to hear it. Thanks, Ross Generally, by reading the manual:

[PHP] Re: curl version and PHP docs

2005-09-19 Thread Mark Rees
To put the question more simply, is there any way of finding out what versions of the PHP modules ship with each/the latest release, short of installing that version of PHP? Some release notes, for example? Thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] bowscap ini

2005-09-19 Thread Ross
Hi, Can some pont me towards a tutorial that can help me extract the information when using browscap.ini. I need to know browser, version and operating system If you any other advice for browser I would be happy to hear it. Thanks, Ross -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-19 Thread Oliver Grätz
Rasmus Lerdorf schrieb: > [...] > What do we do with code like this? If you follow it through it is > essentially doing: > > 3 = "banana"; This is obviously totally wrong and has to be noted as wrong, hence E_NOTICE. Since it can be dealt with without rendering the script unexecutable raising

Re: [PHP] Can I install versions of PHP/MySQL that will be compatible with my host server?

2005-09-19 Thread Jochem Maas
Dave Gutteridge wrote: PHP General List, First, let me say that while I have been scripting with PHP and MySQL for my web sites for a few years, I have never configured or installed either PHP or MySQL, so I should be considered a newbie for installation issues. The situation: I am running Li

RE: [PHP] headers .vs javascript location.href

2005-09-19 Thread bruce
chris, i'd already asked/explained the error. to reiterate, the error i'm getting is the error that's generated when you try to use the php 'header' function, and it throws a warning/error regarding 'headers already being sent...' the soln appears to be to use the php buffering functions, as this

[PHP] Can I install versions of PHP/MySQL that will be compatible with my host server?

2005-09-19 Thread Dave Gutteridge
PHP General List, First, let me say that while I have been scripting with PHP and MySQL for my web sites for a few years, I have never configured or installed either PHP or MySQL, so I should be considered a newbie for installation issues. The situation: I am running Linux on my home computer.

RE: [PHP] Session creation time

2005-09-19 Thread Stanislav Kuhn
session_start(); if (empty($_SESSION['start_time']) $_SESSION['start_time']=time(); echo $_SESSION['start_time']; -Original Message- From: Eli [mailto:[EMAIL PROTECTED] Sent: 19 September 2005 13:21 To: php-general@lists.php.net Subject: [PHP] Session creation time How can I get th

[PHP] Session creation time

2005-09-19 Thread Eli
How can I get the first creation time of a session (the time a session was first started)? -thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Jasper Bryant-Greene
Stephen Leaf wrote: On Monday 19 September 2005 05:27 am, Jasper Bryant-Greene wrote: Ken Tozier wrote: I don't see any obvious DOM method for including scripts or css links like "". Do you have to put them in some other type of node like a processing instruction or a comment?

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Stephen Leaf
On Monday 19 September 2005 05:27 am, Jasper Bryant-Greene wrote: > Ken Tozier wrote: > > I don't see any obvious DOM method for including scripts or css links > > like "". Do you have > > to put them in some other type of node like a processing instruction or > > a comment? > > $dom = new

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Jasper Bryant-Greene
Ken Tozier wrote: I don't see any obvious DOM method for including scripts or css links like "

[PHP] can not re-use a object

2005-09-19 Thread [EMAIL PROTECTED]
Hi! Sorry about the bad english :-[ I try to re-use an object that manage the mysql connections (it is code from sugarcrm) $db = new PearDatabase(); $var = "'" . $user_id ."'"; $pregunta = "SELECT user_name FROM users WHERE id = $var"; $resultado = $db->query($pregunta, true, "Error filling in use

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Ken Tozier
Next question: I don't see any obvious DOM method for including scripts or css links like "

Re: [PHP] Re: Using DOM object, how?

2005-09-19 Thread Ken Tozier
The first line of that page - " The DOM extension is the replacement for the DOM XML extension from PHP 4." makes me suspect that it may be a PHP 5 feature, and sure enough, a look in the changelog confirms this. php.net/ChangeLog-5.php#5.0.0b1 So if you are using php < 5.0, that would explain

Re: [PHP] HEADER + target?

2005-09-19 Thread Jasper Bryant-Greene
Gustav Wiberg wrote: I wasn't clear enough.. hm.. I meant that lets say, I have two frames = leftFrame and rightFrame. I'm in leftFrame and want to redirect to a page called fire.php in the rightFrame. If I use HEADER("Location: fire.phg"); then the current frame will be updated (leftFrame),

Re: [PHP] HEADER + target?

2005-09-19 Thread Gustav Wiberg
- Original Message - From: "Jasper Bryant-Greene" <[EMAIL PROTECTED]> To: "PHP General" Sent: Monday, September 19, 2005 10:31 AM Subject: Re: [PHP] HEADER + target? Gustav Wiberg wrote: I think this question has been on the list before, but I can't find it. I want to do like this:

[PHP] Re: Using DOM object, how?

2005-09-19 Thread David Robley
Ken Tozier wrote: > I was looking at the PHP DOM documentation here "http://www.php.net/ > manual/en/ref.dom.php" (which is rather sparse in the way of > examples) and can't even get to square one. > > Here's an example from the php site: > > $doc = DOMDocument::loadXML(''); > echo $doc->saveXM

Re: [PHP] HEADER + target?

2005-09-19 Thread Jasper Bryant-Greene
Gustav Wiberg wrote: I think this question has been on the list before, but I can't find it. I want to do like this: parent.mainFrame.location = 'fire.php'; ...but in PHP with the HEADER() - function... Not that hard to find... http://php.net/header header('Location: http://www.example.co

[PHP] HEADER + target?

2005-09-19 Thread Gustav Wiberg
Hi there! I think this question has been on the list before, but I can't find it. I want to do like this: parent.mainFrame.location = 'fire.php'; ...but in PHP with the HEADER() - function... I do I achieve that? /G http://www.varupiraten.se/ -- PHP General Mailing List (http://www.php

Re: [PHP] Re: Javscript embedding problem

2005-09-19 Thread Satyam
It might be a timing problem. It might take longer to load the file containing the code so that when the inline code is found and executed, the called function is not present. Notice that all the downloads of the bits and pieces of an HTML page proceed asynchronously and not sequentially. Yo

[PHP] Using DOM object, how?

2005-09-19 Thread Ken Tozier
I was looking at the PHP DOM documentation here "http://www.php.net/ manual/en/ref.dom.php" (which is rather sparse in the way of examples) and can't even get to square one. Here's an example from the php site: '); echo $doc->saveXML(); $doc = new DOMDocument(); $doc->loadXML(''); echo $doc-

[PHP] Re: [php]: monthly statistics

2005-09-19 Thread David Robley
John Taylor-Johnston wrote: > How will I draw a graph height=$mydate->number_of_hits_per_day>? Anything in the manual to look > at? http://www.mysql.com/search/?q=YEARMONTH&charset=utf-8 > http://ca3.php.net/manual-lookup.php?pattern=YEARMONTH jpgraph is an application often recommended in this