Re: [PHP] page redirect question

2004-11-10 Thread M Saleh EG
The keyword you are looking for is ob_start() Or Output Buffering ! Check that out. On Wed, 10 Nov 2004 09:39:06 +0530, Zareef Ahmed [EMAIL PROTECTED] wrote: Hi, Alas there is no any other way to redirect the page without sending headers in PHP. You may use javascript for this purpose.

[PHP] newbie: string to char array

2004-11-10 Thread Horst Jäger
Hi, I wonder if it is possible to convert a given string into an array of chars without using a separator. That is, is there a function mySplit with mySplit('example') == array('e', 'x', 'a', 'm', 'p' 'l' 'e') ? Thanks Horst Horst Jäger Schaafenstr. 25 50676 Köln Tel: 0221/93187015 -- PHP

Re: [PHP] newbie: string to char array

2004-11-10 Thread Marek Kilimajer
Horst Jäger wrote: Hi, I wonder if it is possible to convert a given string into an array of chars without using a separator. That is, is there a function mySplit with mySplit('example') == array('e', 'x', 'a', 'm', 'p' 'l' 'e') ? $chars_array = preg_split('//', 'example', -1,

RE: [PHP] POST losing SESSION vars?

2004-11-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 November 2004 18:21 Pass your session along with your form action... i.e $s =

[PHP] Shell Script error

2004-11-10 Thread Rui Francisco
Hi, I have a small problem with a PHP script with Pear DB The problem is the following: I'm creating a shell script in PHP that access one interbase database. The problem is that if i run it on a webserver the script run correctly but if i runit in the command line it reports one error (DB Error:

[PHP] php mail() error

2004-11-10 Thread Garth Hapgood - Strickland
Im using the php mail() function to try send an email to a user that has just registered. mail($HTTP_POST_VARS['emailaddress1'], 'Matchmakers Website Registration' , 'Welcome'); But when I get the following error back.: Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for

Re: [PHP] Shell Script error

2004-11-10 Thread Angelo Zanetti
well maybe you are trying to connect to localhost which could be fine for the server but not from commandline... send more info. Rui Francisco [EMAIL PROTECTED] 11/10/2004 2:06:09 PM Hi, I have a small problem with a PHP script with Pear DB The problem is the following: I'm creating a shell

[PHP] Re: [PHP-DB] Do You Need addslashes() When Using Bind Variables

2004-11-10 Thread Simon Rees
Hi Francis No. Thats one of the great things about bind variables. cheers Simon On Wednesday 10 November 2004 05:45, Francis Chang wrote: Hi, I'm using the Oracle database though I think this question is generic to all databases. If you're using bind variables and preparing the SQL

[PHP] link in ModalDialog

2004-11-10 Thread vlad georgescu
i'm working at some kind of HTLM editor for a web-page, and have in page, some js code which showModalDialog('upload_img.php') and read the window return values and paste-it in page (text area). the upload_img.php uploads img and returns the value to pe paste in page (remote location of uploaded

[PHP] Re: basic script

2004-11-10 Thread Matthew Weier O'Phinney
* A Garcia [EMAIL PROTECTED]: I just want the URL that is on the navigator bar be printed... this is my script but it just does not do it... why,.. please help, cheers HTML TITLEFirst Variables Example/TITLE BODY ?php echo VALUE IS: $x;? /BODY /HTML Not exactly sure what you're

[PHP] Re: Shell Script error

2004-11-10 Thread Matthew Weier O'Phinney
* Rui Francisco [EMAIL PROTECTED]: I have a small problem with a PHP script with Pear DB The problem is the following: I'm creating a shell script in PHP that access one interbase database. The problem is that if i run it on a webserver the script run correctly but if i runit in the

RE: [PHP] newbie: string to char array

2004-11-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Horst Jäger [mailto:[EMAIL PROTECTED] Sent: 10 November 2004 09:51 I wonder if it is possible to convert a given string into an array of

[PHP] RDF/XML Parser: SimpleRDF

2004-11-10 Thread elixon
Hi all, I was looking for an easy RDF parser writen in PHP but I failed. There are some parsers out there but I could not find the right one for me... I decided to write an RDF parser by myself... not easy ;-)... I created SimpleRDF parser on sourceforge.net under BSD license and I'd like to

[PHP] Simple(?) array of form input data needs to get into MySQL

2004-11-10 Thread Rev. AppaRattus Norvegicus
I have a problem (the core of it being that I am VERY new at PHP and MySQL), wondering if anyone can suggest solutions. I've been charged with handling creation of new web pages for entering kids' data into a database for a local parents' club, for babysitting co-ops and such. What we want to

[PHP] Does anyone have a valid magic.mime file?

2004-11-10 Thread Björn Wiberg
Hi everyone! I've been trying to get mime_magic to work with PHP 5.0.2, but it seems to complain about the magic file being valid. I've tried both with the Apache 2.0.52 version of magic and with the PHP5 Win32 version of magic.mime, but it still says that they're invalid. Please, does anyone

[PHP] Question on functions

2004-11-10 Thread Jason
My question is in regard to passing global variables to a function. Here is my code, any idea why it is not working? I suppose my understanding of a global variable being able to be used within a function is off? global $array = array( 0 = hostname, 1 = username, 2 = password ); function

Re: [PHP] Question on functions

2004-11-10 Thread John Holmes
Jason wrote: My question is in regard to passing global variables to a function. Here is my code, any idea why it is not working? I suppose my understanding of a global variable being able to be used within a function is off? global $array = array( 0 = hostname, 1 = username, 2 = password );

Re: [PHP] Question on functions

2004-11-10 Thread Jason Gerfen
John Holmes wrote: Jason wrote: My question is in regard to passing global variables to a function. Here is my code, any idea why it is not working? I suppose my understanding of a global variable being able to be used within a function is off? global $array = array( 0 = hostname, 1 =

Re: [PHP] Shell Script error

2004-11-10 Thread Rui Francisco
Its a simple script $_SERVER['utilizador']='user'; $_SERVER['pass']='pass'; $_SERVER['host']='localhost or IP address'; $_SERVER['db_name']='c:/path/dbname.fdb'; include_once('DB.php'); $dsn=ibase://.$_SERVER['utilizador'].:.$_SERVER['pass'].@.$_SERVER['host']./.$_SERVER['db_name'];

Re: [PHP] Question on functions

2004-11-10 Thread elixon
Or you can use superglobal variable $GLOBALS that is array containing all GLOBAL variables. This variable is superglobal thus does not need to be declared global using 'global $GLOBALS;' statement. Works anywhere. function database() { ... $GLOBALS['array'][0], $GLOBALS['array'][1] ...

[PHP] Help: Database Search

2004-11-10 Thread Stuart Felenstein
I am creating a database search form and results. Running into a problem though. I have two form elements, both that are fed by tables that have int values (1, 2 , etc) my sql statement is such: SELECT vendorjobs.PostStart, vendorjobs.JobTitle, vendorjobs.Industry, vendorjobs.VendorID,

Re: [PHP] Shell Script error

2004-11-10 Thread Matthew Weier O'Phinney
* Rui Francisco [EMAIL PROTECTED]: Its a simple script $_SERVER['utilizador']='user'; $_SERVER['pass']='pass'; $_SERVER['host']='localhost or IP address'; $_SERVER['db_name']='c:/path/dbname.fdb'; Why are you using the $_SERVER array? This is supposed to provide information regarding the

[PHP] [PHP-WIN] Re: [PHP] Shell Script error

2004-11-10 Thread Angelo Zanetti
not too sure but can your database name be a path?? Rui Francisco [EMAIL PROTECTED] 11/10/2004 4:28:21 PM Its a simple script $_SERVER['utilizador']='user'; $_SERVER['pass']='pass'; $_SERVER['host']='localhost or IP address'; $_SERVER['db_name']='c:/path/dbname.fdb'; include_once('DB.php');

Re: [PHP] Help: Database Search

2004-11-10 Thread Jon Hill
You might want to try looking up the syntax for left join queries. I think this might be what you are after. http://dev.mysql.com/doc/mysql/en/JOIN.html On Wednesday 10 November 2004 14:37, Stuart Felenstein wrote: I am creating a database search form and results. Running into a problem

Re: [PHP] Help: Database Search

2004-11-10 Thread Stuart Felenstein
--- Jon Hill [EMAIL PROTECTED] wrote: You might want to try looking up the syntax for left join queries. I think this might be what you are after. http://dev.mysql.com/doc/mysql/en/JOIN.html It has nothing to do with left joins. It works fine provided I do one of two things, make

Re: [PHP] php mail() error

2004-11-10 Thread Jason Wong
On Wednesday 10 November 2004 12:36, Garth Hapgood - Strickland wrote: Im using the php mail() function to try send an email to a user that has just registered. mail($HTTP_POST_VARS['emailaddress1'], 'Matchmakers Website Registration' , 'Welcome'); But when I get the following error back.:

Re: [PHP] Error logging problem

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 10:49:29 -0500, Al [EMAIL PROTECTED] wrote: ini_set(error_log, /AutoSch/error.log); Looks like this might be a path relative to your domain or your vhost definition? I'd go with a full system path if that's the case. -- Greg Donald Zend Certified Engineer

Re: [PHP] newbie: string to char array

2004-11-10 Thread raditha dissanayake
Ford, Mike wrote: To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm are you in a position to impose any terms (not that i have visited your link) on an email that get's distributed to thousands of readers, get's archived on

Re: [PHP] php mail() error

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 23:14:43 +, Jason Wong [EMAIL PROTECTED] wrote: Or you can wait for Manuel Lemos' reply :) Good one. :) -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Question on functions

2004-11-10 Thread Jason
Could you give me a good example of the tip you recommend or point me to a good tutorial on it? Elixon wrote: Or you can use superglobal variable $GLOBALS that is array containing all GLOBAL variables. This variable is superglobal thus does not need to be declared global using 'global

[PHP] Re: Multiple session_start()s / Is it a problem??

2004-11-10 Thread elixon
I guess that session_id() method will return null if session is not started (not tested) so theoreticaly you can use: if (!session_id()) session_start(); elixon Al wrote: Is there a problem issuing multiple session_start()s for a given script? I can't find anything in the manual that says one

Re: [PHP] Multiple session_start()s / Is it a problem??

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 10:40:17 -0500, Al [EMAIL PROTECTED] wrote: Of course I can simply use @session_start() to negate the Notice; but, I want to be certain this is good practice. I haven't tried it but you might try wrapping session_start() that with if ( !isset ($_SESSION) ) if you don't

[PHP] Re: Multiple session_start()s / Is it a problem??

2004-11-10 Thread elixon
And I think that $_SESSION does not exist unless session is started = if (!is_array($_SESSION)) session_start(); might do the job as well. elixon Al wrote: Is there a problem issuing multiple session_start()s for a given script? I can't find anything in the manual that says one way or the other. I

Re: [PHP] Help: Database Search

2004-11-10 Thread Jason Wong
On Wednesday 10 November 2004 14:37, Stuart Felenstein wrote: But if the user decides to only use one of the elements, then I don't want the query to return nothing because of the And in the where clause so I have these 2 statements that set a default value (shown here as 0 in the event one

Re: [PHP] Help: Database Search

2004-11-10 Thread Jason Wong
On Wednesday 10 November 2004 15:37, Stuart Felenstein wrote: --- Jason Wong [EMAIL PROTECTED] wrote: Why not build your sql query according to whether or not whatever you want is selected or not. That way debugging is easier as you won't be looking at queries that contain redundant

RE: [PHP] Help: Database Search

2004-11-10 Thread Graham Cossey
What about doing something like: $sql = SELECT * FROM my_table WHERE col1=$var1; if (isset($var2)) $sql .= AND col2='$var2'; HTH Graham -Original Message- From: Stuart Felenstein [mailto:[EMAIL PROTECTED] Sent: 10 November 2004 14:37 To: [EMAIL PROTECTED] Subject: [PHP]

[PHP] Re: php mail() error

2004-11-10 Thread Manuel Lemos
Hello, On 11/10/2004 10:36 AM, Garth Hapgood - Strickland wrote: Im using the php mail() function to try send an email to a user that has just registered. mail($HTTP_POST_VARS['emailaddress1'], 'Matchmakers Website Registration' , 'Welcome'); But when I get the following error back.: Warning:

RE: [PHP] newbie: string to char array

2004-11-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 10 November 2004 13:37, Horst Jäger wrote: (Please keep this on list -- others may be able to help better/faster than me!) mySplit('example') == array('e', 'x', 'a', 'm',

[PHP] Re: Help: Database Search

2004-11-10 Thread Sebastian Mendel
Stuart Felenstein wrote: I am creating a database search form and results. Running into a problem though. I have two form elements, both that are fed by tables that have int values (1, 2 , etc) my sql statement is such: SELECT vendorjobs.PostStart, vendorjobs.JobTitle, vendorjobs.Industry,

Re: [PHP] Error logging problem

2004-11-10 Thread Al
Greg Donald wrote: On Wed, 10 Nov 2004 10:49:29 -0500, Al [EMAIL PROTECTED] wrote: ini_set(error_log, /AutoSch/error.log); Looks like this might be a path relative to your domain or your vhost definition? I'd go with a full system path if that's the case. Hey Greg, that did it. It's obvious

[PHP] Array to $_GET variable

2004-11-10 Thread Mike Smith
I am trying to cache a database recordset so users can sort, etc without hitting the database everytime. I'm using ADODB to access a MSSQL database. $s = SELECT id, part, description FROM parts\n; $r = $db-Execute($s); $parts = array(id=array(),part=array(),desc=array()) while(!$r-EOF){

Re: [PHP] Question on functions

2004-11-10 Thread Sebastian Mendel
Jason wrote: Could you give me a good example of the tip you recommend or point me to a good tutorial on it? $GLOBALS holds all variables defined in main(), main() meaning outside any function or class //main() $my_var = 'test'; function myFunction() { echo $GLOBALS['my_var']; // is the

[PHP] Multiple session_start()s / Is it a problem??

2004-11-10 Thread Al
Is there a problem issuing multiple session_start()s for a given script? I can't find anything in the manual that says one way or the other. I have some scripts that call more than one functions include file and for convenience put a session_start() on each one. This gives me a Notice error. Of

[PHP] Error logging problem

2004-11-10 Thread Al
My site is on a virtual host and I'd like to log errors to a file while I'm debugging. Can't get it to work. Here is the code at the top of my script: ini_set(display_errors, on); //also tried Off ini_set(error_log, /AutoSch/error.log); $ini_array= ini_get_all();

[PHP] Re: Array to $_GET variable

2004-11-10 Thread Sebastian Mendel
Mike Smith wrote: I am trying to cache a database recordset so users can sort, etc without hitting the database everytime. I'm using ADODB to access a MSSQL database. $s = SELECT id, part, description FROM parts\n; $r = $db-Execute($s); $parts = array(id=array(),part=array(),desc=array())

Re: [PHP] Help: Database Search

2004-11-10 Thread Stuart Felenstein
--- Jason Wong [EMAIL PROTECTED] wrote: Why not build your sql query according to whether or not whatever you want is selected or not. That way debugging is easier as you won't be looking at queries that contain redundant ... AND 0 Jason, How would I do that ? Care to share a

Re: [PHP] Multiple session_start()s / Is it a problem??

2004-11-10 Thread Klaus Reimer
Al wrote: Is there a problem issuing multiple session_start()s for a given script? I can't find anything in the manual that says one way or the other. Then you have not looked good enough ;-) I have some scripts that call more than one functions include file and for convenience put a

[PHP] XML Parser doesn't work when moved....

2004-11-10 Thread Jay Blanchard
Below is the code that work on a PHP 4.2.1 test server. For some reason it is not working and not throwing errors(set to E_ALL) on 4.3.7 server. Has anyone experienced this kind of error? Or can someone point me in the right direction? TVMIA! /* create a parser */ if(!($covadParser =

Re: [PHP] Array to $_GET variable

2004-11-10 Thread Marek Kilimajer
Mike Smith wrote: I am trying to cache a database recordset so users can sort, etc without hitting the database everytime. I'm using ADODB to access a MSSQL database. $s = SELECT id, part, description FROM parts\n; $r = $db-Execute($s); $parts = array(id=array(),part=array(),desc=array())

RE: [PHP] newbie: string to char array

2004-11-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 10 November 2004 16:19, raditha dissanayake wrote: Ford, Mike wrote: To view the terms under which this email is distributed, please go to

Re: [PHP] Question on functions

2004-11-10 Thread Jason
Yeah the global stuff I understand and can use fine. What I would like more information about is the use of arguments to functions i.e. function( $user, $pass, $db ) { $db = @mysql_connect( $user, $pass, $db ); } I understand parts but googling for the proper use of functions in php hasn't

[PHP] Callback function as parameter

2004-11-10 Thread Francisco M. Marzoa Alonso
Hi everybody, I want to wrote a function that receives another function as parameter that will be used as a Callback. Well, better a bit of code than thousand words: class TreeNode { ... function Traverse ( CallBack ) { $rtn = CallBack ($this); foreach ($this-Sons as $Son) {

RE: [PHP] XML Parser doesn't work when moved....

2004-11-10 Thread Jay Blanchard
[snip] /* let's parse! */ if($readXML = fopen(XMLDIR.testRecp.xml, r)){ while($lineXML = fread($readXML, 4096)){ //echo $lineXML . br\n; xml_parse($covadParser, $lineXML, feof($readXML)); } } else { echo COULD NOT READ XML FILE\n; } /* clear

Re: [PHP] Question on functions

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 10:10:37 -0700, Jason [EMAIL PROTECTED] wrote: Yeah the global stuff I understand and can use fine. What I would like more information about is the use of arguments to functions i.e. function( $user, $pass, $db ) { $db = @mysql_connect( $user, $pass, $db ); } I

Re: [PHP] Question on functions

2004-11-10 Thread Jason
Greg Donald wrote: On Wed, 10 Nov 2004 10:10:37 -0700, Jason [EMAIL PROTECTED] wrote: Yeah the global stuff I understand and can use fine. What I would like more information about is the use of arguments to functions i.e. function( $user, $pass, $db ) { $db = @mysql_connect( $user, $pass, $db );

[PHP] displaying repetitive results

2004-11-10 Thread Chris Lott
Given a database query thats returns results from a linking (or xref) table which includes repetition because of the joins: ++--+--+ | id | title| subject | ++--+--+ | 1 | Collected Poems of Keats |

[PHP] Load testing for PHP Applications

2004-11-10 Thread Pablo Gosse
Hi folks. I'm wondering if anyone out there can recommend a good tool for load testing a large php application? Ideally it would be something fairly intelligent, that would follow links, remember what links it has followed and where any problems occurred, etc. Can anyone provide any

[PHP] should basic data validation go outside a function or inside?

2004-11-10 Thread Chris W. Parker
hi. call me stupid but i can't decide which option is better (actually don't call me stupid because it will hurt my feelings and i might cry). and having said that, maybe neither option is better than the other? whatever the answer, i just want some outside input on this because for some reason

Re: [PHP] Load testing for PHP Applications

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 10:15:33 -0800, Pablo Gosse [EMAIL PROTECTED] wrote: Hi folks. I'm wondering if anyone out there can recommend a good tool for load testing a large php application? Ideally it would be something fairly intelligent, that would follow links, remember what links it has

[PHP] Copyright law, how to protect your investment, how to protect your work... Was - RE: [PHP-DB] Please point me in the right direction.......

2004-11-10 Thread Gryffyn, Trevor
I'm surprised I havn't seen this question come up before (might have just missed it) but it's an excellent question so forgive the crossposting as it's extremely relevant to coders and those purchasing services of coders. Anyone who's gotten married and hired a wedding photographer is probably

[PHP] Re: Callback function as parameter

2004-11-10 Thread Matthew Weier O'Phinney
* Francisco M. Marzoa Alonso [EMAIL PROTECTED]: I want to wrote a function that receives another function as parameter that will be used as a Callback. Well, better a bit of code than thousand words: class TreeNode { ... function Traverse ( CallBack ) { $rtn = CallBack

[PHP] LINUX: Problem with php installation

2004-11-10 Thread abhilash kumar
I installed latest version of PHP from the source on a AMD ATHELON64 system with REDHAT 9.0 installed with apache server 2. There were no error upon running configure or make or make install I have checked the instalation procedures many times now but I get a blank screen on the mozilla browser.

[PHP] chmod difficulties...

2004-11-10 Thread Scott Fletcher
Hi, I'm using the AIX or UNIX system... When I tried the ... --snip-- passthru('chmod -R a+rw ../WebHelp/* 21'); --snip-- I get an error message, Operation Is Not Permitted.. So, I tried other option... --snip-- chmod(../WebHelp/, 0755); --snip-- I get an error message, Warning: chmod(): Not

[PHP] Re: chmod difficulties...

2004-11-10 Thread M. Sokolewicz
you can have apache SU to a user with enough permissions to do what you are trying :) (passthru('SU ...')) Scott Fletcher wrote: Hi, I'm using the AIX or UNIX system... When I tried the ... --snip-- passthru('chmod -R a+rw ../WebHelp/* 21'); --snip-- I get an error message, Operation Is Not

[PHP] Re: chmod difficulties...

2004-11-10 Thread Scott Fletcher
I tried that before and it doesn't work... Here's the response.. --snip-- 3004-501 Cannot su to webacct : Authentication is denied. --snip-- Scott M. Sokolewicz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] you can have apache SU to a user with enough permissions to do what you

RE: [PHP] XML Parser doesn't work when moved....

2004-11-10 Thread Jay Blanchard
[snip] Having added the following line echo XML Error . xml_error_string(xml_get_error_code($covadParser)) . br\n; just after the xml_parse PHP is reporting not well-formed (invalid token) so I will have to explore. [/snip] Having beaten my head against the wall for severqal hours now, I am

Re: [PHP] displaying repetitive results

2004-11-10 Thread Brent Baisley
Don't know what version of MySQL you are using, but I upgraded to 4.1 so that I could use the GROUP_CONCAT function, which does what you are looking for. http://dev.mysql.com/doc/mysql/en/GROUP-BY-Functions.html Otherwise, your front-end will need to do the rolling up of the records. On Nov 10,

Re: [PHP] should basic data validation go outside a function or inside?

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 11:00:12 -0800, Chris W. Parker [EMAIL PROTECTED] wrote: should basic data validation come before a function call or be performed within the function? advice type=record status=b0rken value=Benchmark them both and see which way is faster. then post back and tell us. :) /

Re: [PHP] php mail() error

2004-11-10 Thread John Holmes
Garth Hapgood - Strickland wrote: But when I get the following error back.: Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] Can someone help me out, by telling me what it means or what Im doing wrong? Your mail server is not set up to send mail from (or

[PHP] Programmatic Browser Rendering Engine?

2004-11-10 Thread Richard Lynch
Please Cc: me, as it's been quite some time since I posted 50 emails per day to this list... :-^ I'm interested in anybody's experience, good or bad, in what I am naively coining as a Programmatic Browser Rendering Engine: In an ideal world, it would be a PHP function definition not unlike

RE: [PHP] Programmatic Browser Rendering Engine?

2004-11-10 Thread Jay Blanchard
[snip] This function surfs to the given URL, as if a browser window the dimensions (imagesx, imagesy) of image were opened to that URL, and places in image a representation of what the user would see if they surfed to that site. If width and height are provided, the surfing is done as if the

Re: [PHP] displaying repetitive results

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 09:04:27 -0900, Chris Lott [EMAIL PROTECTED] wrote: Given a database query thats returns results from a linking (or xref) table which includes repetition because of the joins: ++--+--+ | id | title| subject |

Re: [PHP] should basic data validation go outside a function or inside?

2004-11-10 Thread Brad Pauly
On Wed, 10 Nov 2004 11:00:12 -0800, Chris W. Parker [EMAIL PROTECTED] wrote: hi. call me stupid but i can't decide which option is better (actually don't call me stupid because it will hurt my feelings and i might cry). and having said that, maybe neither option is better than the other?

Re: [PHP] LINUX: Problem with php installation

2004-11-10 Thread Greg Donald
On Wed, 10 Nov 2004 20:34:46 + (GMT), abhilash kumar [EMAIL PROTECTED] wrote: The error log file is showing Segmentation fault. Did you happen to try display_startup_errors = On in your php.ini.. I'm not sure but it might provide a more informative error message. -- Greg Donald Zend

Re: [PHP] Programmatic Browser Rendering Engine?

2004-11-10 Thread Jennifer Goodie
-- Original message -- From: Richard Lynch [EMAIL PROTECTED] Please Cc: me, as it's been quite some time since I posted 50 emails per day to this list... :-^ I'm interested in anybody's experience, good or bad, in what I am naively coining as a Programmatic

[PHP] Re: chmod difficulties...

2004-11-10 Thread Scott Fletcher
Oh I see. I tried a different experiment through the telnet and I noticed I get this error if I use the wrong password. So, I get the impression that it is a timing issues or something because I may be sending out the password too early or too late... Sigh!! More work for me Boy!! Scott

[PHP] header variable ?

2004-11-10 Thread Jerry Swanson
What variable header use? If I send something in header, what GLOBAL variable header use? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Programmatic Browser Rendering Engine?

2004-11-10 Thread Rick Fletcher
You might want to look at webthumb http://www.boutell.com/webthumb/ It is a linux command line utility that creates thumbnails of webpages. or khtml2png: http://www.babysimon.co.uk/khtml2png/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] header variable ?

2004-11-10 Thread Tom Rogers
Hi, Thursday, November 11, 2004, 8:51:49 AM, you wrote: JS What variable header use? If I send something in header, what GLOBAL JS variable header use? If you are talking about redirection You have to use the GET method then look in $_GET or $_REQUEST $url =

Re: [PHP] header variable ?

2004-11-10 Thread Ligaya Turmelle
Don't understand what you are asking. Respectfully, Ligaya Turmelle Jerry Swanson wrote: What variable header use? If I send something in header, what GLOBAL variable header use? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php mail() error

2004-11-10 Thread Zareef Ahmed
Hi, Problem is realted to your smtp server. Make sure it allowed outgoing mail without authenctication. You must also set a header in fourth parameter of mail function, it is good practice and can save you from some basic indentification problems. In windows you can set default send mail

RE: [PHP] php mail() error

2004-11-10 Thread Zareef Ahmed
Hi, Well this time I will take the responsibility :) Here is the link about mail sending in PHP . http://www.phpclasses.org/browse/package/9.html Zareef ahmed -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 10, 2004 8:48 PM To: [EMAIL

RE: [PHP] Array to $_GET variable

2004-11-10 Thread Zareef Ahmed
Hi, Yes it is a good idea to store this value in $_SESSION array. $_GET value sometime (depend on php setting) add slashes to all values, Those slashes will create the problem at the time of unserialization. Doing urlencode and decode also can be help full but in my view $_SESSION are best

[PHP] Join PHPExperts

2004-11-10 Thread Hasin Hayder
Hi all, We starts a great user forum for PHP users. We gurantee the urgent solution of your problem regarding PHP, MySQL and It's extensions. Visit our group and be a proud member of our group visit: http://groups.yahoo.com/group/phpexperts Thank you all --Evelin -- PHP General Mailing List

Re: [PHP] Join PHPExperts

2004-11-10 Thread Jason Wong
On Thursday 11 November 2004 05:03, Hasin Hayder wrote: We starts a great user forum for PHP users. We gurantee the urgent solution of your problem regarding PHP, MySQL and It's extensions. Visit our group and be a proud member of our group visit: http://groups.yahoo.com/group/phpexperts

RE: [PHP] Error logging problem

2004-11-10 Thread Zareef Ahmed
-Original Message- From: Al [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 10, 2004 9:19 PM To: [EMAIL PROTECTED] Subject: [PHP] Error logging problem My site is on a virtual host and I'd like to log errors to a file while I'm debugging. Can't get it to work. Here is the code

Re: [PHP] newbie: string to char array

2004-11-10 Thread Thomas Goyne
On Wed, 10 Nov 2004 15:56:28 -, Ford, Mike [EMAIL PROTECTED] wrote: On 10 November 2004 13:37, Horst Jger wrote: (Please keep this on list -- others may be able to help better/faster than me!) I am thinking about complexity. How is a string implemented in PHP? A dequechar or a char* ?

Re: [PHP] Join PHPExperts

2004-11-10 Thread Robby Russell
On Thu, 2004-11-11 at 11:03 +0600, Hasin Hayder wrote: Hi all, We starts a great user forum for PHP users. We gurantee the urgent solution of your problem regarding PHP, MySQL and It's extensions. Visit our group and be a proud member of our group visit: