php-general Digest 11 Jun 2008 23:30:47 -0000 Issue 5509

2008-06-11 Thread php-general-digest-help
php-general Digest 11 Jun 2008 23:30:47 - Issue 5509 Topics (messages 275227 through 275239): Re: XML DOM problem with getAttribute(string) 275227 by: dominussuus.gmail.com 275228 by: Rob Richards Re: regular expression to find body text in mobile 275229 by: Richard

[PHP] printer problem with network shared printers

2008-06-11 Thread Kasun Denepitiyage
hi im using the winXp as my server OS and i want to release a printout to client local printer. so i tried to use that shred printer using php printer_open() function but i coudnt. so please provide me the best solution for this issue. i can use client side script but i need server side

Re: [PHP] Class Type Casting

2008-06-11 Thread Leurent Francois
One could ask if it would just pass to the constructor, but it doesn't. I don't know if there's a technical reason for that or if just no one implemented it, but the short answer is The language doesn't do that. That's what i was asking about, when trying to cast something into a non

[PHP] XML DOM problem with getAttribute(string)

2008-06-11 Thread Borden Rhodes
Hullo! I'm having a pig of a time trying to figure this one out: I have an XHTML document which I've loaded into a DOMDocument because I want to add more tags to it. However, since I live in a bilingual country, I want to get the document's xml:lang attribute so I know what language to add my

[PHP] Re: Build and Deployment Process

2008-06-11 Thread Colin Guthrie
VamVan wrote: Hello All, What is the best method to build and deploy php scripts along the different environments? You can talk about rpm's and stuff My specific scenario is Step1: Developer checks code in to perforce (repo) Step 2: Then I need to upgrade my integration instance. Step 3:

[PHP] regular expression to find body text in mobile

2008-06-11 Thread Yui Hiroaki
Doese any know how to find text in mobile using Regular Expression? I am using php. Regards, Yui -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: XML DOM problem with getAttribute(string)

2008-06-11 Thread Rob Richards
Borden Rhodes wrote: I'm having a pig of a time trying to figure this one out: I have an XHTML document which I've loaded into a DOMDocument because I want to add more tags to it. However, since I live in a bilingual country, I want to get the document's xml:lang attribute so I know what

Re: [PHP] Problem with output_buffering directive in cli

2008-06-11 Thread Mike Burba
Thanks for ideas, Nathan. dunno if this was a typo on your part, but shouldnt it be, ini_get(output_buffering) ? yes...was getting tired last night. but it is correct in the code. you might not be getting your settings from the ini file you think you are, or there could be another one in

[PHP] Re: XML DOM problem with getAttribute(string)

2008-06-11 Thread dominussuus
Thank you, Rob, Unfortunately, that didn't work, either (though I'll keep it in mind). The returned string is still empty. I also unsuccessfully fetched the 'xmlns' attribute using getAttribute(). Interestingly, although hasAttributes(void) returns true, hasAttribute('xmlns'), and

Re: [PHP] Problem with output_buffering directive in cli

2008-06-11 Thread Mike Burba
I think I solved this issue by using the -d option on the commandline. When I use: php -d output_buffering=On ./filename.php the local value / active value of output_buffering is correct. MKB On Wed, Jun 11, 2008 at 5:54 AM, Mike Burba [EMAIL PROTECTED] wrote: Thanks for ideas, Nathan.

[PHP] Re: XML DOM problem with getAttribute(string)

2008-06-11 Thread Rob Richards
You might want to put a link to a complete example because $page-documentElement-getAttributeNS('http://www.w3.org/XML/1998/namespace', 'lang'); is how you access it. Rob [EMAIL PROTECTED] wrote: Thank you, Rob, Unfortunately, that didn't work, either (though I'll keep it in mind). The

Re: [PHP] regular expression to find body text in mobile

2008-06-11 Thread Richard Heyes
Doese any know how to find text in mobile using Regular Expression? I am using php. Mobile what? -- Richard Heyes Employ me: http://www.phpguru.org/cv ++ | Access SSH with a Windows mapped drive | |http://www.phpguru.org/sftpdrive|

Re: [PHP] regular expression to find body text in mobile

2008-06-11 Thread Yui Hiroaki
Ooops! It it mobile mobile phone! Regards, Yui 2008/6/11 Richard Heyes [EMAIL PROTECTED]: Doese any know how to find text in mobile using Regular Expression? I am using php. Mobile what? -- Richard Heyes Employ me: http://www.phpguru.org/cv

RE: [PHP] About HTML CSS

2008-06-11 Thread Boyd, Todd M.
-Original Message- From: Alberto García Gómez [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 9:49 PM To: PHP General list Subject: [PHP] About HTML CSS Hi Fellow: I wonder if there some list about HTML/CSS/JavaScript and Genereal Web Design. Thanks STFW:

Re: [PHP] printer problem with network shared printers

2008-06-11 Thread Dan Shirah
Kasun, I would suggest using simple Javascript to allow them to print. Something like: **THE JAVASCRIPT** script language=JavaScript !-- function printWindow() { bV = parseInt(navigator.appVersion) if (bV = 4) window.print() } //-- /script **PUT THIS ANYWHERE IN YOUR FORM** table

Re: [PHP] regular expression to find body text in mobile

2008-06-11 Thread Bastien Koert
On Wed, Jun 11, 2008 at 9:43 AM, Yui Hiroaki [EMAIL PROTECTED] wrote: Ooops! It it mobile mobile phone! Regards, Yui 2008/6/11 Richard Heyes [EMAIL PROTECTED]: Doese any know how to find text in mobile using Regular Expression? I am using php. Mobile what? -- Richard Heyes

Re: [PHP] regular expression to find body text in mobile

2008-06-11 Thread Nitsan Bin-Nun
I'm confused. PHP runs on the server, so it shouldn't be a problem at all to run regex search/reaplce/match/whatever on mobile phone internet, maybe you are talking on JS regex? Nitsan On 11/06/2008, Yui Hiroaki [EMAIL PROTECTED] wrote: Doese any know how to find text in mobile using Regular

[PHP] error Failed opening for inclusion

2008-06-11 Thread Lou Baccari
sorry if I double posted: Hello, I'm trying to move my apache server from a Fedora Core 1 with PHP V 4.3.8 onto a newly built Centos 5 with PHP 5.1.6, all applications installed by rpms. The www root dir is /projects/proj2/www/html and it is a nfs mounted share. During the installation

[PHP] Forum coded in PHP with mail and news gateway

2008-06-11 Thread Michelle Konzack
Hello, because it is actual for me while having some problems with Ubuntu's LAUNCHPAD (does not support threating) I like to know, whether there is a light Forum software written in PHP availlable. It should support: 1) PostgreSQL (my own database) 2) MySQL (my

[PHP] creating zip's with php - high memory usage

2008-06-11 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am working on a script that will take a few folders, copy them to a temp location, and then create a zipfile. The problem i'm running into is that some of these zips are upwards of 300mb, and when I use exec to execute the zip function, or use

[PHP] Command-line PHP memory limit

2008-06-11 Thread Rene Fournier
Is it possible to set a unique memory limit for PHP scripts that are run from the command line? (That is, different from what's specified in php.ini.) ...Rene

Re: [PHP] Problem with output_buffering directive in cli

2008-06-11 Thread Nathan Nobbe
On Wed, Jun 11, 2008 at 4:35 AM, Mike Burba [EMAIL PROTECTED] wrote: I think I solved this issue by using the -d option on the commandline. When I use: php -d output_buffering=On ./filename.php the local value / active value of output_buffering is correct. kudos, and nice find ;) -nathan

[PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread Wei, Alice J.
Hi, I am currently using a Linux box with Fedora to run my PHP scripts, which I have seen in the download page at http://www.php.net/downloads.php that We do not distribute UNIX/Linux binaries. Most Linux distributions come with PHP these days. What I am wondering is, if I can run my

Re: [PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread DeadTOm
Do you have php-mysql installed? In ubuntu for php5 the package is php5-mysql. -Allen Wei, Alice J. wrote: Hi, I am currently using a Linux box with Fedora to run my PHP scripts, which I have seen in the download page at http://www.php.net/downloads.php that We do not distribute

RE: [PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread Wei, Alice J.
Hi, I have originally commented out all the MS SQL lines in the php.ini files so that it supports MS SQL, but that does not seem to work. MySQL? Since I am not using that to connect my PHP to, do I still need to install it? By the way, my Microsoft SQL server database is on a different

Re: [PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread Greg Maruszeczka
On Wed, 11 Jun 2008 22:03:53 -0400 Wei, Alice J. [EMAIL PROTECTED] wrote: Hi, I am currently using a Linux box with Fedora to run my PHP scripts, which I have seen in the download page at http://www.php.net/downloads.php that We do not distribute UNIX/Linux binaries. Most Linux

Re: [PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread DeadTOm
Otherwise, it consistently gives me errors Call to undefined function: mysql_connect()If you're getting an error... If you're getting this error, there is a line of code in the php script that is trying to connect to a mysql database and the mysql extension for php is not installed. So

Re: [PHP] Command-line PHP memory limit

2008-06-11 Thread Robert Cummings
On Wed, 2008-06-11 at 23:48 +0200, Rene Fournier wrote: Is it possible to set a unique memory limit for PHP scripts that are run from the command line? (That is, different from what's specified in php.ini.) In your script: ini_set( 'memory_limit', -1 ); Cheers, Rob. --

RE: [PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread Wei, Alice J.
Hi, Oops, I should have typed mssql_connect() instead of mysql_connect(). But, I have just used something like ?php echo Hello! ?, which nests around a chunk of HTML, and this only gives me the following on the screen: html headtitleHello/title body /body /html My

Re: [PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread Chris
Wei, Alice J. wrote: Hi, I am currently using a Linux box with Fedora to run my PHP scripts, which I have seen in the download page at http://www.php.net/downloads.php that We do not distribute UNIX/Linux binaries. Most Linux distributions come with PHP these days. What I am

RE: [PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread Wei, Alice J.
Hi, For testing purpose, I have something like html headtitleTest/title body pThis is test/p ?php echo Hello!; ? /body /html I see the following from the command prompt when I execute the above script: html headtitleTest/title body pThis is test/pHello

Re: [PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread DeadTOm
OK, I see now. When you open the script from your browser are you accessing it via a server like Http://localhost/some/file.php or are you just opening a php file on your hard drive? I'm guessing you're accessing it on the hard drive directly, which will not work since PHP scripts are executed

RE: [PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread Wei, Alice J.
Hi, -Original Message- From: DeadTOm [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2008 10:58 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: Re: [PHP] PHP Runs But Does Not Display on Linux OK, I see now. When you open the script from your browser are you accessing it

Re: [PHP] PHP Runs But Does Not Display on Linux

2008-06-11 Thread DeadTOm
With localhost I was assuming that the files resided on your local machine, my bad. How are you accessing these files? The location you are getting them from has to be running a web server of some kind with php or the php scripts will not run and you'll only see the html output as you

Re: [PHP] Command-line PHP memory limit

2008-06-11 Thread Per Jessen
Rene Fournier wrote: Is it possible to set a unique memory limit for PHP scripts that are run from the command line? (That is, different from what's specified in php.ini.) This might specific to openSUSE, but the typical installation comes with separate php.inis for apache and cli.