[PHP] speeding up PHP

2004-02-10 Thread merlin
Hi there, I do have a performance question regarding php processing. There are some sites on the net like google, heise and others which are incredible fast in response time. Of course companies like google are running totally other systems, but there are smaller sites and companies doing

[PHP] Re: mnoGoSearch on Windows?

2004-02-10 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... According to the PHP manual, the mnoGoSearch extension is not available on the Windows platform. I had considered installing mnoGoSearch on our Windows box running PHP (even though I will have to pay for the Windows version of

[PHP] Re: speeding up PHP

2004-02-10 Thread Manuel Lemos
Hello, On 02/09/2004 11:36 PM, Merlin wrote: I do have a performance question regarding php processing. There are some sites on the net like google, heise and others which are incredible fast in response time. Of course companies like google are running totally other systems, but there are

RE: [PHP] SESSION VARIABLES

2004-02-10 Thread Adam Bregenzer
On Tue, 2004-02-10 at 02:45, Ronald Ramos wrote: $_SESSION['username']; $_SESSION['password']; Close, try this instead: $_SESSION['username'] = $username; $_SESSION['password'] = $password; I edited page3.php but it still shows me nothing. It looks great, now you just need to clear up your

Re: [PHP] Re: speeding up PHP

2004-02-10 Thread Galen
Yes, compression is key. Faster servers with HUGE internet connections serving COMPRESSED content make sites feel snappy. Look under microtime() in the php manual for an example that will benchmark how much time your page actually takes to produce... you'll probably find it incredibly small...

RE: [PHP] SESSION VARIABLES

2004-02-10 Thread Adam Bregenzer
On Tue, 2004-02-10 at 03:13, Ronald Ramos wrote: It Worked. Thanks Man! So I can use this to any other page? Awesome! You have access to the $_SESSION variables on any php page on the same server. Just make sure you call session_start() before you access the $_SESSION array. Let's say I

[PHP] reading remote page content

2004-02-10 Thread Hamid Hossain
I wants to read some pages throug http call. Then, I am going to parse the returned string and do some process. For example: I want to get the latest news from CNN.com daily. So, I want to call http://www.cnn.com and retrieve CNN's homepage content in a variable as a string. After that, I will

[PHP] mysql functions

2004-02-10 Thread Angelo Zanetti
I have a query which returns only 1 row, which of the following would be the best to get the value from the resultset: mysql_result() mysql_fetch_field() mysql_fetch_row() the resultset only returns 1 column, so basically its only 1 field i get from the resultset. thanx in advance. angelo

RE: [PHP] mysql functions

2004-02-10 Thread Hamid Hossain
Use mysql_result and u can use mysql_fetch_object, mysql_fetch_array also. The following example will show u how to do it with mysql_result which will retrive one row only. From PHP Manual: ?php $link = mysql_connect(localhost, mysql_user, mysql_password) or die(Could not connect:

[PHP] Re: mysql functions

2004-02-10 Thread Eric Bolikowski
Would advise mysql_fetch_row() Angelo Zanetti [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a query which returns only 1 row, which of the following would be the best to get the value from the resultset: mysql_result() mysql_fetch_field() mysql_fetch_row() the resultset

[PHP] Re: Zero Sized Reply

2004-02-10 Thread Eric Bolikowski
Some source code would help Deependra B. Tandukar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear all, The script was working perfectly, but all of the sudden since last week stopped working, gives Zero Sized Reply. The site is

[PHP] Poor error handling in Postgres API?

2004-02-10 Thread Geoff Caplan
Hi folks, Using the Postgres extension for the first time, and am somewhat taken aback by the approach to error handling. First: error numbers With the MySQL api, you can get an error number. With the Postgres extension, it seems you can only get a message string. So to test for a particular

[PHP] Re: Linked Table Structure

2004-02-10 Thread Eric Bolikowski
Sajid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] HI, I have a problem. I dont know how to create tables for this in PHPMYADMIN, the situation is like this: I have to display lot of items on the screen. There are three Datagrids on the screen (I am using Flash for this so

[PHP] Re: reading remote page content

2004-02-10 Thread Eric Bolikowski
Hamid Hossain [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I wants to read some pages throug http call. Then, I am going to parse the returned string and do some process. For example: I want to get the latest news from CNN.com daily. So, I want to call http://www.cnn.com and

[PHP] PHPINIDir in Apache 1.x, extension/zend_extension in php_admin_value

2004-02-10 Thread David Garamond
1. Why does the Apache 1.x SAPI doesn't provide the PHPINIDir directive? Is it due to some kind of limitation in Apache 1.x? 2. Can we load extension with php_admin_value, e.g.: php_admin_value extension /usr/lib/php4/imap.so php_admin_value zend_extension

[PHP] unset Fuction

2004-02-10 Thread JohnT
Hello, mind explain a little bit further cause i'm confused and not sure if the fuction really work or something On 1st example using unset() in a function /// CODE / function foo() { static $a; $a++; echo $aBR; unset($a); } foo(); foo(); foo();

[PHP] adduser.exe

2004-02-10 Thread Christian Jancso
Hi there, I have to write a PHP code for adding users to an email server. For this I use an application called adduser.exe from Ipswitch IMail Server 8.04. Can anyone tell me how I can use this file with a PHP code? Please note that the PHP runs on a different machine than the email software. So

Re: [PHP] PHPINIDir in Apache 1.x, extension/zend_extension in php_admin_value

2004-02-10 Thread David Garamond
David Garamond wrote: 1. Why does the Apache 1.x SAPI doesn't provide the PHPINIDir directive? Is it due to some kind of limitation in Apache 1.x? 2. Can we load extension with php_admin_value, e.g.: php_admin_value extension /usr/lib/php4/imap.so php_admin_value zend_extension

[PHP] Re: unset Fuction

2004-02-10 Thread Paul Furman
Johnt wrote: function foo() { static $a; $a++; echo $aBR; unset($a); } foo(); foo(); foo(); /// *** RESULT 1 2 3 Should it be all 1's at this time? Is it the code, function, or my php setup..any idea

RE: [PHP] unset Fuction

2004-02-10 Thread Oschlies Dirk (Praktikant FV/SLH)
Hello John, From: JohnT [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 4:54 AM Hello, mind explain a little bit further cause i'm confused and not sure if the fuction really work or something [some Code] As far as I know (or understand), unset() will only destroy the

[PHP] Re: speeding up PHP

2004-02-10 Thread Paul Furman
When I started looking into this I was told ASP was slow at processing very large databases (and I think also large numbers of users) but I don't think this becomes a problem unless the site is extremely large or gets an awful lot of traffic. Merlin wrote: Hi there, I do have a performance

[PHP] Re: file downloads using header problem

2004-02-10 Thread memoimyself
Hello Joshua, On 9 Feb 2004 at 15:45, Joshua Minnie wrote: Does anybody have any idea to allow for multiple downloads while another one was going on. Maybe some additional headers? I have tried adding headers before and after where I open the file for HTTP/1.1 200 OK and the corresponding

Re: [PHP] adduser.exe

2004-02-10 Thread Raditha Dissanayake
hi, This is something very dangerous. And you can't just post to an exe file just like that. Your best bet would be to map the network drive and invoke it from there. However this might cause other complications with mising dls etc. Since this is a commercial product oyu might want to ask the

Re: [PHP] mysql functions

2004-02-10 Thread John W. Holmes
From: Angelo Zanetti [EMAIL PROTECTED] I have a query which returns only 1 row, which of the following would be the best to get the value from the resultset: mysql_result() mysql_fetch_field() mysql_fetch_row() the resultset only returns 1 column, so basically its only 1 field i get from

Re: [PHP] adduser.exe

2004-02-10 Thread Stuart
Christian Jancso wrote: I have to write a PHP code for adding users to an email server. For this I use an application called adduser.exe from Ipswitch IMail Server 8.04. Can anyone tell me how I can use this file with a PHP code? You can't simply post to adduser.exe - it's not a CGI application.

[PHP] counting downloaded files

2004-02-10 Thread Adriaan Nel
Hi, I am using the following piece of code, to download files, but the files are allways corrupt...what am I doing wrong? if ($submit) { $full_filename = $_POST[full_filename]; $filename = $_POST[filename]; $dir = $_POST['dir']; $size = $_POST[size]; $id = $_POST[id];

Re: [PHP] writing a manual

2004-02-10 Thread David T-G
Tim -- ...and then Tim Thorburn said... % % Hi, Hiya! % % Sorry for the slightly off-topic post, but I've just had a client ask me to % create a manual for the site management tool I wrote for them last Interesting... You mean the tool isn't self-documenting? ;-) % fall. Since I've

[PHP] Re: Linked Table Structure

2004-02-10 Thread Sajid
Hi, Thanks for your help. But what i feel is that this is a more tedious process to achieve what i want to. What will happen in this is that i have to enter proper Continent ID and Country ID in both Country and Club tables respectively. For that i have to go and check that these ID's are in the

Re: [PHP] adduser.exe

2004-02-10 Thread Christian Jancso
ok do you have an example how this should work? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] CURL and Cookies

2004-02-10 Thread jon roig
What about taking advantage of curl's built in cookie functions? In particular, you should look at doing this with a two step process utilizing the CURLOPT_COOKIEJAR and CURLOPT_COOKIEFILE functions. First, log in... Then grab the article itself, once the session has begun. $ch = curl_init();

[PHP] parse error, unexpected $

2004-02-10 Thread Bruno Mattarollo
Hello, I am having a strange problem with PHP and I can't really find a proper answer, maybe someone have seen this before and can give me a hint. I have a series of files (originally developed by another colleague) installed on a server with PHP 4.2.2 and I get this error: Parse error: parse

Re: [PHP] parse error, unexpected $

2004-02-10 Thread Raditha Dissanayake
Hi Bruno, The line number is misleading the error is generally above the line that's reffered to. try commenting out sections of the code. If you have an IDE it will be able to point out the error. If you don't have an IDE some text editor that is capable of syntax highlighting will also help.

Re: [PHP] counting downloaded files

2004-02-10 Thread Marek Kilimajer
Adriaan Nel wrote: Hi, I am using the following piece of code, to download files, but the files are allways corrupt...what am I doing wrong? if ($submit) { $full_filename = $_POST[full_filename]; $filename = $_POST[filename]; $dir = $_POST['dir']; $size = $_POST[size]; $id = $_POST[id];

Re: [PHP] adduser.exe

2004-02-10 Thread Stuart
Christian Jancso wrote: ok do you have an example how this should work? No I don't - it was a while ago, but it's quite simple. You just need to write a CGI script (you could use PHP if it's installed on the IMail server) to shell out to the adduser utility passing parameters made up from the

Re: [PHP] adduser.exe

2004-02-10 Thread Christian Jancso
ok tx for your help I will try this :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] counting downloaded files

2004-02-10 Thread Adriaan Nel
The variables I submit, are retrieved from a database...so users can't enter anything, I do have a warning inserted at the beginning of the file, how do I remove this warning? Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Adriaan Nel wrote: Hi, I am using the

Re: [PHP] Using exceptions to write more perfect software ...

2004-02-10 Thread Markus Fischer
Hello Adam, Adam Bregenzer wrote: On Mon, 2004-02-09 at 15:58, Markus Fischer wrote: But doing this now for every internal function call I don't want to lead my program into an unwanted state isn't very appealing. snip Ultimately I decided to wrap my necessary function calls in error checking

Re: [PHP] XML and Excel

2004-02-10 Thread Phillip Jackson
Please post your solution to the group for reference. ~phillip Jake McHenry [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: Jake McHenry [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, February 09,

Re: [PHP] Re: Linked Table Structure

2004-02-10 Thread Adam Bregenzer
On Tue, 2004-02-10 at 09:49, Sajid wrote: A way you could do this, is to set up the tables like this: DG1: Continent_Id | Continent_Name | Continent_Image | Continent_Text DG2: Country_Id | Continent_Id | Country_Name | Country_Image | Country_Text DG3: Club_Id | Country_Id |

[PHP] Re: excel output question

2004-02-10 Thread Phillip Jackson
table border=1 Jake McHenry [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - Original Message - From: Phillip Jackson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 07, 2004 4:37 AM Subject: Re: [PHP] Re: excel output question I would do it like

Re: [PHP] Re: Linked Table Structure

2004-02-10 Thread Sajid
I am not aware of linked tables too much, is this what is called linked table? Do i have to enter values on both tables to link them? Or can some columns of one table be linked with columns of another table in some other way? If no, then thanks for all who helped me :) --sajid Adam Bregenzer

Re: [PHP] counting downloaded files

2004-02-10 Thread Marek Kilimajer
Adriaan Nel wrote: The variables I submit, are retrieved from a database...so users can't enter anything, What do you mean? Even if the variables are in a hidden input field, anyone can change them. For example one can save the page and change them in html source. I do have a warning inserted

[PHP] Working with a Front Page developer

2004-02-10 Thread Chris de Vidal
I've got a design developer who only knows Front Page. Despite my general hatred for Microsoft I can work around it :-) She's installed a Front Page PHP plugin (I think it's called Rocket PHP). However, the plugin is buggy; it's got problems that would be best fixed if I could completely

[PHP] PHP and binding to Port as a certain user

2004-02-10 Thread Dan Aloma
I'm trying to use PHP 4.3.4 with the -b switch, which should bind a port to be used for parsing php files. When I do that, I want it to run as a different user than the one feeding it the command (webserver). Is there any way to do that? Thanks so much for the help.

[PHP] ereg_replace

2004-02-10 Thread Nicole Lallande
Can anyone tell me why this does not work: $str1=ereg_replace(index.php?src=,index/,$url); is there another way to do this? Thanks, Nicole -- Nicole Lallande [EMAIL PROTECTED] 760.753.6766 -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: Linked Table Structure

2004-02-10 Thread Paul Furman
My background is only with MS Access where everything is drag drop. In that case you can link fields and they will populate automatically. If you have Access, it might be an easier way to set up the database, enter the data and then export it to MySQL or whatever. Sajid wrote: I am not aware

Re: [PHP] ereg_replace

2004-02-10 Thread Jason Wong
On Wednesday 11 February 2004 01:55, Nicole Lallande wrote: Can anyone tell me why this does not work: $str1=ereg_replace(index.php?src=,index/,$url); Because '.' and '?' have special meanings in a regex. is there another way to do this? If it's a plain simple string replace you want then

[PHP] ODBC connection..

2004-02-10 Thread Andrew Kwiczola
Heya, I was wondering if its possible to create a odbc connection with php, using a User DSN.. (not a system DSN)? Everytime I try to connect with this code.. $connect = odbc_connect(userdsnhere, user, password) or die(odbc_errormsg());; I get... [Microsoft][ODBC Driver Manager]

Re: [PHP] Re: Linked Table Structure

2004-02-10 Thread David T-G
Sajid -- ...and then Sajid said... % % Hi, Hi! % Thanks for your help. % But what i feel is that this is a more tedious process to achieve what i % want to. Sometimes database work is :-) % What will happen in this is that i have to enter proper Continent ID and % Country ID in both

Re: [PHP] Working with a Front Page developer

2004-02-10 Thread Richard Davey
Hello Chris, Tuesday, February 10, 2004, 5:30:14 PM, you wrote: CdV Can anyone recommend some template engines? Or tips on using PHP to parse CdV an HTML doc, replacing it with real data? One of the most common (and well used) template engines is Smarty: http://smarty.php.net/ It might be

Re: [PHP] ereg_replace

2004-02-10 Thread Richard Davey
Hello Nicole, Tuesday, February 10, 2004, 5:55:01 PM, you wrote: NL Can anyone tell me why this does not work: NL $str1=ereg_replace(index.php?src=,index/,$url); Because it's an invalid regular expression. NL is there another way to do this? Yes, str_replace() for something this simple:

Re: [PHP] XML and Excel

2004-02-10 Thread Jake McHenry
I implemented the classes found at the link he provided, followed the directions in the readme and examples do you want me to post the code as well? thanks, Jake - Original Message - From: Phillip Jackson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 11:35

[PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread Samuel Ventura
Hi there, I have 3 files in nested subdirectories (1) /test.php (2) /subdir1/test.php (3) /subdir1/subdir2/test.php (1) contains // ?php print hello; ? (2) and (3) contains / ?php include(../test.php); ? if I call (3) it loops forever in (2) trying to

Re: [PHP] Working with a Front Page developer

2004-02-10 Thread Chris de Vidal
Richard Davey said: One of the most common (and well used) template engines is Smarty: http://smarty.php.net/ It might be overkill for your needs though, writing a simple template system is pretty easy. Looks like it's overkill, but I'll look through it in case I could use it on other

Re: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread Richard Davey
Hello Samuel, Tuesday, February 10, 2004, 6:55:24 PM, you wrote: SV I have 3 files in nested subdirectories [snip] SV Is this a bug or a feature? Neither, it's just logic really. The include() function sucks in the file specified, dropping out to HTML mode to do so. The included file inherits

Re[2]: [PHP] Working with a Front Page developer

2004-02-10 Thread Richard Davey
Hello Chris, Tuesday, February 10, 2004, 7:19:35 PM, you wrote: CdV Got any tips on writing a template system? Anything I should be aware of, CdV other than copious use of preg_replace? :-) You don't have to use preg_replace, in its most simplest form the following code will work just fine

Re: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread John W. Holmes
From: Samuel Ventura [EMAIL PROTECTED] I have 3 files in nested subdirectories (1) /test.php (2) /subdir1/test.php (3) /subdir1/subdir2/test.php if I call (3) it loops forever in (2) trying to including itself. Is this a bug or a feature? A feature? You make a request for (3). The

[PHP] Re: ODBC connection..

2004-02-10 Thread Ben Ramsey
I don't know about a user DSN, but I do know it's possible to create an ODBC connection, using the ODBC functions. Check out the manual: http://us4.php.net/manual/en/ref.odbc.php Andrew Kwiczola wrote: Heya, I was wondering if its possible to create a odbc connection with php, using a User

RE: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-10 Thread Alex Hogan
Are you saying that it's better not to use relative paths on include(...)'s, require(...)'s and their (x)_once(...) cousins? That seems awkward to me. Why would I want to hard code a path, even if I was including additional functionality from another file? -Original Message- From:

Re: Re[2]: [PHP] Working with a Front Page developer

2004-02-10 Thread Chris de Vidal
Richard Davey said: You don't have to use preg_replace, in its most simplest form the following code will work just fine for a basic template system: snip Blow me down, that's exactly what I need! You just saved me hours of research. You rock!! Thanks Rich! /dev/idal -- PHP General

Re: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread John W. Holmes
From: Alex Hogan [EMAIL PROTECTED] Are you saying that it's better not to use relative paths on include(...)'s, require(...)'s and their (x)_once(...) cousins? That seems awkward to me. Why would I want to hard code a path, even if I was including additional functionality from another

[PHP] PHp Books

2004-02-10 Thread Rajani Anand Iyer
Hi All, Can someone recommend some good books on PHP Advanced topics. Regards Rai - Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online

[PHP] Simple PHP Encoder

2004-02-10 Thread Don Myers
Howdy, I am looking for a simple way to encode my PHP files from snooping eyes. Not a MD5 Encryption or anything but a simple base64 or something. I want to scare off the casual server snooper that know very little about PHP but has access to the web directory for other reasons. D Myers -- PHP

Re: [PHP] ereg_replace -- Thanks!

2004-02-10 Thread Nicole Lallande
Many thanks!! Richard Davey wrote: Hello Nicole, Tuesday, February 10, 2004, 5:55:01 PM, you wrote: NL Can anyone tell me why this does not work: NL $str1=ereg_replace(index.php?src=,index/,$url); Because it's an invalid regular expression. NL is there another way to do this? Yes,

[PHP] Re: Simple PHP Encoder

2004-02-10 Thread Ben Ramsey
There's the Zend Encoder, which is fairly expensive. However, I suppose you could use the base64_encode function to do what you want: http://us2.php.net/manual/en/function.base64-encode.php. My idea is that you could create a script that would read in your PHP scripts using the filesystem

Re: [PHP] Re: Simple PHP Encoder

2004-02-10 Thread =d0Mi=
| From: Ben Ramsey [EMAIL PROTECTED] | | There's the Zend Encoder, which is fairly expensive. However, I suppose | you could use the base64_encode function to do what you want: | http://us2.php.net/manual/en/function.base64-encode.php. My idea is | that you could create a script that would

[PHP] Having trouble recompiling PHP

2004-02-10 Thread Matthew Rossiter
Hi there, I'm running RedHat 9.0 /Apache 2.0.48/openssl-0.9.7c/php-4.3.4 Every time I recompile PHP nothing seems to change according to phpinfo(). I'm trying to add SSL and FTP functionality. The funny thing is, every time it is recompiled the messages indicate the install worked properly.

Re: [PHP] Having trouble recompiling PHP

2004-02-10 Thread John Nichel
Matthew Rossiter wrote: Hi there, I'm running RedHat 9.0 /Apache 2.0.48/openssl-0.9.7c/php-4.3.4 Every time I recompile PHP nothing seems to change according to phpinfo(). I'm trying to add SSL and FTP functionality. The funny thing is, every time it is recompiled the messages indicate the

Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not int uitively

2004-02-10 Thread Richard Davey
Hello Alex, Tuesday, February 10, 2004, 8:08:11 PM, you wrote: AH Are you saying that it's better not to use relative paths on include(...)'s, AH require(...)'s and their (x)_once(...) cousins? Relative paths are fine, so long as you have strict control over what is calling the script and from

Re[4]: [PHP] Working with a Front Page developer

2004-02-10 Thread Richard Davey
Hello Chris, Tuesday, February 10, 2004, 8:09:36 PM, you wrote: CdV Blow me down, that's exactly what I need! You just saved me hours of CdV research. You rock!! No worries, glad to help :) -- Best regards, Richardmailto:[EMAIL PROTECTED] -- PHP General

Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread Richard Davey
Hello John, Tuesday, February 10, 2004, 8:20:50 PM, you wrote: JWH include($_CONF['path'] . '/test.php'); This is slightly off-topic, but related to the include() function. What is the given standard regarding when you should or shouldn't use braces on a function. For example: include

Re[2]: [PHP] Re: Simple PHP Encoder

2004-02-10 Thread Richard Davey
Hello =d0Mi=, Tuesday, February 10, 2004, 10:08:06 PM, you wrote: d 4) If you think that the person could be someone else than root dmove your pages to another webspace provider I disagree; you'd be surprised just how many hosts configure public level access to files inside of web

Re[4]: [PHP] Re: Simple PHP Encoder

2004-02-10 Thread Richard Davey
Hello Philip, Wednesday, February 11, 2004, 12:19:07 AM, you wrote: PJN I never saw any of the other messages, but why not just PJN place an index file with nothing in it into PJN the dir you don't want people to view. Thats what i do. PJN (if i got the right end of the stick). Wrong end of

RE: Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread Martin Towell
Hello John, Tuesday, February 10, 2004, 8:20:50 PM, you wrote: JWH include($_CONF['path'] . '/test.php'); This is slightly off-topic, but related to the include() function. What is the given standard regarding when you should or shouldn't use braces on a function. For example:

Re: Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread Adam Bregenzer
On Tue, 2004-02-10 at 19:06, Richard Davey wrote: This is slightly off-topic, but related to the include() function. What is the given standard regarding when you should or shouldn't use braces on a function. [snip] Both work just fine. The manual includes examples of both methods. So which

Re: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread John W. Holmes
Richard Davey wrote: include $dir/file.php vs. include($dir/file.php) Both work just fine. The manual includes examples of both methods. So which do most people consider the right way ? If you use echo, then you should use include(). If you use print, then you should use include . Unless you

Re: [PHP] HELP: Nested include(...)'s take relative paths

2004-02-10 Thread André Cerqueira
If it was a function, parenteses would be mandatory hehe I prefer no parentheses on include/require/echo/print/..., cant justify it with arguments though, its just the style i chose... What about: if (...) { ... } and: if (...) { ... } I prefer the second, but people find good reasons

Re: [PHP] HELP: Nested include(...)'s take relative paths

2004-02-10 Thread Adam Bregenzer
On Tue, 2004-02-10 at 21:00, André Cerqueira wrote: If it was a function, parenteses would be mandatory hehe I prefer no parentheses on include/require/echo/print/..., cant justify it with arguments though, its just the style i chose... What about: if (...) { ... } and: if

Re: [PHP] HELP: Nested include(...)'s take relative paths not intuitively

2004-02-10 Thread Adam Bregenzer
On Wed, 2004-02-11 at 19:36, John W. Holmes wrote: If you use echo, then you should use include(). If you use print, then you should use include . Unless you use echo(), then you should use include and if you use print , then you should use include(). Unless you don't want to. :) Heh,

[PHP] [Q] Problems invoking a PHP script - Have no hair left to pull - Please help [:-)

2004-02-10 Thread Michael T. Peterson
I have a registration form which collects some data then, when the user clicks the submit button sends the data to a second page (a PHP script). The problem I'm having is getting my webserver (apache) to invoke the PHP scrip to process the data. What's so baffling about this is that I've already

[PHP] SQL help

2004-02-10 Thread Marc Greenstock
Hi all here's my problem, I have two tables: 'user_data' and 'image_data' obviously user_data has all the user information and image_data has all the image information in image_data are the fields: Image_ID int(11), User_ID int(11) and Default_Img enum('Yes','No'). Users can have as many images

RE: [PHP] [Q] Problems invoking a PHP script - Have no hair left to pull - Please help [:-)

2004-02-10 Thread Larry Brown
is the html code you have listed below the file register_new_member.php? Is it in the same directory as the previously successful script? -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Michael T. Peterson Sent: Tuesday, February 10, 2004 9:48 PM To: [EMAIL PROTECTED]

RE: [PHP] SQL help

2004-02-10 Thread Martin Towell
You'll need to do a left/right outer join. as you didn't say which database you're using, I'll give this back to you to do some reading up on how to do it... HTH Martin -Original Message- From: Marc Greenstock [mailto:[EMAIL PROTECTED] Sent: Wednesday, 11 February 2004 1:53 PM To:

RE: [PHP] SQL help

2004-02-10 Thread Vail, Warren
The problem is you are using a hard join which will only return rows where there are matching entries in both tables. What you probably want is called a left join, however you have a further complication. You have to have an image row to have a image_data.Default_Img = 'Yes'. So this query is

Re: [PHP] SQL help

2004-02-10 Thread Marc Greenstock
The DB is MySQL 4.0.16, all tables are MyISAM Martin Towell [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You'll need to do a left/right outer join. as you didn't say which database you're using, I'll give this back to you to do some reading up on how to do it... HTH Martin

RE: [PHP] SQL help

2004-02-10 Thread Larry Brown
Correct me if I'm wrong...PLEASE.. but, I believe you are looking for... SELECT * FROM user_data left join image_data on user_data.User_ID=image_data.User_ID where image_data.Default_Img = 'Yes' GROUP BY user_data.User_ID I haven't used enum('Yes','No') so I'm taking your word for the fact that

Re: [PHP] SQL help

2004-02-10 Thread Marc Greenstock
That works well, Thanks all. Warren Vail [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The problem is you are using a hard join which will only return rows where there are matching entries in both tables. What you probably want is called a left join, however you have a further

[PHP] phpMyAdmin Problems

2004-02-10 Thread Freedomware
I've been using both phpMyAdmin and EMS MySQL Manager to work with MySQL tables and PHP. Things are generally going OK, but I'm still ironing out a few kinks. I suspect some of my problems might be related to an error message I get when I click on a Database in phpMyAdmin: Error: The

Re: [PHP] phpMyAdmin Problems

2004-02-10 Thread Raditha Dissanayake
Hi, perhaps this is best posted on the phpmyadmin list? Freedomware wrote: I've been using both phpMyAdmin and EMS MySQL Manager to work with MySQL tables and PHP. Things are generally going OK, but I'm still ironing out a few kinks. I suspect some of my problems might be related to an error

Re: [PHP] phpMyAdmin Problems

2004-02-10 Thread Jason Wong
On Wednesday 11 February 2004 12:47, Freedomware wrote: I've been using both phpMyAdmin and EMS MySQL Manager to work with MySQL tables and PHP. Things are generally going OK, but I'm still ironing out a few kinks. I suspect some of my problems might be related to an error message I get when I

Re: [PHP] XML and Excel

2004-02-10 Thread Jake McHenry
- Original Message - From: Phillip Jackson [EMAIL PROTECTED] To: Jake McHenry [EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 4:53 PM Subject: Re: [PHP] XML and Excel sure; if it doesn't compromise security for you. ~Phillip - Original Message - From: Jake McHenry

[PHP] Re: Simple PHP Encoder

2004-02-10 Thread Nadim Attari
http://turck-mmcache.sourceforge.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] array data

2004-02-10 Thread Imran Asghar
Hi, Is not working, is it correct way File1.php ? $colors = array('red','blue','green','yellow'); ? form action=file2.php method=post input type=hidden type name=colors value=?=$colors? /fomr File2.php ? echo $colors[0]; echo $colors[1]; echo $colors[2];

RE: [PHP] Re: Simple PHP Encoder

2004-02-10 Thread Adrian Teasdale
There are various: www.sourceguardian.com www.zend.com www.ioncube.com The turck-mmcache one is good too and it also comes with (or the main purpose is) an accelerator Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Missing mysql_real_escape_string() function in PHP 4.3.4

2004-02-10 Thread Radi Shourbaji
I'm trying to move a PHP application that was originally built on the windows PHP implementation to a newly installed Fedora FC1 Linux system. However the Fedora implementation of PHP 4.3.4 seems to be missing the mysql_real_escape_string() function. I suspect that there might be other mysql

RE: [PHP] Missing mysql_real_escape_string() function in PHP 4.3.4

2004-02-10 Thread Jay Blanchard
[snip] I'm trying to move a PHP application that was originally built on the windows PHP implementation to a newly installed Fedora FC1 Linux system. However the Fedora implementation of PHP 4.3.4 seems to be missing the mysql_real_escape_string() function. I suspect that there might be other