[PHP] mod rewrite urls

2004-08-12 Thread Maris
Hi, struggling with the following: I have an URL www.mycompany.com/index.php?id=10a=1b=2c=3 What I want to do is using mod_rewrite have www.mycompany.com/10/?a=1b=2c=3 Have tried the following rewrite rules in .htaccess RewriteEngine on RewriteCond%{REQUEST_FILENAME} !-d RewriteCond

RE: [PHP] mod rewrite urls

2004-08-12 Thread Ed Lazor
It might be easier to do something like Files view ForceType application/x-httpd-php /Files Then you could have your url http://mycompany.com/view/10/?a=1b=2c=3 You can do the same thing with / but the scope ends up pretty big and creates a lot of extra unnecessary processing. -Ed

[PHP] php+iptables

2004-08-12 Thread Joel n.solanki
Dear all Gurus, I have read little manul from www.php.net I want to create web based firewall with php+iptables . Can any one give me some documentation or guides or Examples ??I am using redhat linux ..all things are installed. I have little understood that i need to use shell_exec and exec to

[PHP] apache htaccess mod rewrite with php querystring urls

2004-08-12 Thread raisinlove
Hi, I realize this isnt specificaly related to php, but most php developers are familiar with this. My website uses an index.php file to load all content with a template, using urls like so: http://www.foo.com/index.php?page=splash.html In the same directory, there is a file called

RE: [PHP] RE: MySQL PHP Examples Training Providers Required

2004-08-12 Thread Jay Blanchard
[snip] On Wed, 11 Aug 2004 18:20:23 -0400, Lukasz Karapuda [EMAIL PROTECTED] wrote: Why I chose to reply to your email is because PHP is not usually used for the development of more complex functionality like the Web site module that we have developed. I beg to differ. Many large and complex

RE: [PHP] mod rewrite urls

2004-08-12 Thread Jay Blanchard
[snip] struggling with the following: I have an URL www.mycompany.com/index.php?id=10a=1b=2c=3 What I want to do is using mod_rewrite have www.mycompany.com/10/?a=1b=2c=3 Have tried the following rewrite rules in .htaccess RewriteEngine on RewriteCond%{REQUEST_FILENAME} !-d RewriteCond

[PHP] Re: apache htaccess mod rewrite with php querystring urls

2004-08-12 Thread Fabrice Lezoray
Raisinlove a écrit : Hi, I realize this isnt specificaly related to php, but most php hi developers are familiar with this. My website uses an index.php file to load all content with a template, using urls like so: http://www.foo.com/index.php?page=splash.html In the same directory, there is a

RE: [PHP] apache htaccess mod rewrite with php querystring urls

2004-08-12 Thread Jay Blanchard
[snip] My website uses an index.php file to load all content with a template, using urls like so: http://www.foo.com/index.php?page=splash.html In the same directory, there is a file called splash.html, but what I would like to do is that if the source file is called, the php file would load

Re: [PHP] apache htaccess mod rewrite with php querystring urls

2004-08-12 Thread raisinlove
A simple redirection using meta refresh in the html file would work meta http-equiv=refresh content=1;url=http://www.foo.com/index.php?page=splash.html; This isn't what I want since (I should probably have specified) the html files contain no headers. The header is generated by the php file.

[PHP] Help SQLServer connection: What's server_name??

2004-08-12 Thread Fernando Verdu Castillo
Hi all, that's my first question here, I'm not subscribed. I'm tring to connect a local DB (Apache+sqlserver2K), but when I execute this simple example: ?php $conectID = mssql_connect(,SA,); mssql_select_db(Northwind); $result=mssql_query(select * from products,$numero ); while

RE: [PHP] Help SQLServer connection: What's server_name??

2004-08-12 Thread Jay Blanchard
[snip] Hi all, that's my first question here, I'm not subscribed. I'm tring to connect a local DB (Apache+sqlserver2K), but when I execute this simple example: ?php $conectID = mssql_connect(,SA,); mssql_select_db(Northwind); $result=mssql_query(select * from products,$numero ); while

[PHP] Re: apache htaccess mod rewrite with php querystring urls

2004-08-12 Thread raisinlove
[A-Za-z0-9] will only match one character. Try this : RewriteEngine on RewriteRule [A-Za-z0-9]+\.html$ /index.php?page=$1 Ah, good point there. Thanks. However, I'm still experiencing problems displaying any page contained within the folder which holds this htaccess file. I get a 403 Forbidden

[PHP] Changing MySQL Date Format

2004-08-12 Thread Harlequin
I'm using a hell of a lot of dates in my databases and wondered if it was possible to change the date format in my databases from -00-00 to: 00-00-...? Has anyone else managed to do this or use any workarounds I could use perhaps...? I'm just getting a little hacked of having to explode

[PHP] Re: apache htaccess mod rewrite with php querystring urls

2004-08-12 Thread Peter Brodersen
On Thu, 12 Aug 2004 14:19:07 +0200, in php.general you wrote: [A-Za-z0-9] will only match one character. Try this : RewriteEngine on RewriteRule [A-Za-z0-9]+\.html$ /index.php?page=$1 $1 would be a backreference, but there are no capturing parenthesis. RewriteRule ([A-Za-z0-9]+\.html)$

RE: [PHP] Changing MySQL Date Format

2004-08-12 Thread Jay Blanchard
[snip] I'm using a hell of a lot of dates in my databases and wondered if it was possible to change the date format in my databases from -00-00 to: 00-00-...? Has anyone else managed to do this or use any workarounds I could use perhaps...? I'm just getting a little hacked of having to

Re: [PHP] Changing MySQL Date Format

2004-08-12 Thread Stephan Fiedler
Hi Harlequin, Harlequin wrote: [...] I'm just getting a little hacked of having to explode the damn things every time I use them. You EXPLODE them?? When you want it human readable why not simply preg_replace(/(\d{4})-(\d{2})-(\d{2})/, $3-$2-$1 [*], $input); it? or preg_replace it to something

Re: [PHP] Changing MySQL Date Format

2004-08-12 Thread Brent Clements
Why not just write a simple function in php to change your date around for you? A function in a utility class perhaps? -Brent - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Harlequin [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 12, 2004 7:39 AM Subject:

Re: [PHP] Changing MySQL Date Format

2004-08-12 Thread John Holmes
Stephan Fiedler wrote: Hi Harlequin, Harlequin wrote: [...] I'm just getting a little hacked of having to explode the damn things every time I use them. You EXPLODE them?? When you want it human readable why not simply preg_replace(/(\d{4})-(\d{2})-(\d{2})/, $3-$2-$1 [*], $input); it? or

[PHP] Re: Changing MySQL Date Format

2004-08-12 Thread David Robley
On Thu, 12 Aug 2004 20:06, Harlequin wrote: I'm using a hell of a lot of dates in my databases and wondered if it was possible to change the date format in my databases from -00-00 to: 00-00-...? Has anyone else managed to do this or use any workarounds I could use perhaps...?

[PHP] timestamp according to timezone?

2004-08-12 Thread Justin French
Hi, How can I get a unix timestamp of the current timezone, rather than GMT as supplied by time()? --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php+iptables

2004-08-12 Thread raditha dissanayake
Joel n.solanki wrote: Dear all Gurus, I have read little manul from www.php.net I want to create web based firewall with php+iptables . Can any one give me some documentation or guides or Examples ??I am using redhat linux You are really getting into the deep end if you are starting off with

[PHP] 1.4 second lag before page loads

2004-08-12 Thread Adrian Teasdale
Hi there On one site we have a 1.4 second delay before a page loads. We've added mod_gzip and mmCache to the server. Mod_gzip has definitely helped with the speed of page loading, but this 1.4 second delay is still there. The browser hits the page, then there is a delay on 1.4 seconds before

[PHP] 1.4 second lag before page loads

2004-08-12 Thread Adrian Teasdale
Hi there On one site we have a 1.4 second delay before a page loads. We've added mod_gzip and mmCache to the server. Mod_gzip has definitely helped with the speed of page loading, but this 1.4 second delay is still there. The browser hits the page, then there is a delay on 1.4 seconds before

Re: [PHP] mod rewrite urls

2004-08-12 Thread raditha dissanayake
Jay Blanchard wrote: 2. I just almost cannot bring myself to say it, but this relates to PHP how? oh boy, you are going to get a heap of hate mail for saying that. -- Raditha Dissanayake. http://www.radinks.com/sftp/

Re: [PHP] HOWTO run PHP4 and PHP5 on Apache/Linux

2004-08-12 Thread AJL
On Sun, Aug 08, 2004 at 03:29:18PM -0500, AJL wrote: On Tue, Aug 03, 2004 at 10:04:11PM -0500, AJL wrote: I ran into so many problems trying to set this up that I thought I'd post my notes to hopefully save others some trouble. I found most of the information I needed at:

RE: [PHP] timestamp according to timezone?

2004-08-12 Thread Ford, Mike [LSS]
On 12 August 2004 14:07, Justin French wrote: Hi, How can I get a unix timestamp of the current timezone, rather than GMT as supplied by time()? Sorry, but this question makes no sense to me. A timestamp is absolute and is always in GMT, taking no account of timezones -- that's just the way

Re: [PHP] problem with mysql_fetch_array

2004-08-12 Thread Deepak Dhake
$query4 = mysql_query(SELECT result FROM TBL_result WHERE survey_no=2; while($row2 = mysql_fetch_array($query4)) { //print array } this will print whole array. i just want to print a row at a time and it should be in the loop because i am printing other things as well. can you tell me how to

Re: [PHP] timestamp according to timezone?

2004-08-12 Thread Jason Wong
On Thursday 12 August 2004 21:06, Justin French wrote: How can I get a unix timestamp of the current timezone, rather than GMT as supplied by time()? What are you trying to solve? The unix timestamp is based off GMT (UTC). All calculations involving such timestamps will be assuming GMT. Thus

Re: [PHP] problem with mysql_fetch_array

2004-08-12 Thread Jason Wong
On Thursday 12 August 2004 21:20, Deepak Dhake wrote: $query4 = mysql_query(SELECT result FROM TBL_result WHERE survey_no=2; while($row2 = mysql_fetch_array($query4)) { //print array } this will print whole array. i just want to print a row at a time and it should be in the loop because i

Re: [PHP] mod rewrite urls

2004-08-12 Thread John Nichel
Jay Blanchard wrote: snip a. Have you sent this to an Apache list? 2. I just almost cannot bring myself to say it, but this relates to PHP how? Didn't you get the memo? To be PC, we now have to answer all questions releated to php or not. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675

Re: [PHP] Netegrity's siteminder + PHP + Apache

2004-08-12 Thread Sam Evans
Saqib, We have been able to get Siteminder v5.X to work on Apache 2.0.50 with PHP 5.0.0.. There really wasn't too much hassling with it, but we did have to get the Siteminder 5.X hotfix for Linux though. Let me know what kind of trouble you are running into, and I'll try to help you out. -Sam

[PHP] Help Loading MySQL Extension with PHP5/Apache1.3

2004-08-12 Thread John Holmes
Okay... I've done this before but can't get it working now. I've got PHP5 working correctly, but I'm trying to load the MySQL php_mysql.dll file. I'm using Apache 1.3 on Windows XP. No matter what I use for extension_dir in php.ini, it can't seem to find the file. An error dialog will pop up

Re: [PHP] mod rewrite urls

2004-08-12 Thread Jason Wong
On Thursday 12 August 2004 21:37, John Nichel wrote: Jay Blanchard wrote: snip a. Have you sent this to an Apache list? 2. I just almost cannot bring myself to say it, but this relates to PHP how? Didn't you get the memo? To be PC, we now have to answer all questions releated to php

Re: [PHP] Help Loading MySQL Extension with PHP5/Apache1.3

2004-08-12 Thread John Holmes
John Holmes wrote: Okay... I've done this before but can't get it working now. I've got PHP5 working correctly, but I'm trying to load the MySQL php_mysql.dll file. I'm using Apache 1.3 on Windows XP. Nevermind... (^((*(*^%%$^% libmysql.dll [EMAIL PROTECTED]@#(## !!! windows #*[EMAIL

Re: [PHP] Help Loading MySQL Extension with PHP5/Apache1.3

2004-08-12 Thread Neil Freeman
John Holmes wrote: *** This Email Has Been Virus Swept *** Okay... I've done this before but can't get it working now. I've got PHP5 working correctly, but I'm trying to load the MySQL php_mysql.dll file. I'm

[PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread raditha dissanayake
I vote this list be renamed as php-general-apache-mysql-imap-iis discussion list. all those not in favour please flame. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and

[PHP] XML session

2004-08-12 Thread Miguel Manso
Hi. I'm trying to create a session support where i can keep persistent objects. I'm using XML to structure the data in the session file. But i've come into a problem. When i execute the following code the (--) marked instruction simply breaks the function execution: $sess =

Re: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread Jason Wong
On Thursday 12 August 2004 22:11, raditha dissanayake wrote: I vote this list be renamed as php-general-apache-mysql-imap-iis discussion list. all those not in favour please flame. Heh, just drop the php and call it the general list :) Shorter and more to the point. -- Jason Wong -

Re: [PHP] timestamp according to timezone?

2004-08-12 Thread Justin French
On 12/08/2004, at 11:26 PM, Jason Wong wrote: On Thursday 12 August 2004 21:06, Justin French wrote: How can I get a unix timestamp of the current timezone, rather than GMT as supplied by time()? What are you trying to solve? The unix timestamp is based off GMT (UTC). All calculations involving

RE: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread Jay Blanchard
[snip] php-general-apache-mysql-imap-iis discussion list. all those not in favour please flame. Heh, just drop the php and call it the general list :) Shorter and more to the point. [/snip] And then we can answer questions on dating, sex, marriage, religion, and politics! Wooohoo! We now

[PHP] The Y2038 bug

2004-08-12 Thread Justin French
Hi all, Is anyone giving much thought to the Y2038 bug/issue in relation to Unix Timestamps? From what I read, they have a range of 1970-2038 (or earlier than 1970 on *nix). The reason I ask is because I always store my dates in timestamps, and I don't really want to be responsible for any

Re: [PHP] timestamp according to timezone?

2004-08-12 Thread Jason Wong
On Thursday 12 August 2004 22:11, Justin French wrote: You're absolutely right, it doesn't make sense, and even though it was less than an hour ago, I can't really remember how I decided I needed such a thing. It's part of an endless loop of confusion I currently have with timezones for a

Re: [PHP] mod rewrite urls

2004-08-12 Thread John Nichel
Jason Wong wrote: On Thursday 12 August 2004 21:37, John Nichel wrote: Jay Blanchard wrote: snip a. Have you sent this to an Apache list? 2. I just almost cannot bring myself to say it, but this relates to PHP how? Didn't you get the memo? To be PC, we now have to answer all questions releated to

Re: [PHP] The Y2038 bug

2004-08-12 Thread Peter Risdon
Justin French wrote: Hi all, Is anyone giving much thought to the Y2038 bug/issue in relation to Unix Timestamps? From what I read, they have a range of 1970-2038 (or earlier than 1970 on *nix). Either you or I misunderstand this issue... There's this limit because the start point is Jan 1 1970

[PHP] PHP 4.3.8 Session Handling w/ JavaScript

2004-08-12 Thread James E Hicks III
On a server that is running PHP 4.3.6 I can use a link like this and the accompanying javascript to get a popup window in my application. After upgrading to PHP version 4.3.8 this no longer works. For some reason when you click on this link now, it looks like it creates a new session which of

[PHP] A function in PHP that changes html in a string from p align=center to p align=center ?

2004-08-12 Thread SED
Is there any function in PHP that changes html in a string from p align=center to p align=center ? (e.g. adding the double quotes) Regards, Sumarlidi Einar Dadason SED DESIGN _ Email: [EMAIL PROTECTED] Website: http://www.sed.is -- PHP General

RE: [PHP] A function in PHP that changes html in a string from p align=center to p align=center ?

2004-08-12 Thread Jay Blanchard
[snip] Is there any function in PHP that changes html in a string from p align=center to p align=center ? (e.g. adding the double quotes) [/snip] Nah, but you could write a function to add quotes to attributes of any tag that you would like. -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: XML session

2004-08-12 Thread Miguel Manso
Miguel Manso wrote: Hi. I'm trying to create a session support where i can keep persistent objects. I'm using XML to structure the data in the session file. But i've come into a problem. When i execute the following code the (--) marked instruction simply breaks the function execution: $sess

[PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Frédéric Hardy
Hello ! I have a problem with __sleep() and __wakeup() with php 5.0.0. if you have a class like that : class foo { private $var = 'var'; function __construct() { ... } function __sleep() { return array('var');

Re: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread Jake Stonebender
On Thu, 12 Aug 2004 09:12:41 -0500, Jay Blanchard [EMAIL PROTECTED] wrote: | And then we can answer questions on dating, sex, marriage, religion, and | politics! Wooohoo! We may just as well call it IRC then. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Frédéric Hardy
Hello ! I have a problem with __sleep() and __wakeup() with php 5.0.0. if you have a class like that : class foo { private $var = 'var'; function __construct() { ... } function __sleep() { return array('var'); } function wakeup() { } } and

Re: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread John Nichel
raditha dissanayake wrote: I vote this list be renamed as php-general-apache-mysql-imap-iis discussion list. all those not in favour please flame. We could just move this list to a Yahoo! group, then we can answer questions for any topic, and have the trolls too. ;) -- John C. Nichel ÜberGeek

[PHP] LRC (longitudinal redundancy check) and Even Parity

2004-08-12 Thread Dominic Schanen
Hello, I'm working on some code to authorize and settle directly with Vital. Some of the inspiration and code samples have come from the Perl module Business::OnlinePayment::VirtualNet. Things are working good approximately 99% of the time. However, my communication is getting Nak'd on

Re: [PHP] A function in PHP that changes html in a string from p align=center to p align=center ?

2004-08-12 Thread raditha dissanayake
SED wrote: Is there any function in PHP that changes html in a string from p align=center to p align=center ? (e.g. adding the double quotes) no but you can do so with sed. -- Raditha Dissanayake.

Re: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread Matthew Sims
raditha dissanayake wrote: I vote this list be renamed as php-general-apache-mysql-imap-iis discussion list. all those not in favour please flame. We could just move this list to a Yahoo! group, then we can answer questions for any topic, and have the trolls too. ;) -- John C. Nichel

Re: [PHP] A function in PHP that changes html in a string from p align=center to p align=center ?

2004-08-12 Thread Frédéric Hardy
str_replace('p align=center', 'p align=center', $string) However, align argument is deprecated in last version of html. Use css instead. Best regards Fred raditha dissanayake wrote: SED wrote: Is there any function in PHP that changes html in a string from p align=center to p align=center ? (e.g.

RE: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread Jay Blanchard
[snip] Wait, wait...I have it. php-general-apache-mysql-imap-iis-javascript-HTML-perl-car_repair-side_p aneling-medical_doctor-tv_repair-shoelace_tying [/snip] we-do-not-know-it-all-but-we-stayed-at-a-Holiday-Inn-Express-last-night@ lists.foo -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Escaping quotes [solution]

2004-08-12 Thread Alex Hogan
[snip] 2) By not escaping quotes in the data ... You can do it this way but you must make sure that any strings in your values array have been escaped before with [/snip] There is no quotes in the data. The data coming in is a $_POST array. $dbmssql-dbinsert($_POST, $table); However this did

Re: [PHP] php+iptables

2004-08-12 Thread Robby Russell
On Thu, 2004-08-12 at 01:31, Joel n.solanki wrote: Dear all Gurus, I have read little manul from www.php.net I want to create web based firewall with php+iptables . Can any one give me some documentation or guides or Examples ??I am using redhat linux ..all things are installed. I have

[PHP] Re: [PHP-INSTALL] Re: [PHP] Netegrity's siteminder + PHP + Apache

2004-08-12 Thread Saqib . N . Ali
Hello Sam, Thanks for the response. I don't have much documentation to work with. I very familiar with mod_LDAP + Apache + PHP, but new to Siteminder. I was wondering if you point me to some good resources on the web, or if you have some documentation, that would be helpful as well. Thanks.

Re: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread John Nichel
Jay Blanchard wrote: [snip] Wait, wait...I have it. php-general-apache-mysql-imap-iis-javascript-HTML-perl-car_repair-side_p aneling-medical_doctor-tv_repair-shoelace_tying [/snip] we-do-not-know-it-all-but-we-stayed-at-a-Holiday-Inn-Express-last-night@ lists.foo Laides and gentlemen, I think we

[PHP] Re: Changing MySQL Date Format

2004-08-12 Thread Torsten Roehr
Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using a hell of a lot of dates in my databases and wondered if it was possible to change the date format in my databases from -00-00 to: 00-00-...? This would make ordering by date impossible - do you really want

[PHP] question about file_put_contents

2004-08-12 Thread Corey Hitchcock
Hi, I'm relatively new with php but I have a question about this 'new' function. If I use file_put_contents(file.txt, whatever) then it, of course, writes whatever in the file.txt. If I later do the same thing but put a different word (say other) from whatever then it overwrites that entry in the

Re: [PHP] [discuss] Rename this list

2004-08-12 Thread John Holmes
raditha dissanayake wrote: I vote this list be renamed as php-general-apache-mysql-imap-iis discussion list. all those not in favour please flame. If I give a big donation, can I get my name in there, too??? Imagine all the people that'll want to post to a John Holmes list!!! -- ---John

Re: [PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Curt Zirzow
* Thus wrote Frdric Hardy: class foo { private $var = 'var'; ... function __sleep() { return array('var'); } } and php code like this : $myFoo = new foo(); var_dump(serialize($myFoo)); the 'var' property was not serialized because it is protected

Re: [PHP] question about file_put_contents

2004-08-12 Thread Curt Zirzow
* Thus wrote Corey Hitchcock: Hi, I'm relatively new with php but I have a question about this 'new' function. If I use file_put_contents(file.txt, whatever) then it, of course, writes whatever in the file.txt. If I later do the same thing but put a different word (say other) from whatever

Re: [PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Frédéric Hardy
I'am using php 5.0.0 release. Try this : var_dump($test); var_dump(unserialize(serialize($test))); You should obtain something like that for fist var_dump : object test string test - 'var' and for the second var_dump : object test string test - 'var' string test - null

Re: [PHP] A function in PHP that changes html in a string from p align=center to p align=center ?

2004-08-12 Thread Curt Zirzow
* Thus wrote SED: Is there any function in PHP that changes html in a string from p align=center to p align=center ? (e.g. adding the double quotes) You can use tidy to clean up html. http://php.net/tidy Curt -- First, let me assure you that this is not one of those shady pyramid schemes

[PHP] PHP 5.0 capabiity - does it support threads?

2004-08-12 Thread Don
Hi, Does anyone know if PHP 5.x supports threading or is planning to? This would be something akin to Java threads. My system would be Fedora Linux - latest build. Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] [discuss] Rename this list

2004-08-12 Thread Alex Hogan
Imagine all the people that'll want to post to a John Holmes list!!! People would be wide open for that list. Sorry.., I couldn't resist... Just had to take the low road... alex hogan * The contents of this

[PHP] string manipulation

2004-08-12 Thread Matthew Oatham
Hi I am trying to track down a method for transferring a database id such as 5 into a nice formatted order id such as ORD0005 - where the format for the order id is ORD + 5 digits made up of the database id Thanks Matt

Re: [PHP] 1.4 second lag before page loads

2004-08-12 Thread Justin Patrin
On Thu, 12 Aug 2004 14:07:52 +0100, Adrian Teasdale [EMAIL PROTECTED] wrote: Hi there On one site we have a 1.4 second delay before a page loads. We've added mod_gzip and mmCache to the server. Mod_gzip has definitely helped with the speed of page loading, but this 1.4 second delay is

RE: [PHP] [discuss] Rename this list

2004-08-12 Thread Matthew Sims
Imagine all the people that'll want to post to a John Holmes list!!! People would be wide open for that list. Sorry.., I couldn't resist... Just had to take the low road... alex hogan Damn, that was pretty good. :) -- --Matthew Sims --http://killermookie.org -- PHP General Mailing

Re: [PHP] string manipulation

2004-08-12 Thread Michal Migurski
Hi I am trying to track down a method for transferring a database id such as 5 into a nice formatted order id such as ORD0005 - where the format for the order id is ORD + 5 digits made up of the database id See documentation for sprintf(). Try something like: $formatted =

Re: [PHP] problem with mysql_fetch_array

2004-08-12 Thread Justin Patrin
On Thu, 12 Aug 2004 09:20:44 -0400, Deepak Dhake [EMAIL PROTECTED] wrote: $query4 = mysql_query(SELECT result FROM TBL_result WHERE survey_no=2; while($row2 = mysql_fetch_array($query4)) { //print array } this will print whole array. i just want to print a row at a time and it should be

Re: [PHP] 1.4 second lag before page loads

2004-08-12 Thread raditha dissanayake
Justin Patrin wrote: On Thu, 12 Aug 2004 14:07:52 +0100, Adrian Teasdale [EMAIL PROTECTED] wrote: Hi there On one site we have a 1.4 second delay before a page loads. We've added mod_gzip and mmCache to the server. Mod_gzip has definitely helped with the speed of page loading, but this 1.4

Re: [PHP] string manipulation

2004-08-12 Thread Jason Wong
On Friday 13 August 2004 01:00, Matthew Oatham wrote: Hi I am trying to track down a method for transferring a database id such as 5 into a nice formatted order id such as ORD0005 - where the format for the order id is ORD + 5 digits made up of the database id str_pad(), please RTFM before you

Re: [PHP] problem with mysql_fetch_array

2004-08-12 Thread Hannes Magnusson
On Thu, 12 Aug 2004 10:04:00 -0700 [EMAIL PROTECTED] (Justin Patrin) wrote: On Thu, 12 Aug 2004 09:20:44 -0400, Deepak Dhake [EMAIL PROTECTED] wrote: $query4 = mysql_query(SELECT result FROM TBL_result WHERE survey_no=2; while($row2 = mysql_fetch_array($query4)) { //print array }

Re: [PHP] string manipulation

2004-08-12 Thread John Nichel
Jason Wong wrote: str_pad(), please RTFM before you ask such questions. It's obvious from your subject that you know it's something to do with strings, so where better than to look at the chapter on String Functions? Browse through them, checkout the examples, it's a good way to learn. But I

[PHP] str_split()

2004-08-12 Thread Aaron Todd
I was just wondering if anyone can look an the following code and tell me if there are any obvious errors. I wrote this in DZsoft PHP editor where it works perfectly. But then when I run it on my webserver it gave me a fatal error: Fatal error: Call to undefined function: str_split() in

Re: [PHP] str_split()

2004-08-12 Thread John Nichel
Aaron Todd wrote: I was just wondering if anyone can look an the following code and tell me if there are any obvious errors. I wrote this in DZsoft PHP editor where it works perfectly. But then when I run it on my webserver it gave me a fatal error: Fatal error: Call to undefined function:

Re: [PHP] str_split()

2004-08-12 Thread Aaron Todd
I thought someone might ask me that. I honestly dont know. I have been looking for a comand that I can run to find out, but I havent found one. I have SSH access to the server so if you know of a way to get the version please let me know. Thanks, Aaron John Nichel [EMAIL PROTECTED] wrote in

Re: [PHP] str_split()

2004-08-12 Thread Aaron Todd
HAH...I found it. I have version 4.3.3 Does that version not have this function or something? Thanks, Aaron John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Aaron Todd wrote: I was just wondering if anyone can look an the following code and tell me if there are any

RE: [PHP] str_split()

2004-08-12 Thread Jay Blanchard
[snip] I thought someone might ask me that. I honestly dont know. I have been looking for a comand that I can run to find out, but I havent found one. I have SSH access to the server so if you know of a way to get the version please let me know. [/snip] make a page like this ?php phpinfo();

RE: [PHP] str_split()

2004-08-12 Thread Jay Blanchard
[snip] HAH...I found it. I have version 4.3.3 Does that version not have this function or something? [/snip] Looking at http://www.php.net/str_split I see that it is valid for PHP 5 only -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] str_split()

2004-08-12 Thread John Nichel
Aaron Todd wrote: I thought someone might ask me that. I honestly dont know. I have been looking for a comand that I can run to find out, but I havent found one. I have SSH access to the server so if you know of a way to get the version please let me know. Well, it looks like str_split() was

Re: [PHP] str_split()

2004-08-12 Thread John Nichel
Aaron Todd wrote: HAH...I found it. I have version 4.3.3 Does that version not have this function or something? Thanks, Aaron According to the manual... http://us4.php.net/str_split str_split() is a php5 function. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP

Re: [PHP] str_split()

2004-08-12 Thread Justin Patrin
On Thu, 12 Aug 2004 14:11:13 -0400, Aaron Todd [EMAIL PROTECTED] wrote: HAH...I found it. I have version 4.3.3 Does that version not have this function or something? http://us3.php.net/manual/en/function.str-split.php Look at the top. Only PHP5 is listed. Thanks, Aaron John Nichel

RE: [PHP] str_split()

2004-08-12 Thread Jay Blanchard
[snip] I thought someone might ask me that. I honestly dont know. I have been looking for a comand that I can run to find out, but I havent found one. I have SSH access to the server so if you know of a way to get the version please let me know. [/snip] From the command line type php -v It'll

Re: [PHP] str_split()

2004-08-12 Thread Aaron Todd
Do you know of a simular function that will split a string in the same way. I have phone numbers stored in a database in the format ##. I need to display the number on the page in the format ###-###-. str_split() worked perfectly for this. Is there another function? Thanks, Aaron

RE: [PHP] str_split()

2004-08-12 Thread Jay Blanchard
[snip] Do you know of a simular function that will split a string in the same way. I have phone numbers stored in a database in the format ##. I need to display the number on the page in the format ###-###-. str_split() worked perfectly for this. Is there another function? [/snip]

Re: [PHP] PHP 4.3.8 Session Handling w/ JavaScript

2004-08-12 Thread James E Hicks III
On Thursday 12 August 2004 10:32 am, James E Hicks III wrote: On a server that is running PHP 4.3.6 I can use a link like this and the Please disregard this request for help, as the problem seems to be the nut behind the wheel. James -- PHP General Mailing List (http://www.php.net/) To

[PHP] odd results with database string comparisons

2004-08-12 Thread Matthew Oatham
I have a database table with the column described as address_line_2 varchar(255) NOT NULL default '', when I do a select I want to see if there is anything in that column if there is text I will display it in a html table if there is nothing (the table default) I will write nbsp; However the

[PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Eric L. Sammons
Trying set up php-syslog-ng on my Red Hat EL 3.0 AS system. I have verified that I can in fact access mysql and that I have the necessary database and that the user, password, and host are setup correctly in db_fns.php. It seems; however, that I still receive the given error: Fatal error:

Re: [PHP] str_split()

2004-08-12 Thread - Edwin -
On Friday 13 August 2004 03:27, Aaron Todd wrote: (B Do you know of a simular function that will split a string in the (B same way. I have phone numbers stored in a database in the format (B ##. I need to display the number on the page in the format (B ###-###-. str_split()

Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread bbonkosk
The tip.. copy and paste your error code into google ;-) Do it for all errors, you'll be amazed @ how many have already been answered - Original Message - From: Eric L. Sammons [EMAIL PROTECTED] Date: Thursday, August 12, 2004 2:44 pm Subject: [PHP] Fatal error: Call to undefined

RE: [PHP] odd results with database string comparisons

2004-08-12 Thread Jay Blanchard
[snip] I have a database table with the column described as address_line_2 varchar(255) NOT NULL default '', if($row[address_line_2]==' ') // there is a space between the quotes [/snip] address_line_2 varchar(255) NOT NULL default '', --- no space between quotes so if('' ==

FWD: RE: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Eric L. Sammons
= Original Message From Eric L. Sammons [EMAIL PROTECTED] = = Original Message From Eric L. Sammons [EMAIL PROTECTED] = did this, all answers came back stating to install php-mysql package. Already have that installed. Some have stated they recompiled php, I really would like to

Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread John Nichel
Eric L. Sammons wrote: Trying set up php-syslog-ng on my Red Hat EL 3.0 AS system. I have verified that I can in fact access mysql and that I have the necessary database and that the user, password, and host are setup correctly in db_fns.php. It seems; however, that I still receive the given

RE: RE: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Jay Blanchard
[snip] did this, all answers came back stating to install php-mysql package. Already have that installed. Some have stated they recompiled php, I really would like to avoid doing that so I don't affect my Red Hat support agreements. [/snip] have you done phpinfo() to see if it really compiled?

  1   2   >