[PHP] PHP5, Windoze, Extensions

2006-09-27 Thread Dave Carrera
Hi List, Sorry to bore most of you with this one but i cannot get extensions to load using latest php5, apache 2.0xxx I have std php running and it tells me that my php.ini is being read from c:\php\php.ini. This is correct. But what ever i change extension_dir to it always says c:\php5.

[PHP] Re: Re: Re: Frustrated trying to get help from your site

2006-09-27 Thread David Robley
Michelle Konzack wrote: Am 2006-09-25 08:33:52, schrieb Ray Hauge: It's not the best in the world, but it works. http://xchm.sourceforge.net/index.html But since the documentation is online and always updated that way, I prefer to just use the website. Me too, but IF you live mobil

[PHP] Re: reading a remote directory

2006-09-27 Thread Kae Verens
Jay Blanchard wrote: I have to read a directory (on a windows machine) from another box (a linux machine) and I thought that I could set the handle to the IP address of the windows box, but that does not work. Do I have to open a socket or is there another way? the directory must be explicitly

Re: [PHP] PHP5, Windoze, Extensions

2006-09-27 Thread Dave Carrera
Thanks for that George, I managed to isolate the problem PEAR had slapped its own include_path at the bottom of my php.ini, removing it cleared up the extension_dir problem. BUT now if i use the include_path var the extension_dir fails and phpinfo displays my php.ini from include_path

[PHP] Best open source project/framework to support a php training course?

2006-09-27 Thread Pinocchio007
I am in charge of outlining a PHP/mySQL course (intro and advanced) for an education institute. I would like to include in the course program an in-depth study of an existing open-source project, allowing the students to be confronted, from an early stage, to a real-world environment. My problem

Re: [PHP] PHP5, Windoze, Extensions

2006-09-27 Thread Dave Carrera
Hi George, That worked :-) Many thanks for setting me on the straight and narrow. Dave George Pitcher wrote: Dave, Why not put your ext path into your include path : include_path = c:\php\pear;c:\php;c:\php\ext That might solve the problem. Just a bit of lateral thinking. George

[PHP] Re: Best open source project/framework to support a php training course?

2006-09-27 Thread Tony Marston
If you want a web application framework that your students can play with may I suggest http://www.radicore.org This is already being used as a training aid by a university in the far east, so it must have some merit. -- Tony Marston http://www.tonymarston.net http://www.radicore.org

[PHP] Re: Best open source project/framework to support a php training course?

2006-09-27 Thread Pinocchio007
Thanks. Is any open source project using your framework? I couldn't find this information on your website. Tony Marston [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If you want a web application framework that your students can play with may I suggest http://www.radicore.org

Re: [PHP] People who bought this also bought (amazon style) functionality...logic problem

2006-09-27 Thread Ryan A
Warning, this email's a bit long You have a User table and a Product table, then a linking table that joins users with products that they have bought. Hey David,Curt,Richard! Thanks for replying. Looks like I will really have to brush up on my Sql, been using lazy sql for a

[PHP] RE: Print or Echo takes lots of time

2006-09-27 Thread Sancar Saran
Hi, Thanks for supporting, because of the approaching to the problem, I don't want to change generate once echo once style. And I found solution like this, I split  variable into an array and generate loop for printing, mostly fix the problem. And more interesting, some times problem

[PHP] Various errors being generated from an apache/php combo

2006-09-27 Thread Steve Walker
Hi there, I have a number of errors coming from our dedicated box and was hoping someone could shed some light on what might be happening. These errors could be independent or inter-related. We see the errors when running content management systems on the server, I posted to their forum

[PHP] Re: Various errors being generated from an apache/php combo

2006-09-27 Thread Kae Verens
Steve Walker wrote: [client 80.58.205.38] PHP Fatal error: Call to undefined function: cleanupbynode() in /var/www/vhosts/demos.oneworldmarket.co.uk/httpdocs/gems/kernel/classes/ezco ntentobjecttreenode.php on line 2684 could be that the function cleanupbynode() is defined in the wrong place

[PHP] hotel reservation system.

2006-09-27 Thread Faisal Sahar
hi to everyone, i want to create a hotel reservation system. how can i keep track of dates . suppose i have booked a room from 12/10/2006 till 14/10/2006 ( two night ) how can i make a system that will check for room availability and if it will find a room available from specified date

Re: [PHP] hotel reservation system.

2006-09-27 Thread Jochem Maas
Faisal Sahar wrote: hi to everyone, i want to create a hotel reservation system. how can i keep track of dates . suppose i have booked a room from 12/10/2006 till 14/10/2006 ( two night ) how can i make a system that will check for room availability and if it will find a room

Re: [PHP] Re: Best open source project/framework to support a php training course?

2006-09-27 Thread Miles Thompson
At 07:02 AM 9/27/2006, Tony Marston wrote: If you want a web application framework that your students can play with may I suggest http://www.radicore.org This is already being used as a training aid by a university in the far east, so it must have some merit. -- Tony Marston

[PHP] Stored procs and transactions using Linux/PHP and Windows/MSSQL

2006-09-27 Thread Rick Emery
Is anyone using PHP5 on Linux to connect to MS SQL Server 2000 on Windows and execute stored procedures with output parameters within a transaction? If so, how? I'm trying to do something like this in the PHP application: begin transaction execute a stored procedure, receiving an identity

Re: [PHP] hotel reservation system.

2006-09-27 Thread Sancar Saran
On Wednesday 27 September 2006 15:16, Faisal Sahar wrote: hi to everyone, i want to create a hotel reservation system. how can i keep track of dates . suppose i have booked a room from 12/10/2006 till 14/10/2006 ( two night ) how can i make a system that will check for room availability

RE: [PHP] Re: Various errors being generated from an apache/php combo

2006-09-27 Thread Steve Walker
Thanks Kae and Rick for your replies. One of things I should have mentioned is that all these sites have been migrated from another box on which they were working fine, which is why I've been questioning the box itself rather than the cms's. Kind regards, Steve. -Original Message-

[PHP] FDF PDF - Content-type: application/vnd.fdf

2006-09-27 Thread Sam Smith
When loaded into a browser that can display PDF files (Win IE and Firefox, Mac Safari) the FDF file (snip below) should open linked PDF and populated it with the data from the FDF file. It works fine when the FDF file is loaded from within the browser with Open File (or simply

Re: [PHP] Display dynamic progress bar

2006-09-27 Thread tedd
At 9:00 AM +1000 9/27/06, Choy, Wai Yew wrote: Like to get some advice from you guys... I've a html form page and the Action is link to a php script to process the form dataI would like to have a progress bar once the user hit the Submit button...The php script take quite sometime to

Re: [PHP] Display dynamic progress bar

2006-09-27 Thread clive
tedd wrote: At 9:00 AM +1000 9/27/06, Choy, Wai Yew wrote: Like to get some advice from you guys... I've a html form page and the Action is link to a php script to process the form dataI would like to have a progress bar once the user hit the Submit button...The php script take quite

Re: [PHP] Display dynamic progress bar

2006-09-27 Thread clive
clive wrote: tedd wrote: At 9:00 AM +1000 9/27/06, Choy, Wai Yew wrote: Like to get some advice from you guys... I've a html form page and the Action is link to a php script to process the form dataI would like to have a progress bar once the user hit the Submit button...The php script

Re: [PHP] Display dynamic progress bar

2006-09-27 Thread tedd
At 4:37 PM +0200 9/27/06, clive wrote: tedd wrote: At 9:00 AM +1000 9/27/06, Choy, Wai Yew wrote: Like to get some advice from you guys... I've a html form page and the Action is link to a php script to process the form dataI would like to have a progress bar once the user hit the Submit

Re: [PHP] Display dynamic progress bar

2006-09-27 Thread Paul Scott
On Wed, 2006-09-27 at 16:42 +0200, clive wrote: No can do from php. You'll need javascript to do that. sorry slight typo, corrected. well actually you can , firstly you have some element you can update like a text box and then use javascript to update this text box. what you then do is

Re: [PHP] File Upload Security and chmod

2006-09-27 Thread tedd
At 6:43 PM -0500 9/26/06, Richard Lynch wrote: On Mon, September 25, 2006 3:58 pm, Andy Hultgren wrote: -- Since I'm only allowing image uploads, I can strictly filter which files are allowed to be uploaded (with extension checks and get_image_size). Extension check is kinda useless... I

Re: [PHP] Display dynamic progress bar

2006-09-27 Thread tedd
At 5:04 PM +0200 9/27/06, Paul Scott wrote: On Wed, 2006-09-27 at 16:42 +0200, clive wrote: No can do from php. You'll need javascript to do that. sorry slight typo, corrected. well actually you can , firstly you have some element you can update like a text box and then use javascript to

RE: [PHP] Re: Various errors being generated from an apache/php combo

2006-09-27 Thread Steve Walker
Cheers Rick. Well, I tested with a fresh install of a tried and tested cms. We can recreate the errors on that as well, so it may not be the migrated systems fault. Just to add more confusion, the errors are intermittent - sometimes it works fine, other times we get these errors which makes it

Re: [PHP] Re: Various errors being generated from an apache/php combo

2006-09-27 Thread Jochem Maas
Steve Walker wrote: Cheers Rick. Well, I tested with a fresh install of a tried and tested cms. We can recreate the errors on that as well, so it may not be the migrated systems fault. Just to add more confusion, the errors are intermittent - sometimes it works fine, other times we get

RE: [PHP] Re: Various errors being generated from an apache/php combo

2006-09-27 Thread Steve Walker
are you using an opcode cache? Yes, we have eaccelerator running. Steve. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 15:28 To: Steve Walker Subject: RE: [PHP] Re: Various errors being generated from an

RE: [PHP] Re: Various errors being generated from an apache/php combo

2006-09-27 Thread Steve Walker
Thanks Jochem. We tested with both modules switched off and it made no difference. I was suspicious about mod_security, but again it doesn't seem to causing the problem. Steve. -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 17:31

Re: [PHP] Best open source project/framework to support a php training course?

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 4:25 am, Pinocchio007 wrote: is simple: which project/framework to choose in order to bring the current best practice to our students, and prepare them for the future. Not being a professional PHP developer myself, I would appreciate any recommendation. Which OS

Re: [PHP] Print or Echo takes lots of time

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 3:37 am, Sancar Saran wrote: Thanks for supporting, because of approaching the problem I don't want to change generate once echo one style. And I found solution like this, I split variable into an array and generate loop for printing, mostly fix the problem.

[PHP] Java Script

2006-09-27 Thread Jo�o C�ndido de Souza Neto
Hi everyone. Excuse me by this off topic. Someone here know any list abaout javascript using nntp protocol? Thanks a lot. -- João Cândido de Souza Neto Curitiba Online [EMAIL PROTECTED] (41) 3324-2294 (41) 9985-6894 http://www.curitibaonline.com.br -- PHP General Mailing List

Re: [PHP] PHP5, Windoze, Extensions

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 2:03 am, Dave Carrera wrote: I have std php running and it tells me that my php.ini is being read from c:\php\php.ini. This is correct. Tells you where/how? In phpinfo()?... But what ever i change extension_dir to it always says c:\php5. By the way i am using

Re: [PHP] File Upload Security and chmod

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 10:11 am, tedd wrote: So when you read advice to use 0777 you can immediately change that to 0700, because the only access needed is for you, not your group, and not the world of other users on that machine. Excellent point -- thanks. This applies only to Andy -- or

Re: [PHP] Stored procs and transactions using Linux/PHP and Windows/MSSQL

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 7:40 am, Rick Emery wrote: Is anyone using PHP5 on Linux to connect to MS SQL Server 2000 on Windows and execute stored procedures with output parameters within a transaction? If so, how? No, but... I'm trying to do something like this in the PHP application:

Re: [PHP] FDF PDF - Content-type: application/vnd.fdf

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 9:00 am, Sam Smith wrote: When loaded into a browser that can display PDF files (Win IE and Firefox, Mac Safari) the FDF file (snip below) should open linked PDF and populated it with the data from the FDF file. It works fine when the FDF file is loaded from within

[PHP] Displaying MySQL results on runtime

2006-09-27 Thread Mário Gamito
Hi, I have this code to create a database and a few tables. Is there a way to display the MySQL actions at runtime, i. e., display the MySQL commands while they are being executed ? Any help would be appreciated. Warm Regards, Mário Gamito -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: hotel reservations

2006-09-27 Thread Richard Lynch
SMTP server errors and a too-quick click made me close the message I sent with all the nifty thread-ness... sorry. //make reservation insert into reservation(room_number, start_date, end_date) values ('504', '12/10/2006', '14/10/2006') //reservation inquiry for 13/10/2006: select room_number

Re: [PHP] Displaying MySQL results on runtime

2006-09-27 Thread Leif Gregory
Hello Mário, Wednesday, September 27, 2006, 10:25:31 AM, you wrote: Is there a way to display the MySQL actions at runtime, i. e., display the MySQL commands while they are being executed ? Echo the sql statements... -- TBUDL/BETA/DEV/TECH Lists Moderator / PGP

[PHP] strange errors from command line vs. web

2006-09-27 Thread blackwater dev
I have some code that makes a connection to the db. When I run this code from the command line, it stops at the db connection. If I call the script from the browser, it works fine. I've changed the permissions and that didn't work. The db connection is the basic, localhost, root, with no

Re: [PHP] Stored procs and transactions using Linux/PHP and Windows/MSSQL

2006-09-27 Thread Rick Emery
Quoting Richard Lynch [EMAIL PROTECTED]: On Wed, September 27, 2006 7:40 am, Rick Emery wrote: I'm trying to do something like this in the PHP application: begin transaction execute a stored procedure, receiving an identity back if certain conditions are met execute another stored

Re: [PHP] File Upload Security and chmod

2006-09-27 Thread Andy Hultgren
So I've been trying to figure out where php uploads files to temporarily store them before I move them to their permanent storage directory, and I'm having some difficulties: -- php_info() says the temporary file upload directory is /tmp but I don't know if that's relative to my root directory

Re: [PHP] strange errors from command line vs. web

2006-09-27 Thread travis
I have some code that makes a connection to the db. When I run this code from the command line, it stops at the db connection. If I call the script from the browser, it works fine. I've changed the permissions and that didn't work. The db connection is the basic, localhost, root, with no

[PHP] LAMP benchmarking tool

2006-09-27 Thread Joseph Cheng
Is anyone using a reliable Linux/Apache/MySQL/PHP benchmarking suite? There are benchmark software for individual pieces but I hope there is one tool or several small tools that act together to give a picture of how long a request takes from entering Apache, to PHP, to MySQL and then back to the

[PHP] I can see my php code in browser?

2006-09-27 Thread afan
hi, I just installed suse se9 on one machine and didn't have a problem. then installed apache and works fine. installed php - didn't get any error, but when tested I was able to see my code (tested with ?php phpinfo(); ?) in the browser. for installation used yast. what could cause this? tanks

Re: [PHP] I can see my php code in browser?

2006-09-27 Thread Robert Cummings
On Wed, 2006-09-27 at 21:45 +0200, [EMAIL PROTECTED] wrote: hi, I just installed suse se9 on one machine and didn't have a problem. then installed apache and works fine. installed php - didn't get any error, but when tested I was able to see my code (tested with ?php phpinfo(); ?) in the

Re: [PHP] I can see my php code in browser?

2006-09-27 Thread afan
Sorry for not posting this: yes, I use apache 2, php 4.3.4 (old a bit :)). I didn't configure manuelly. Thinking yast has to do itself. At least did it on pc at home?!? I assume you are using Apache?! Did you configure Apache to handle PHP files appropriately? What is the extension of your

Re: [PHP] LAMP benchmarking tool

2006-09-27 Thread Rasmus Lerdorf
Joseph Cheng wrote: Is anyone using a reliable Linux/Apache/MySQL/PHP benchmarking suite? There are benchmark software for individual pieces but I hope there is one tool or several small tools that act together to give a picture of how long a request takes from entering Apache, to PHP, to MySQL

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-27 Thread Christopher Weldon
Richard Lynch wrote: On Mon, September 25, 2006 3:57 pm, Christopher Weldon wrote: On 2:36 pm 09/25/06 Ramiro Cavalcanti [EMAIL PROTECTED] wrote: Hi Christopher, at first, thank you for your answer. I'd like to know if it's possible use this when php is running like cgi (php-suexec). I've

Re: [PHP] I can see my php code in browser?

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 2:53 pm, Robert Cummings wrote: On Wed, 2006-09-27 at 21:45 +0200, [EMAIL PROTECTED] wrote: hi, I just installed suse se9 on one machine and didn't have a problem. then installed apache and works fine. installed php - didn't get any error, but when tested I was

Re: [PHP] File Upload Security and chmod

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 12:12 pm, Andy Hultgren wrote: So I've been trying to figure out where php uploads files to temporarily store them before I move them to their permanent storage directory, and I'm having some difficulties: -- php_info() says the temporary file upload directory is

Re: [PHP] Stored procs and transactions using Linux/PHP and Windows/MSSQL

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 11:50 am, Rick Emery wrote: Warning: mssql_query() [function.mssql-query]: Query failed in /var/www/html/business/entity.php on line 127 which is: mssql_query('RollBack Transaction'); Smush all of that into one line in Google, and see what you get... Oh, look:

Re: [PHP] strange errors from command line vs. web

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 11:36 am, blackwater dev wrote: I have some code that makes a connection to the db. When I run this code from the command line, it stops at the db connection. Show us the code, without any embedded passwords, of course... If I call the script from the browser,

Re: [PHP] Displaying MySQL results on runtime

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 11:25 am, Mário Gamito wrote: I have this code to create a database and a few tables. Is there a way to display the MySQL actions at runtime, i. e., display the MySQL commands while they are being executed ? If you happened to have each SQL statement in an array,

Re: [PHP] Re: Various errors being generated from an apache/php combo

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 10:25 am, Jochem Maas wrote: Just to add more confusion, the errors are intermittent - sometimes it works fine, other times we get these errors which makes it even more difficult to pinpoint. If you're using that autoload thingie, and the objects being loaded in

Re: [PHP] File Upload Security and chmod

2006-09-27 Thread Andy Hultgren
Well, seeing as I have no directory anywhere in my file structure called /tmp and yet my file uploads are still working, it would appear that my temporary file upload directory /tmp given by php_info() is somewhere outside of my root directory. So that's good news! That's were I'll be doing my

RE: [PHP] Best open source project/framework to support a php training course?

2006-09-27 Thread Ligaya A. Turmelle
There are a number of frameworks that you can use from PEAR (though many argue over whether it is a framework), Solar, CakePHP, Symfony, Zend's, and many many more. As for most OS projects - I don't know of a particular project that uses a particular framework (someone feel free to tell me

[PHP] Logical OR in assignment

2006-09-27 Thread Jason Karns
I once saw the use of OR (|) in assignment. $x = $y | $z; Does this use bitwise OR? I'm trying to see if I could use the above expression in place of: $x = is_null($y) ? $z : $y; Jason Karns ~~~ The Ohio State University [www.osu.edu] Computer Science Engineering [www.cse.osu.edu] --

Re: [PHP] Best open source project/framework to support a php training course?

2006-09-27 Thread Larry Garfield
On Wednesday 27 September 2006 20:47, Ligaya A. Turmelle wrote: There are a number of frameworks that you can use from PEAR (though many argue over whether it is a framework), Solar, CakePHP, Symfony, Zend's, and many many more. As for most OS projects - I don't know of a particular project

Re: [PHP] Logical OR in assignment

2006-09-27 Thread Larry Garfield
The single pipe | is bitwise OR, yes. You're probably thinking of this construct: a = b || c Which is a valid and common default-value idiom in Python and Javascript, but I don't think works in PHP. (If it does, someone please correct me because I'd like to use it. g) On Wednesday 27

RE: [PHP] Best open source project/framework to support a php training course?

2006-09-27 Thread Paul Scott
On Thu, 2006-09-28 at 11:47 +1000, Ligaya A. Turmelle wrote: Might I make a suggestion to you - no matter which framework/OS project you use... Have it be in PHP5. Yeah it may restrict you in options, but that is where PHP is going and to my mind that is what someone new to PHP should be