Re: [PHP] DB Question | A hotel reservation scenario

2009-08-19 Thread tedd
At 2:46 PM -0400 8/18/09, Floyd Resler wrote: I would create a room history table that contained three fields: room number, status, date stamp. Each time the status of a room changes insert a new record into the table with the current status and date/time. Take care, Floyd That's the way

RE: [PHP] DB Question | A hotel reservation scenario

2009-08-19 Thread Bob McConnell
From: Ashley Sheridan On Tue, 2009-08-18 at 19:15 +0430, Behzad wrote: I'm faced with an interesting and challenging problem. Consider a database, designed for a hotel. At any given time, each room has a different status: It's Busy or Reserved, or Free. It's easy to retrieve number of

[PHP] DB Question | A hotel reservation scenario

2009-08-18 Thread Behzad
Dear list, e-Greetings! I'm faced with an interesting and challenging problem. Consider a database, designed for a hotel. At any given time, each room has a different status: It's Busy or Reserved, or Free. It's easy to retrieve number of Free rooms at the current time. But how can I count the

Re: [PHP] DB Question | A hotel reservation scenario

2009-08-18 Thread Ashley Sheridan
On Tue, 2009-08-18 at 19:15 +0430, Behzad wrote: Dear list, e-Greetings! I'm faced with an interesting and challenging problem. Consider a database, designed for a hotel. At any given time, each room has a different status: It's Busy or Reserved, or Free. It's easy to retrieve number

Re: [PHP] DB Question | A hotel reservation scenario

2009-08-18 Thread Bastien Koert
On Tue, Aug 18, 2009 at 10:45 AM, Behzadbehzad.esl...@gmail.com wrote: Dear list, e-Greetings! I'm faced with an interesting and challenging problem. Consider a database, designed for a hotel. At any given time, each room has a different status: It's Busy or Reserved, or Free. It's easy

RE: [PHP] DB Question | A hotel reservation scenario

2009-08-18 Thread Arno Kuhl
-Original Message- From: Behzad [mailto:behzad.esl...@gmail.com] Sent: 18 August 2009 04:46 PM To: PHP General Mailing List Subject: [PHP] DB Question | A hotel reservation scenario Dear list, e-Greetings! I'm faced with an interesting and challenging problem. Consider a database

Re: [PHP] DB Question | A hotel reservation scenario

2009-08-18 Thread Floyd Resler
I would create a room history table that contained three fields: room number, status, date stamp. Each time the status of a room changes insert a new record into the table with the current status and date/ time. Take care, Floyd On Aug 18, 2009, at 10:45 AM, Behzad wrote: Dear list,

[PHP] ZCE question - duplicate object

2009-08-12 Thread Augusto Flavio
HI everyone, i'm studying for the zce exam and i found a blog that try to answer some questions covered in the exam. I found one that i do not agree. Question: What is wrong with the following code? function duplicate($obj) { $newObj = $obj; return $newObj; } $a = new MyClass(); $a_copy =

Re: [PHP] ZCE question - duplicate object

2009-08-12 Thread Sudheer Satyanarayana
Augusto Flavio wrote: HI everyone, i'm studying for the zce exam and i found a blog that try to answer some questions covered in the exam. I found one that i do not agree. Question: What is wrong with the following code? function duplicate($obj) { $newObj = $obj; return $newObj; } $a = new

Re: [PHP] ZCE Question

2009-08-09 Thread Richard Heyes
Hi, Looks like XMLRPC to me. Agreed - it's not gibberish so it can't be SOAP... -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 8th August) Lots of PHP and Javascript code - http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Question: what are frameworks?

2009-08-09 Thread Ralph Deffke
good question !! I think the word framework is modern fashion term in the first case. in former days we used to say library C comes with a standard library, in modern words C comes with a standard framework. I use my own framework, means I reuse my code written for similar things before, so I use

Re: [PHP] Re: Question: what are frameworks?

2009-08-09 Thread Michael A. Peters
Ralph Deffke wrote: good question !! I think the word framework is modern fashion term in the first case. in former days we used to say library C comes with a standard library, in modern words C comes with a standard framework. I use my own framework, means I reuse my code written for similar

[PHP] Re: Question: what are frameworks?

2009-08-09 Thread Tony Marston
Parham Doustdar parha...@gmail.com wrote in message news:5c.b0.05105.f18be...@pb1.pair.com... Hi there, I I've heard of frameworks, but I don't quite know what they are used for. I've done a little search on the internet, but even though I've been able to find different PHP frameworks, I'm

Re: [PHP] Re: Question: what are frameworks?

2009-08-09 Thread Sudheer Satyanarayana
Michael A. Peters wrote: Ralph Deffke wrote: good question !! I think the word framework is modern fashion term in the first case. in former days we used to say library C comes with a standard library, in modern words C comes with a standard framework. I use my own framework, means I reuse my

Re: [PHP] Re: Question: what are frameworks?

2009-08-09 Thread Bastien Koert
On Sun, Aug 9, 2009 at 9:29 AM, Sudheer Satyanarayanasudhee...@binaryvibes.co.in wrote: Michael A. Peters wrote: Ralph Deffke wrote: good question !! I think the word framework is modern fashion term in the first case. in former days we used to say library C comes with a standard library,

[PHP] ZCE Question

2009-08-08 Thread Augusto Flavio
Has someone an clue about this zce question: The following is a common XML structure used in service oriented architectures, what does it represent? ?xml version=1.0? methodCall methodNamemyMethod/methodName params param valuestringHI!/string/value /param /params /methodCall

Re: [PHP] ZCE Question

2009-08-08 Thread Eddie Drapkin
On Sat, Aug 8, 2009 at 4:18 PM, Augusto Flavioafla...@gmail.com wrote: Has someone an clue about this zce question: The following is a common XML structure used in service oriented architectures, what does it represent? ?xml version=1.0? methodCall  methodNamemyMethod/methodName  params

[PHP] Re: Question on code profiling

2009-07-24 Thread Lupus Michaelis
Andrew Ballard a écrit : I'm trying to profile a site on our development server to see why it takes around 4 seconds to generate a pretty basic page. Last time I seen this is when I did validate DOM Document without DTD on local disk :D Can you put somewhere the essential code that take

Re: [PHP] Re: Question on code profiling

2009-07-24 Thread Andrew Ballard
On Fri, Jul 24, 2009 at 2:27 AM, Lupus Michaelismickael+...@lupusmic.org wrote: Andrew Ballard a écrit : I'm trying to profile a site on our development server to see why it takes around 4 seconds to generate a pretty basic page.  Last time I seen this is when I did validate DOM Document

[PHP] Tidy question about the config args

2009-07-24 Thread Al
I have a question about using the $config arguments with tidy_parse_string() and tidy_repair_string() etc. The functions seem to totally ignore new-blocklevel-tags new-empty-tags new-inline-tags E.g., I have in my config array some custom tags [new-inline-tags] =

Re: [PHP] Re: Question on code profiling

2009-07-23 Thread Jonathan Tapicer
Just an idea: try using the (microtime(true) - $start) approach in portions of code to try isolate the portion that is taking more time. Sometimes that helps me to find the function that is slowing everything down. Jonathan On Thu, Jul 23, 2009 at 6:18 PM, Andrew Ballardaball...@gmail.com wrote:

[PHP] newbie question - php parsing

2009-07-22 Thread Sebastiano Pomata
Hi all, A little doubt caught me while I was writing this snippet of code for a wordpress template: ?php if (the_title('','',FALSE) != 'Home') { ? h2 class=entry-header?php the_title(); ?/h2 ?php } ? I always thought that php was called only between the ?php ? tags, and I'm pretty sure that's

RE: [PHP] isset question

2009-06-22 Thread Ford, Mike
On 19 June 2009 19:53, Ashley Sheridan advised: On Fri, 2009-06-19 at 12:36 +0100, Ford, Mike wrote: On 18 June 2009 20:25, LAMP advised: using !empty() instead isset() will work if you don't care for PHP Notice: Undefined variable... If you want to avoid PHP Notice you have to use both:

Re: [PHP] isset question

2009-06-21 Thread Gary
How does echoing back to the page make it vulnerable? This does not go to a DB if that makes any difference. Gary Paul M Foster pa...@quillandmouse.com wrote in message news:20090621032151.gb14...@quillandmouse.com... On Sat, Jun 20, 2009 at 12:20:56PM +0100, Ashley Sheridan wrote: On Sat,

Re: [PHP] isset question

2009-06-21 Thread Ashley Sheridan
On Sun, 2009-06-21 at 13:57 -0400, Gary wrote: How does echoing back to the page make it vulnerable? This does not go to a DB if that makes any difference. Gary Paul M Foster pa...@quillandmouse.com wrote in message news:20090621032151.gb14...@quillandmouse.com... On Sat, Jun 20,

Re: [PHP] isset question

2009-06-20 Thread Ashley Sheridan
On Sat, 2009-06-20 at 00:19 -0400, Paul M Foster wrote: On Fri, Jun 19, 2009 at 07:52:40PM +0100, Ashley Sheridan wrote: On Fri, 2009-06-19 at 12:36 +0100, Ford, Mike wrote: On 18 June 2009 20:25, LAMP advised: using !empty() instead isset() will work if you don't care for PHP

Re: [PHP] isset question

2009-06-20 Thread Reese
Waynn Lue wrote: I notice that you're checking $_POST['mort'] but you're echoing $mort, is that your actual code? That was my observation as well. Is $mort = $POST['mort']; being set somewhere else or not? If not, how is your script supposed to know what value $mort should be? And, what the

Re: [PHP] isset question

2009-06-20 Thread Gary
Yes... I echo the code onto the page as well as sending out the message. The echo is sort of a thank you page, this is what you submitted. A message, which is not going into a DB, is also emailed to the submitter and cleint. Gary Waynn Lue waynn...@gmail.com wrote in message

Re: [PHP] isset question

2009-06-20 Thread Paul M Foster
On Sat, Jun 20, 2009 at 12:20:56PM +0100, Ashley Sheridan wrote: On Sat, 2009-06-20 at 00:19 -0400, Paul M Foster wrote: On Fri, Jun 19, 2009 at 07:52:40PM +0100, Ashley Sheridan wrote: On Fri, 2009-06-19 at 12:36 +0100, Ford, Mike wrote: On 18 June 2009 20:25, LAMP advised:

RE: [PHP] isset question

2009-06-19 Thread Ford, Mike
On 18 June 2009 20:25, LAMP advised: using !empty() instead isset() will work if you don't care for PHP Notice: Undefined variable... If you want to avoid PHP Notice you have to use both: $msg.= (isset($_POST['mort']) and !empty($_POST['mort'])) ? The mortgage amount is $mort\n : ;

RE: [PHP] isset question

2009-06-19 Thread Ashley Sheridan
On Fri, 2009-06-19 at 12:36 +0100, Ford, Mike wrote: On 18 June 2009 20:25, LAMP advised: using !empty() instead isset() will work if you don't care for PHP Notice: Undefined variable... If you want to avoid PHP Notice you have to use both: $msg.= (isset($_POST['mort']) and

Re: [PHP] isset question

2009-06-19 Thread Paul M Foster
On Fri, Jun 19, 2009 at 07:52:40PM +0100, Ashley Sheridan wrote: On Fri, 2009-06-19 at 12:36 +0100, Ford, Mike wrote: On 18 June 2009 20:25, LAMP advised: using !empty() instead isset() will work if you don't care for PHP Notice: Undefined variable... If you want to avoid PHP Notice

[PHP] isset question

2009-06-18 Thread Gary
I have a form that gives the submitter a choice or either one set of questions, or another. I am still getting the message even if the input was left blank. So on the line below, $msg.= isset($_POST['mort']) ? The mortgage amount is $mort\n : ; I get The mortgage amount is What am I

Re: [PHP] isset question

2009-06-18 Thread Stuart
2009/6/18 Gary gwp...@ptd.net: I have a form that gives the submitter a choice or either one set of questions, or another. I am still getting the message even if the input was left blank.  So on the line below, $msg.=  isset($_POST['mort']) ? The mortgage amount is  $mort\n : ; I get The

Re: [PHP] isset question

2009-06-18 Thread Steve
Use !empty($_POST['mort']) instead of isset() for form input since the form will still set an empty value if left blank. Gary wrote: I have a form that gives the submitter a choice or either one set of questions, or another. I am still getting the message even if the input was left blank. So

Re: [PHP] isset question

2009-06-18 Thread LAMP
Steve wrote: Use !empty($_POST['mort']) instead of isset() for form input since the form will still set an empty value if left blank. Gary wrote: I have a form that gives the submitter a choice or either one set of questions, or another. I am still getting the message even if the input was

Re: [PHP] isset question

2009-06-18 Thread Waynn Lue
I notice that you're checking $_POST['mort'] but you're echoing $mort, is that your actual code? On 6/18/09, Gary gwp...@ptd.net wrote: I have a form that gives the submitter a choice or either one set of questions, or another. I am still getting the message even if the input was left blank.

RE: [PHP] isset question

2009-06-18 Thread Yuri Yarlei
Java, after the world. Kyou wa PHP, ashita wa Java, sono ato sekai desu. Date: Thu, 18 Jun 2009 20:07:09 +0100 From: stut...@gmail.com To: gwp...@ptd.net CC: php-general@lists.php.net Subject: Re: [PHP] isset question 2009/6/18 Gary gwp...@ptd.net: I have a form that gives the submitter

[PHP] opendir() Question

2009-06-12 Thread Parham Doustdar
Hi there, I need to create a PHP script that will connect to an FTP, get a listing of files/directories from it, and displays them in a table. Now, there is only one problem here. I tried connecting with opendir(), like this: opendir(ftp://...;); but it seems it doesn't work with FTP. Now, is

Re: [PHP] opendir() Question

2009-06-12 Thread Andrew Ballard
2009/6/12 Parham Doustdar parha...@gmail.com: Hi there, I need to create a PHP script that will connect to an  FTP, get a listing of files/directories from it, and displays them in a table. Now, there is only one problem here. I tried connecting with opendir(), like this:

Re: [PHP] opendir() Question

2009-06-12 Thread Parham Doustdar
Hello there Andrew, Thank you very much for your help. I didn't know such an extention existed. :) -- --- Contact info: Skype: parham-d MSN: fire_lizard16 at hotmail dot com email: parham90 at GMail dot com Andrew Ballard aball...@gmail.com wrote in message

[PHP] PHP class question

2009-05-21 Thread Peter van der Does
I have the following situation. I wrote some software and split it up into functionality: class core { function go{ } } class A extends core { // PHP4 constructor function A { $this-go(); } } class B extends core { } In core I define functions and variables that are to be used

[PHP] Re: PHP class question

2009-05-21 Thread Nathan Rixham
Peter van der Does wrote: I have the following situation. I wrote some software and split it up into functionality: class core { function go{ } } class A extends core { // PHP4 constructor function A { $this-go(); } } class B extends core { } In core I define functions and

[PHP] Re: PHP class question

2009-05-21 Thread Shawn McKenzie
Peter van der Does wrote: I have the following situation. I wrote some software and split it up into functionality: class core { function go{ } } class A extends core { // PHP4 constructor function A { $this-go(); } } class B extends core { } In core I

Re: [PHP] Re: PHP class question

2009-05-21 Thread Peter van der Does
On Thu, 21 May 2009 14:08:11 -0500 Shawn McKenzie nos...@mckenzies.net wrote: This doesn't make sense. You say class A needs to be extended with another class, however what you show below is class A extending framework_class. I worded it wrong, I apologize. Class A needs to be an

Re: [PHP] Re: PHP class question

2009-05-21 Thread Shawn McKenzie
Peter van der Does wrote: On Thu, 21 May 2009 14:08:11 -0500 Shawn McKenzie nos...@mckenzies.net wrote: This doesn't make sense. You say class A needs to be extended with another class, however what you show below is class A extending framework_class. I worded it wrong, I apologize.

Re: [PHP] Re: PHP class question

2009-05-21 Thread Shawn McKenzie
Shawn McKenzie wrote: Peter van der Does wrote: On Thu, 21 May 2009 14:08:11 -0500 Shawn McKenzie nos...@mckenzies.net wrote: This doesn't make sense. You say class A needs to be extended with another class, however what you show below is class A extending framework_class. I worded it

Re: [PHP] Re: PHP class question

2009-05-21 Thread Nathan Rixham
Shawn McKenzie wrote: Shawn McKenzie wrote: Peter van der Does wrote: On Thu, 21 May 2009 14:08:11 -0500 Shawn McKenzie nos...@mckenzies.net wrote: This doesn't make sense. You say class A needs to be extended with another class, however what you show below is class A extending

[PHP] Programming Question

2009-04-29 Thread David Stoltz
Hi Folks, I'm a PHP newbie - but this question really isn't about PHP per se', it's more about programming in general, and how to do something... I'm redesigning an ASP site with Dreamweaver CS4, so I'll be sticking to using ASP technology The site will use horizontal navigation for the

Re: [PHP] Programming Question

2009-04-29 Thread Kyle Smith
David Stoltz wrote: Hi Folks, I'm a PHP newbie - but this question really isn't about PHP per se', it's more about programming in general, and how to do something... I'm redesigning an ASP site with Dreamweaver CS4, so I'll be sticking to using ASP technology The site will use horizontal

[PHP] Reflection question

2009-04-14 Thread Pulni4kiya
Hi, everyone! I need to do the following: Let's say I have this class: class A { public function b(array $c, $d = 6) { ... } } I need to get this in runtime: public function b(array $c, $d = 6) What's the best way to do it? (I don't quite like the idea of reading the file in which the class

Re: [PHP] Reflection question

2009-04-14 Thread Marc Steinert
Have a look at example #5 on http://de3.php.net/manual/en/language.oop5.reflection.php#language.oop5.reflection.reflectionmethod Greetings from Germany Marc Pulni4kiya wrote: Hi, everyone! I need to do the following: Let's say I have this class: class A { public function b(array $c, $d =

Re: [PHP] Reflection question

2009-04-14 Thread Pulni4kiya
The problem is to get the parameters and mostly their type-hinting. At the end I decided to just cast the ReflectionParameter classes to strings and get the type-hinting from there, even though it shouldn't normally be done this way, but I don't think there's a better way now. -- PHP

[PHP] PHP-MYSQL Question

2009-04-07 Thread abdulazeez alugo
Hi guys, Please can anyone tell me what I'm doing wrong with the code below? It keep returning unsuccessful. $result=mysql_query(CREATE TABLE table2(table2_id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, table1_id INT NOT NULL, name VARCHAR(100) NOT NULL,

Re: [PHP] PHP-MYSQL Question

2009-04-07 Thread HostWare Kft.
This isn't PHP but mysql question. You didn't mention that the table itslef is created or not. If not, then it is probably a mysql error, maybe your installation of mysql doesn't support INNODB. SanTa - Original Message - From: abdulazeez alugo defati...@hotmail.com To: php-general

Re: [PHP] PHP-MYSQL Question

2009-04-07 Thread Per Jessen
abdulazeez alugo wrote: Hi guys, Please can anyone tell me what I'm doing wrong with the code below? It keep returning unsuccessful. Why don't you print out mysql_error() ? It'll tell you right away. /Per -- Per Jessen, Zürich (20.1°C) -- PHP General Mailing List

RE: [PHP] PHP-MYSQL Question

2009-04-07 Thread abdulazeez alugo
From: p...@computer.org Date: Tue, 7 Apr 2009 15:18:35 +0200 To: php-general@lists.php.net Subject: Re: [PHP] PHP-MYSQL Question abdulazeez alugo wrote: Hi guys, Please can anyone tell me what I'm doing wrong with the code below? It keep returning unsuccessful. Why

Re: [PHP] thread question

2009-04-01 Thread Toke Herkild
Virgilio Quilario skrev: Hi all, Another question: If a script starts to perform an operation and the user browses away will that terminate the thread perfoming the operation eg. the operation is aborted ? Mvh Toke the script is aborted as soon as server gets no response from the browser

Re: [PHP] thread question

2009-04-01 Thread Virgilio Quilario
Hi all, Another question: If a script starts to perform an operation and the user browses away will that terminate the thread perfoming the operation eg. the operation is aborted ? Mvh Toke the script is aborted as soon as server gets no response from the browser when it sent output

Re: [PHP] thread question

2009-04-01 Thread Ashley Sheridan
On Wed, 2009-04-01 at 19:41 +0800, Virgilio Quilario wrote: Hi all, Another question: If a script starts to perform an operation and the user browses away will that terminate the thread perfoming the operation eg. the operation is aborted ? Mvh Toke the script is aborted as

Re: [PHP] thread question

2009-04-01 Thread Toke Herkild
Ashley Sheridan skrev: On Wed, 2009-04-01 at 19:41 +0800, Virgilio Quilario wrote: Hi all, Another question: If a script starts to perform an operation and the user browses away will that terminate the thread perfoming the operation eg. the operation is aborted ? Mvh Toke the script is

[PHP] extention question

2009-04-01 Thread MikeP
Hello, How do I know if an extension (specifically php-domxml) has to be compiled or can just be loaded. I am using RedHat Linux . Thanks Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] extention question

2009-04-01 Thread Per Jessen
MikeP wrote: Hello, How do I know if an extension (specifically php-domxml) has to be compiled or can just be loaded. To see if it has already been compiled, check /usr/lib/phpx/extensions /Per -- Per Jessen, Zürich (6.8°C) -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] extention question

2009-04-01 Thread Michael A. Peters
MikeP wrote: Hello, How do I know if an extension (specifically php-domxml) has to be compiled or can just be loaded. I am using RedHat Linux . Thanks Mike I assume by Red Hat you mean RHEL ?? I believe domxml is part of the php-xml package yum install php-xml then /etc/init.d/httpd

Re: [PHP] extention question

2009-04-01 Thread Michael A. Peters
Per Jessen wrote: MikeP wrote: Hello, How do I know if an extension (specifically php-domxml) has to be compiled or can just be loaded. To see if it has already been compiled, check /usr/lib/phpx/extensions /Per I don't believe that is the right path on rhel - it certainly isn't on

[PHP] thread question

2009-03-31 Thread Toke Herkild
Hi all, Another question: If a script starts to perform an operation and the user browses away will that terminate the thread perfoming the operation eg. the operation is aborted ? Mvh Toke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] thread question

2009-03-31 Thread Virgilio Quilario
Hi all, Another question: If a script starts to perform an operation and the user browses away will that terminate the thread perfoming the operation eg. the operation is aborted ? Mvh Toke the script is aborted as soon as server gets no response from the browser when it sent output to

[PHP] newbe question

2009-03-25 Thread Andres Gonzalez
Hi, I want to learn PHP so I started using it for all of my general purpose scripts. The general format of my scripts are like this: #!/usr/bin/php ?php .bla bla bla PHP code ? When I run my scripts and I have an echo (or print) at the end of the script to print out the results of

RE: [PHP] newbe question

2009-03-25 Thread kyle.smith
-Original Message- From: Andres Gonzalez [mailto:and...@packetstorm.com] Sent: Wednesday, March 25, 2009 11:29 AM To: php-general@lists.php.net Subject: [PHP] newbe question Hi, I want to learn PHP so I started using it for all of my general purpose scripts. The general format of my

Re: [PHP] newbe question

2009-03-25 Thread Andres Gonzalez
I just figured this out. It all depends on what is AFTER the last ? tag. If I do not have extra line feeds they are not printed. Wow... thanks, -Andres Andres Gonzalez wrote: Hi, I want to learn PHP so I started using it for all of my general purpose scripts. The general format of my

Re: [PHP] newbe question

2009-03-25 Thread Andres Gonzalez
! is a valid script. --- Kyle Smith Unix Systems Administrator Inforonics, LLC -Original Message- From: Andres Gonzalez [mailto:and...@packetstorm.com] Sent: Wednesday, March 25, 2009 11:29 AM To: php-general@lists.php.net Subject: [PHP] newbe question Hi, I want to learn PHP so

Re: [PHP] newbe question

2009-03-25 Thread Raymond Irving
and...@packetstorm.com wrote: From: Andres Gonzalez and...@packetstorm.com Subject: [PHP] newbe question To: php-general@lists.php.net Date: Wednesday, March 25, 2009, 11:28 AM Hi, I want to learn PHP so I started using it for all of my general purpose scripts. The general format of my scripts are like

Re: [PHP] quick question - need a site i can more or less copy from

2009-03-23 Thread Jochem Maas
bruce schreef: Hi... Working on a test app, and I need a web interface to test/view the underlying information. Looking for (hopefully) quick pointers/suggestions. I'm dealing with a number of cli web crawling apps that return data. I'm trying to find a quick app that I can modify the db

[PHP] quick question - need a site i can more or less copy from

2009-03-22 Thread bruce
Hi... Working on a test app, and I need a web interface to test/view the underlying information. Looking for (hopefully) quick pointers/suggestions. I'm dealing with a number of cli web crawling apps that return data. I'm trying to find a quick app that I can modify the db schema, as well as

[PHP] Apache question

2009-03-20 Thread Ernie Kemp
Sometime when I run the program http://localhost/DigitalBiz4U/index.php in a browser this message come up and the page is not displayed. Apache HTTP Server stopped working and was closed message on screen. Apache version: Apache2.2.11 PHP version: 5.2.8 OS: Vista IIS is turned off

Re: [PHP] Apache question

2009-03-20 Thread Daniel Brown
On Fri, Mar 20, 2009 at 17:27, Ernie Kemp ernie.k...@sympatico.ca wrote: Please point me in the right direction with this as this is becoming a pain in the butt. Ernie, Check in with the Apache folks: http://httpd.apache.org/lists.html -- /Daniel P. Brown

Re: [PHP] preg_replace() question

2009-03-18 Thread Richard Heyes
1. What is the overhead on preg_replace? Minimal. If you're looking for all the speed you can get, you'd probably be better off with an str* function though if you can find one. You'd have to be seriously after speed gains though. 2. Is there a better way to strip spaces and non alpha

Re: [PHP] preg_replace() question

2009-03-18 Thread Virgilio Quilario
1. What is the overhead on preg_replace? it really depends on your operation. when you think it can be done using str* functions then go for it as they are much faster than preg* functions. 2. Is there a better way to strip spaces and non alpha numerical characters from text strings? I

Re: [PHP] preg_replace() question

2009-03-18 Thread Robert Cummings
On Wed, 2009-03-18 at 22:55 +0800, Virgilio Quilario wrote: 1. What is the overhead on preg_replace? it really depends on your operation. when you think it can be done using str* functions then go for it as they are much faster than preg* functions. 2. Is there a better way to strip

[PHP] preg_replace() question

2009-03-17 Thread PJ
1. What is the overhead on preg_replace? 2. Is there a better way to strip spaces and non alpha numerical characters from text strings? I suspect not... maybe the Shadow does ??? :-D -- unheralded genius: A clean desk is the sign of a dull mind.

Re: [PHP] preg_replace() question

2009-03-17 Thread Chris
PJ wrote: 1. What is the overhead on preg_replace? Compared to what? If you write a 3 line regex, it's going to take some processing. 2. Is there a better way to strip spaces and non alpha numerical characters from text strings? I suspect not... maybe the Shadow does ??? For this,

Re: [PHP] Silly question - include vs. eval

2009-03-12 Thread Robert Cummings
On Wed, 2009-03-11 at 19:50 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 16:16 -0500, Shawn McKenzie wrote: Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at

[PHP] Silly question - include vs. eval

2009-03-11 Thread HostWare Kft.
Hi, I wondering what is the difference between include(), and eval(' ?'.file_get_content().' ?php ')? If there is something I should be aware, please, let me know. Thanks, SanTa

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 13:07 +0100, Sándor Tamás (HostWare Kft.) wrote: Hi, I wondering what is the difference between include(), and eval(' ?'.file_get_content().' ?php ')? If there is something I should be aware, please, let me know. Use include since it allows a cache like eAccelerator

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 08:33 -0400, Robert Cummings wrote: On Wed, 2009-03-11 at 13:07 +0100, Sándor Tamás (HostWare Kft.) wrote: Hi, I wondering what is the difference between include(), and eval(' ?'.file_get_content().' ?php ')? If there is something I should be aware, please,

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Virgilio Quilario
Hi, I wondering what is the difference between include(), and eval(' ?'.file_get_content().' ?php ')? If there is something I should be aware, please, let me know. Use include since it allows a cache like eAccelerator or APC to work. Eval never gets cached. Also, include let's the engine

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 20:49 +0800, Virgilio Quilario wrote: Hi, I wondering what is the difference between include(), and eval(' ?'.file_get_content().' ?php ')? If there is something I should be aware, please, let me know. Use include since it allows a cache like eAccelerator or

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread HostWare Kft.
To: Virgilio Quilario virgilio.quila...@gmail.com Cc: Sándor Tamás (HostWare Kft.) sandorta...@hostware.hu; php-general@lists.php.net Sent: Wednesday, March 11, 2009 1:55 PM Subject: Re: [PHP] Silly question - include vs. eval On Wed, 2009-03-11 at 20:49 +0800, Virgilio Quilario wrote: Hi, I

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 14:03 +0100, Sándor Tamás (HostWare Kft.) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with include() OR eval(). In that case, if I understood it correctly, the results are the same. But! If the

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with include() OR eval(). In that case, if I understood it correctly, the results are the same. But! If the included pages contain functions,

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Kyle Terry
On Wed, Mar 11, 2009 at 10:19 AM, Shawn McKenzie nos...@mckenzies.netwrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with include() OR eval(). In that case, if I understood it

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with include() OR eval(). In that case, if I understood it correctly, the results are

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with include() OR eval(). In that case, if I understood it

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Robert Cummings wrote: On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 16:16 -0500, Shawn McKenzie wrote: Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Robert Cummings wrote: On Wed, 2009-03-11 at 16:16 -0500, Shawn McKenzie wrote: Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft .

Re: [PHP] include question

2009-03-07 Thread Nathan Rixham
Daniel Brown wrote: On Fri, Mar 6, 2009 at 08:53, Stuart stut...@gmail.com wrote: 1.) We use regular open tags to be compatible with all stock PHP configurations. 2.) We echo out the response from dirname() so that it's output to the HTML source. 3.) We use dirname() twice,

[PHP] include question

2009-03-06 Thread PJ
good morning all, How can I include src and href in include files that will refer the right paths from files in different hierarchies(directory tree levels)? Example: include dirname(_FILE_)./../lib/header1.php; ? This does not work: snippetysnip... LINK href=dirname(_FILE_).'/../lib/index.css'

<    1   2   3   4   5   6   7   8   9   10   >