Re: [PHP] help with mysql

2004-01-26 Thread Renan G. Galang
could you send the line 16 the parser was pointing out? (B (BIt could be you have the wrong number of parameters for the call to (Bmysql_connect(), or your PHP wasn't compiled with mysql functionality (Benabled. (This is doubtful since mysql functionality is ON by default). (B (B (B-

Re: [PHP] Help with preg_replace

2004-01-19 Thread joel boonstra
On Mon, Jan 19, 2004 at 06:50:37PM +0200, John Clegg wrote: Hi I am having some problems with preg_replace and I wondering if someone could suggest a fix or explain why it is not working. Here is the Code: * ?php $code = blah

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John Clegg wrote: Hi I am having some problems with preg_replace and I wondering if someone could suggest a fix or explain why it is not working. Here is the Code: * ?php $code = blah http://www.foo.com/Unsubscribe.php?EmailAddress=[MAIL] blah; $url =

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Clegg
Hi Joel, Thanks for the reply. I have tried using / to delimit the string and I get the following error String $url = /http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL]/;; Gives the error: *Warning*: Unknown modifier '/' in* /test.php* on line *8* I found out that I could use '

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Clegg
Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas John John Clegg wrote: Hi Joel,

Re: [PHP] Help with preg_replace

2004-01-19 Thread joel boonstra
On Mon, Jan 19, 2004 at 07:15:53PM +0200, John Clegg wrote: Hi Joel, Thanks for the reply. I have tried using / to delimit the string and I get the following error String $url = /http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL]/;; Gives the error: *Warning*: Unknown

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John Clegg wrote: Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas John Maybe

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John Nichel wrote: John Clegg wrote: Hi I have just realised that I have to delimit the following characters so I can use preg_replace: / ? [ ] Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. eg. \? Any ideas

Re: [PHP] Help with preg_replace

2004-01-19 Thread Jason Wong
On Tuesday 20 January 2004 01:31, John Clegg wrote: Is there any php command to delimit all of these characters as I am getting the string I am trying to replace from the database. preg_quote() -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators *

Re: [PHP] Help with preg_replace

2004-01-19 Thread John W. Holmes
joel boonstra wrote: The problem is that there are still special chars that need escaping. Specifically, the question mark (?) and the square braces ([]). Here is some modified code (apologies for poor word-wrapping): ?php $code = blah

Re: [PHP] Help with preg_replace

2004-01-19 Thread John Nichel
John W. Holmes wrote: In $url, the periods still need to be escaped, too. This is where preg_quote() comes in handy. $url = http://www.foo.com/maxbid/Unsubscribe.php?EmailAddress=[MAIL];; $url = preg_quote($url); $code = preg_replace(#$url#,$replace,$code,1); I hope the OP took notice of the

Re: [PHP] help with form

2004-01-17 Thread daniel
I'm creating a form that puts data into two different tables in the database. I was wondering how to get the ID from the first table and, in the background, associate it with the second table? any help is GREATLY appreciated! Firstly you never said which db ? I'll assume mysql, check out

Re: [PHP] help with form

2004-01-17 Thread Justin French
On Sunday, January 18, 2004, at 01:39 PM, eawilkes wrote: I'm creating a form that puts data into two different tables in the database. I was wondering how to get the ID from the first table and, in the background, associate it with the second table? any help is GREATLY appreciated! Check out

Re: [PHP] Help parsing text file?

2004-01-08 Thread Brad Pauly
On Thu, 2004-01-08 at 16:27, Carlton L. Whitmore wrote: I'm very new to PHP. I want to display /var/log/lastlog with php on a webpage, but I need some help. How do I do that? Looking at the docs it looks like file() would work, but I couldn't get it to display the file. I would guess that

RE: [PHP] Help with php output to file

2003-12-18 Thread Sam Masiello
Anytime I need to do something similar to this I prefer to use lynx -source [[URL]] [[output_file]] HTH! --Sam Paul Godard wrote: Hi I have develop an online catalog in php/mysql. Now the client needs the web site on a cd. Of course without php or mysql... What is the fastes and

Re: [PHP] Help with where clause

2003-12-16 Thread Terence
You should direct such queries to the MySQL mailing list as this is a PHP list. [EMAIL PROTECTED] or try their website: www.mysql.com Your answer however is here: http://www.mysql.com/doc/en/SELECT.html - Original Message - From: Richard Kurth [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: [PHP] Help with where clause

2003-12-16 Thread Tom Rogers
Hi, Tuesday, December 16, 2003, 6:30:22 PM, you wrote: RK I need to know how I can do a where clause in a select statement for mysql RK where RK one of the fields can have two solutions. In the example below RK field3 needs to equal all with a and also all with b. Can this be done and RK if so

RE: [PHP] Help on using PEAR DB

2003-12-16 Thread Jay Blanchard
[snip] I am Using PEAR DB and i got this error after I have upgraded php4 to php5. Fatal error: Only variables or references can be returned by reference in /var/www/php/lib/php/DB/common.php on line 766 Could anybody tell me what I can do to resolve that error. [/snip] Go back to PHP4? We'd

RE: [PHP] Help Cookie

2003-12-15 Thread Jay Blanchard
[snip] Warning: Cannot modify header information - headers already sent by (output started at /home/ewako/public_html/cintadp/config.php:153) in /home/ewako/public_html/cintadp/mod/forum/forum_functions.php on line 547 help me!!! [/snip] Stop sending headers And send a little code --

Re: [PHP] Help Cookie

2003-12-15 Thread John Nichel
[EMAIL PROTECTED] wrote: Warning: Cannot modify header information - headers already sent by (output started at /home/ewako/public_html/cintadp/config.php:153) in /home/ewako/public_html/cintadp/mod/forum/forum_functions.php on line 547 help me!!! Output has been sent to the browser before you

Re: [PHP] Help Cookie

2003-12-15 Thread Joaquin Bernal
aiwi Warning: Cannot modify header information - headers already sent by (output aiwi started at /home/ewako/public_html/cintadp/config.php:153) aiwi in aiwi /home/ewako/public_html/cintadp/mod/forum/forum_functions.php on aiwi line 547 aiwi help me!!! Check there are no spaces or newlines

Re: [PHP] Help with associative array in a PHP class. Not working as I'd expect it to?!

2003-12-10 Thread John W. Holmes
Daevid Vincent wrote: myPacket: -- How come I don't get ANY array under myPacket:? [snip] function printMyVars() { echo myPacket:\n; print_r($myPacket); } Two words: Variable Scope. :) $myPacket is local to the function and empty. -- ---John Holmes... Amazon

RE: [PHP] Help with associative array in a PHP class. Not working as I'd expect it to?!

2003-12-10 Thread Daevid Vincent
To: Daevid Vincent Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Help with associative array in a PHP class. Not working as I'd expect it to?! Daevid Vincent wrote: myPacket: -- How come I don't get ANY array under myPacket:? [snip] function printMyVars

Re: [PHP] Help!session problem!

2003-12-06 Thread Chris Shiflett
--- ÎÚÓÐ ÎÞ [EMAIL PROTECTED] wrote: Reproduce code: --- login.php: $user_array=sybase_fetch_row($result); session_start(); session_register(user_array); ... index.php: session_start(); $user_name=$user_array[1]; Try this

Re: [PHP] help with Log() function

2003-11-28 Thread Jason Wong
On Saturday 29 November 2003 06:03, Jon King wrote: I'm having trouble getting a log formula to work. This forumla is supposed to return the number of payment required zero out a loan balance. print -(log(1-($B/$m)*($r/$q)))/log(1+($r/$q)); It keeps returning a NaN. I've checked the

Re: [PHP] Help with fread()

2003-11-27 Thread Nick Wilson
* and then Rasmus Lerdorf declared Why not just fread($pagehandle,32768) ? Sure. I just got confused as to why '8912' was on the example and thought it significant. I see it's not now, thanks ;-) -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Help with fread()

2003-11-26 Thread Rasmus Lerdorf
Why not just fread($pagehandle,32768) ? On Wed, 26 Nov 2003, Nick Wilson wrote: Hi all, I'm using the code below to open webpages and read them into a variable. I got the example from the manual but am confused as to how to limit how much of the page to read. Ideally, I just want to read

Re: [PHP] Help with exec syntax

2003-11-16 Thread John W. Holmes
Mark wrote: The syntax I am using is this. system('cmd/c start notepad my.txt', $results); or exec('start notepad my.txt', $results); You shouldn't be using exe() or system() for this, use fopen() to open a file from within PHP for editing. -- ---John Holmes... Amazon Wishlist:

Re: [PHP] Help with exec syntax

2003-11-16 Thread Mark
John W. Holmes wrote: Mark wrote: The syntax I am using is this. system('cmd/c start notepad my.txt', $results); or exec('start notepad my.txt', $results); You shouldn't be using exe() or system() for this, use fopen() to open a file from within PHP for editing. Thanks for the reply. The

RE: [PHP] help create community newbie guide to security

2003-11-13 Thread Jay Blanchard
[snip] If you code properly, you could get away with turning register_globals on, but this requires you to be very careful when thinking about the logic of your code. [/snip] I really do hate to see the misconception about register globals continue. The bottom line is variable handling,

RE: [PHP] help create community newbie guide to security

2003-11-13 Thread Chris Shiflett
--- Jay Blanchard [EMAIL PROTECTED] wrote: [snip] If you code properly, you could get away with turning register_globals on, but this requires you to be very careful when thinking about the logic of your code. [/snip] I really do hate to see the misconception about register globals

Re: [PHP] Help with scripts to add records to a database

2003-11-12 Thread Boyan Nedkov
Rolf Brusletto wrote: Mark wrote: Sorry guys, I have tried all the suggestions so far with no luck. Regards, Mark Mark - After the mysql_query($query); line add the following line echo mysql_error(); run the script and try to add something again, if there is an error, it will tell

Re: [PHP] Help with scripts to add records to a database

2003-11-12 Thread Kim Steinhaug
Important to mention, that the reason why the $variable probably doesnt work is that your service provider has turned off the globals. In this case you would need, as Zhuravlev mentions, use $_POST[variable] to insert the records. All in all, since the factory setting in the new versions of PHP

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Chris W. Parker
Chris Shiflett mailto:[EMAIL PROTECTED] on Monday, November 10, 2003 8:21 PM said: It would probably need to be either very short or very long. Yes, I would prefer very long so as to be as complete as possible. 2. The session id should not be stored on the client. I'm not sure I agree

Re: [PHP] Help with Javascript

2003-11-12 Thread Payne
Pablo, Ok, I have it the page called top.php right now, are you that I need to place this in my index.html? Payne Pablo Gosse wrote: Hi Payne. The problem here is indeed the target attribute. You say that if you remove the target attribute it works, but is lost due to frames. What exactly

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Chris Shiflett
--- Chris W. Parker [EMAIL PROTECTED] wrote: My original thinking was that I wouldn't be using the session id as I would the unique identifier because of point #2 (you shouldn't store the session id on the client). But since you point out that storing the session id is a necessary evil (if I

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Pablo Gosse
[snip] It might be best to not try and definitely declare what counts as foreign data, because it's a sort of everything else type of thing. If it doesn't originate within the PHP script itself, it is foreign.[/snip] What about data from a database which is retrieved within the PHP script? Would

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Andre Volmensky
[snip] Hmmm... ok so that's all I can think of. I think it'd be a really great thing for the community if this list was corrected and added too in a detailed way (such as I've tried to do here). Looking forward to all the responses. [/snip] All these responses and nobody has said anything about

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Chris Shiflett
--- Pablo Gosse [EMAIL PROTECTED] wrote: [snip] It might be best to not try and definitely declare what counts as foreign data, because it's a sort of everything else type of thing. If it doesn't originate within the PHP script itself, it is foreign.[/snip] What about data from a database

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Chris W. Parker
Andre Volmensky mailto:[EMAIL PROTECTED] on Wednesday, November 12, 2003 2:17 PM said: All these responses and nobody has said anything about register_globals? heh, I guess you're right. Feel free to elaborate on what you mean for those of us that don't know what's up with

RE: [PHP] help create community newbie guide to security

2003-11-12 Thread Andre Volmensky
[snip] All these responses and nobody has said anything about register_globals? heh, I guess you're right. Feel free to elaborate on what you mean for those of us that don't know what's up with register_globals. [/snip] Well it's all at http://www.php.net/register_globals for anyone that

Re: [PHP] Help with Javascript

2003-11-12 Thread Jason Wong
On Thursday 13 November 2003 01:47, Payne wrote: I know this is a php question so if you can give me a javascript mailing that would be a BIG help. Is it that hard to type javascript mailing list into your favourite search engine? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open

Re: [PHP] help create community newbie guide to security

2003-11-11 Thread Lawrence Kennon
Chris Shiflett wrote: In some cases, the developer may want certain HTML elements interpreted rather than escaped in this way. Perhaps you could mention that something like str_replace() can be used to convert specific HTML entities back to their original form. This method should

Re: [PHP] help create community newbie guide to security

2003-11-11 Thread Chris Shiflett
--- Lawrence Kennon [EMAIL PROTECTED] wrote: For a BBS I would like to let users post links to various resources. They 'post' a message to the BBS via a form and that is stored in a MySQL db, then the content of their 'post' is available to other users on the BBS. Currently I strip out all

Re: [PHP] help create community newbie guide to security

2003-11-11 Thread Adam i Agnieszka Gasiorowski FNORD
Chris W. Parker wrote: 10. Use htmlentities() on data that will be put through a SQL query to prevent XSS attacks. http://php.net/htmlentities How is it going to interact with MySQL FULLTEXT search SQL queries, where the characters and are in use as modifiers? -- Seks, seksi,

Re: [PHP] help create community newbie guide to security

2003-11-11 Thread Chris Shiflett
--- Adam i Agnieszka Gasiorowski FNORD [EMAIL PROTECTED] wrote: Chris W. Parker wrote: 10. Use htmlentities() on data that will be put through a SQL query to prevent XSS attacks. http://php.net/htmlentities How is it going to interact with MySQL FULLTEXT search SQL queries, where

Re: [PHP] help create community newbie guide to security

2003-11-11 Thread John W. Holmes
Lawrence Kennon wrote: For a BBS I would like to let users post links to various resources. They 'post' a message to the BBS via a form and that is stored in a MySQL db, then the content of their 'post' is available to other users on the BBS. Currently I strip out all PHP/HTML with the

Re: [PHP] help create community newbie guide to security

2003-11-11 Thread Lowell Allen
Lawrence Kennon wrote: For a BBS I would like to let users post links to various resources. They 'post' a message to the BBS via a form and that is stored in a MySQL db, then the content of their 'post' is available to other users on the BBS. Currently I strip out all PHP/HTML with the

RE: [PHP] Help with scripts to add records to a database

2003-11-11 Thread Mark
Sorry guys, I have tried all the suggestions so far with no luck. Regards, Mark try to include field name: $query = INSERT INTO contacts(first,$last,phone,mobile,fax,email,web) VALUES ('$first','$last','$phone','$mobile','$fax','$email','$web'); mysql_query($query);

Re: [PHP] Help with scripts to add records to a database

2003-11-11 Thread Rolf Brusletto
Mark wrote: Sorry guys, I have tried all the suggestions so far with no luck. Regards, Mark try to include field name: $query = INSERT INTO contacts(first,$last,phone,mobile,fax,email,web) VALUES ('$first','$last','$phone','$mobile','$fax','$email','$web'); mysql_query($query);

Re: [PHP] Help with scripts to add records to a database

2003-11-11 Thread zhuravlev alexander
On Tue, Nov 11, 2003 at 07:44:58PM -0800, Mark wrote: I am following the tutorial at http://www.freewebmasterhelp.com/tutorials/phpmysql/ The source code is on the website on the left hand side http://www.freewebmasterhelp.com/static/tutorials/phpmysql/example.zip My software: PHP

Re: [PHP] help create community newbie guide to security

2003-11-10 Thread Chris Shiflett
--- Chris W. Parker [EMAIL PROTECTED] wrote: What I'd like to do is gather enough info to be able to write a good, short (heck in can be long, I don't care) write up on what it takes to write a secure app and be able to post a link to said document any time someone asks a question security

Re: [PHP] help create community newbie guide to security

2003-11-10 Thread Raditha Dissanayake
Nice work chris, you have left precious little for the others to comment on :-) 10. Use htmlentities() on data that will be put through a SQL query to prevent XSS attacks. http://php.net/htmlentities This is a nice suggestion. While htmlentities() cannot be guaranteed to defend against all

Re: [PHP] Help With Recursion Multi-Dimensional Arrays

2003-11-09 Thread Burhan Khalid
Navid Yar wrote: Hello Guys, I need a little bit of help with recursion. I've searched our PHP website and Google, but none helped me understand my problem. There is a code below this message in order to help you understand what I am trying to achieve. Here is an explaination: What I'm trying to

Re: [PHP] Help With Recursion Multi-Dimensional Arrays

2003-11-09 Thread Lowell Allen
[snip] What I'm trying to do is list a typical category/subcategory system with parents and children associated with those parents. My database table (categories) lists all the parents and children together, each with a parent_id field (with root being a value of 0). What I want to do is, if

Re: [PHP] Help With Recursion Multi-Dimensional Arrays

2003-11-08 Thread Jordan S. Jones
Navid, So you want something like this: Category 1 Category 2 | --- Category a | Category b | Category X | Category Y |

Re: [PHP] help with EVAL direct

2003-11-05 Thread j . sobotka
Cpt John W. Holmes wrote: From: [EMAIL PROTECTED] OS RedHat 9 and RedHat 7.2 Apache 1.3.27 and Apache 2 I have problem with direct eval, in version PHP4.2.2 is all OK in version PHP 4.3.3 - direct eval bad here cut code $s = '$ret = ibase_execute($this-query, $arg_list[0],

Re: [PHP] help with EVAL direct

2003-11-04 Thread CPT John W. Holmes
From: [EMAIL PROTECTED] OS RedHat 9 and RedHat 7.2 Apache 1.3.27 and Apache 2 I have problem with direct eval, in version PHP4.2.2 is all OK in version PHP 4.3.3 - direct eval bad here cut code $s = '$ret = ibase_execute($this-query, $arg_list[0], $arg_list[1], $arg_list[2],

Re: [PHP] help!

2003-10-31 Thread Haseeb Iqbal
in php.ini (that will be in wondows folder or in wondows/systems folder) search for cgi.force_redirect and the set it to 0 HTH Haseeb - Original Message - From: Mårten Palm [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 01, 2003 12:11 AM Subject: [PHP] help! I have

Re: [PHP] help with mail() using smtp-auth

2003-10-26 Thread Marek Kilimajer
mail function cannot do stmp-auth, but there are classes that can, check out www.phpclasses.org/mimemessage Trell wrote: Hello, first time on the list, and I'm trying to learn PHP. Here is my setup, 2 servers, 1 is the MTA and 1 is the Web Server. The MTA is a qmail server with smtp-auth that

Re: [PHP] help me

2003-10-22 Thread Jordan S. Jones
Dave, First thing you need to do is find the location of your php.ini file. I typically create a document with the function phpinfo (); and load it up in the browser. This will tell you the location of the php.ini file. From there you need to use your favorite command line editor to open the

Re: [PHP] help me

2003-10-22 Thread John Nichel
Dave wrote: Hi I need to edit my php.ini file. I tried to do this through ftp but no go. I am really desperate. How do I do it through putty. Ie I log in su to root NOW WHAT? vi? Please give me step by step instructions including how to save and make my changes. I need to do the following I

Re: [PHP] help me

2003-10-22 Thread Burhan Khalid
Dave wrote: Hi I need to edit my php.ini file. I tried to do this through ftp but no go. I am really desperate. How do I do it through putty. Ie I log in su to root NOW WHAT? Find your php.ini file -- A few ways to do this. The easiest would be to look at the output of

Re: [PHP] help me

2003-10-22 Thread Burhan Khalid
Dave wrote: I am setting up downloads.ca so as to be like downloads.com I need to be able to upload files several gigs in size Dave Dave : Don't top post. FTP is what you need to upload files several gigs in size -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP

Re: [PHP] Help with file upload

2003-10-16 Thread Marek Kilimajer
Your webserver needs write permission to the directory where you want to copy. Bunmi Akinmboni wrote: This is the new code: ?php if (is_uploaded_file($_FILES['ufile1']['tmp_name'])) { copy($_FILES['ufile1']['tmp_name'], .); echo $ufile1_name ; echo DONE; echo ;

Re: [PHP] Help with file upload

2003-10-16 Thread Nitin
- Original Message - From: Bunmi Akinmboni [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 16, 2003 1:33 PM Subject: [PHP] Help with file upload This is the new code: ?php if (is_uploaded_file($_FILES['ufile1']['tmp_name'])) {

Re: [PHP] Help with treeview

2003-10-02 Thread - Edwin -
Hi, On Thu, 2 Oct 2003 15:18:48 +1000 Stephen [EMAIL PROTECTED] wrote: Does anyone know how to implement a treeview style display in PHP? Hmm... what exactly do you mean by treeview? Anyway, *I think* this is more of a Javascript/HTML question... So, find a site that uses treeview then study

RE: [PHP] Help with treeview

2003-10-02 Thread Craig Lonsbury
This should get you started... http://www.sitepoint.com/article/1105/1 it is a great article assuming that you will be using a db to store your data. hth, Craig -Original Message- From: Stephen [mailto:[EMAIL PROTECTED] Sent: October 1, 2003 11:19 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] Help with treeview

2003-10-02 Thread Ray Hunter
Does anyone know how to implement a treeview style display in PHP? PEAR has a treeview that I have used in the past and it works fine. http://pear.php.net/package/HTML_TreeMenu -- BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Help! the Error_Reporting doesn't work

2003-09-25 Thread Jay Blanchard
[snip] error_reporting = E_ALL ~E_NOTICE display_errors = On display_startup_errors = Off log_errors = On log_errors_max_len = 1024 ignore_repeated_errors = Off ignore_repeated_source = Off report_memleaks = On track_errors = Off But it doesn't work How can i solve it? [/snip] I am going toask

Re: [PHP] Help understanding code...

2003-09-25 Thread Jonathan Villa
! means not, for example $yes != $no Regarding the (xxx) ? x : x; Your assumption is correct I use it alot, but sometimes it's still better to use if/else statements On Thu, 2003-09-25 at 11:47, Jeff McKeon wrote: I've just picked up a more advanced book on PHP and it has a lot of example

Re: [PHP] Help understanding code...

2003-09-25 Thread Robert Cummings
On Thu, 2003-09-25 at 12:47, Jeff McKeon wrote: I've just picked up a more advanced book on PHP and it has a lot of example code in it. I understand most of it but some things I'm seeing I don't understand. Like the following... code:

RE: [PHP] Help understanding code...

2003-09-25 Thread Jeff McKeon
: Re: [PHP] Help understanding code... ! means not, for example $yes != $no Regarding the (xxx) ? x : x; Your assumption is correct I use it alot, but sometimes it's still better to use if/else statements On Thu, 2003-09-25 at 11:47, Jeff McKeon wrote: I've just picked up a more

Re: [PHP] Help understanding code...

2003-09-25 Thread Brent Baisley
Your assumptions are correct. It's called a ternary operator and it is a substitution or the if-else statements. I try not to overuse it since I don't think it's as readable as the block if statement. But for things not assigning a value to a variable, I think it's better than the block

RE: [PHP] Help understanding code...

2003-09-25 Thread Giz
). You could think of it as If (NOT(TWO STRINGS ARE EQUAL)) THEN { DO THIS STUFF } -Original Message- From: Jeff McKeon [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 9:55 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Help understanding code... Thanks

RE: [PHP] Help understanding code...

2003-09-25 Thread Robert Cummings
ARE EQUAL)) THEN { DO THIS STUFF } -Original Message- From: Jeff McKeon [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 9:55 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Help understanding code... Thanks for the reply. What about he use

RE: [PHP] help with arrays

2003-09-23 Thread Chris W. Parker
Chris W. Parker on Tuesday, September 23, 2003 1:38 PM said: Someone have a clue? Hmm... maybe www.php.net/array_keys will help me out here. chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help with arrays

2003-09-23 Thread Robert Cummings
It doesn't get much simpler :) foreach( $data as $key = $value ) { if( $value == '' ) { $data[$key] = 'nbsp;' } } Cheers, Rob. On Tue, 2003-09-23 at 16:38, Chris W. Parker wrote: Hey people. I've got an array like this: [0] = Array ( [0] =

RE: [PHP] help with arrays

2003-09-23 Thread Chris W. Parker
Robert Cummings mailto:[EMAIL PROTECTED] on Tuesday, September 23, 2003 1:43 PM said: It doesn't get much simpler :) Doh!! foreach( $data as $key = $value ) I don't use that syntax much so I'm not familiar with it. Maybe I should start eh? Thanks, Chris. -- PHP General Mailing List

Re: [PHP] help with arrays

2003-09-23 Thread Pete James
Of course, you could do it in a much more cryptic way... just for fun. :-) INPUT: ?php $a = array( '0' = 'j', 'fname' = 'j', '1' = 'j', 'lname' = 'j', '2' = 'jj', 'state' = '', '3' = '[EMAIL PROTECTED]',

Re: [PHP] help with arrays

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 17:06, Pete James wrote: Of course, you could do it in a much more cryptic way... just for fun. AKA Perl style ;) -- .. | InterJinn Application Framework - http://www.interjinn.com |

Re: [PHP] help with arrays

2003-09-23 Thread Eugene Lee
On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote: : : Robert Cummings mailto:[EMAIL PROTECTED] said: : : foreach( $data as $key = $value ) : : I don't use that syntax much so I'm not familiar with it. Maybe I should : start eh? Another caveat: it works on a *copy* of the array.

Re: [PHP] help with arrays

2003-09-23 Thread Robert Cummings
On Tue, 2003-09-23 at 17:37, Eugene Lee wrote: On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote: : : Robert Cummings mailto:[EMAIL PROTECTED] said: : : foreach( $data as $key = $value ) : : I don't use that syntax much so I'm not familiar with it. Maybe I should : start

Re: [PHP] help with arrays

2003-09-23 Thread Eugene Lee
On Tue, Sep 23, 2003 at 05:44:46PM -0400, Robert Cummings wrote: : On Tue, 2003-09-23 at 17:37, Eugene Lee wrote: : On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote: : : : : Robert Cummings mailto:[EMAIL PROTECTED] said: : : : : foreach( $data as $key = $value ) : : : : I

RE: [PHP] Help!!!

2003-09-18 Thread Chris W. Parker
#meen shari-ah# mailto:[EMAIL PROTECTED] on Thursday, September 18, 2003 1:05 AM said: Please do not post messages with Help!!! as the title. Everyone who posts to this list needs help in some way. It's much better if you give a short description of your problem. For example, can't connect to

RE: [PHP] Help!!!

2003-09-18 Thread Jay Blanchard
[snip] Notice: Use of undefined constant {several times} [/snip] This means that several constants are undefined. You should have the following for each of these constants... define (constant-name, constant-value); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] help with message from tech support

2003-09-12 Thread Raditha Dissanayake
Hi Sam, Surely it couldn't have been hacked? IIS is the most secure web server you have seen their advertisements :-) Sam Folk-Williams wrote: Hi, I posted about the below issue yesterday, following is the follow-up from tech support. Are they saying the server was hacked? Is there anything I

Re: [PHP] help with message from tech support

2003-09-12 Thread R'twick Niceorgaw
Sam Folk-Williams said the following on 9/12/2003 12:32 PM Hi, I posted about the below issue yesterday, following is the follow-up from tech support. Are they saying the server was hacked? Is there anything I can do on my end, or does this sound like their problem? When I try to visit the

Re: [PHP] help with message from tech support

2003-09-12 Thread Sam Folk-Williams
It's definitely possible they upgraded recently and screwed up somethng. They are interland (www.interland.com) -- a pretty big host. The company I work for has had tons of problems with them, though -- the site goes down a lot. I'm wondering if this is really malicious or if they just screwed up.

Re: [PHP] Help with Displaying RSS feed links

2003-09-09 Thread Alister
On Tue, 9 Sep 2003 15:35:48 -0500 Frank Miller [EMAIL PROTECTED] wrote: Hello all, I'm working on an entry page where I would like to show some of the current headlines from technology websites. I've been following and pretty much understand the article on devshed

Re: [PHP] Help with Displaying RSS feed links

2003-09-09 Thread Matt Matijevich
could you use this for your loop? $sizeArr = sizeof($items); for ($row=0; $row$sizeArr; $row++) { echo trtda href= . $items[$row]['link'] . . $items[$row]['title'] . /abr . $items[$row]['description'] . /td/tr; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Help with copy()/uploading a file

2003-09-03 Thread Marek Kilimajer
Use move_uploaded_file() instead of copy(). The former bypasses safe mode restrictions. James Johnson wrote: Hi, I need some help with the copy() function in order to allow a user to upload an image. The image will need to be in a folder that I can access it's URL for display in a page. The

RE: [PHP] help with parse error

2003-08-26 Thread Paul Fitzpatrick
Hi, Maybe.. $sql = SELECT Title, SubT, Author, Story FROM SiteNews; should be $sql = SELECT Title, SubT, Author, Story FROM SiteNews; -Original Message- From: Stevie D Peele [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 5:41 PM To: [EMAIL PROTECTED] Subject: [PHP] help

Re: [PHP] Help with reading files

2003-08-24 Thread [EMAIL PROTECTED]
How to handle file upload is well explained right at the start of the manual. Once the file has been transfered to your server you can make use of the numerous methods described in the 'filesystem functions' of the manual to handle it. Yasir Malik wrote: I am doing my development for our

Re: [PHP] Help with a script

2003-08-23 Thread Jim Lucas
what is the source for the page that you initially enter the data on the web form look like? Jim Lucas - Original Message - From: Stevie D Peele [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 23, 2003 6:25 AM Subject: [PHP] Help with a script I've been working on a

Re: [PHP] Help with a script

2003-08-23 Thread Stevie D Peele
Heres the source of the page where I initially enter the data - - - body hr noshade color=black size=2 font face=Verdana, sans-serif size=1 h2BMyPHP Site News v1.0/b/h2

Re: [PHP] HELP! I'm Desperate...

2003-08-20 Thread [EMAIL PROTECTED]
Did you put in a 'help wanted' at sourceforge? usually works. Jason Sheets wrote: Why not go to a cybercafe every few days or once a week and check on the project? You can also go to Kinkos or your local library, most of them have internet enabled pcs. Jason Michael A Smith wrote: Hi,

Re: [PHP] Help with parse error

2003-08-20 Thread Peter James
Can you give us a couple lines either side of this? This could be due to a missing semicolon on the previous line. -- Peter James Editor-in-Chief, php|architect Magazine [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original Message -

RE: [PHP] Help with parse error

2003-08-20 Thread James Johnson
Yup, that was it. Missing a semi-colon on line 8. Thanks, James -Original Message- From: Peter James [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 1:17 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Help with parse error Can you give us a couple lines either side

Re: [PHP] HELP! I'm Desperate...

2003-08-19 Thread Jason Sheets
Why not go to a cybercafe every few days or once a week and check on the project? You can also go to Kinkos or your local library, most of them have internet enabled pcs. Jason Michael A Smith wrote: Hi, I'm going off to school and won't have computer access for like 9 months... :-\ .. and

<    6   7   8   9   10   11   12   13   14   15   >