[PHP] Re: Beginner question : Removing spaces in forms

2002-12-12 Thread Paul Chvostek
On Fri, Dec 13, 2002 at 02:19:07PM +1100, Andrew Wilson wrote: > > Hay guys i was wondering if there was a form parameter of something > equivalent for input text boxes that when a user enters a number or series > of numbers that it removes the spaces. Are you saying that your users will hit the

[PHP] Re: fwrite and line breaks

2002-12-12 Thread Paul Chvostek
On Fri, Dec 13, 2002 at 12:44:14AM -0600, Jami wrote: > > I know that fwrite needs to be written as such: > > $Open=fopen($MyFile, "w"); > fwrite($Open, "Text to add to file.\n"); > > The file is being saved on a Unix server, but Windows/Mac users will be downloading >the file. How can I creat

[PHP] Re: Regex question

2002-12-12 Thread Paul Chvostek
On Thu, Dec 12, 2002 at 11:01:47PM -0800, Troy May wrote: > > How would take a regular non-formatted text link (http://www.link.com) and > turn it into ready to post HTML? (href=http://www.link.com>http://www.link.com) > > Darn, Outlook formats it, but you get the idea. It would just be typed out

[PHP] Regex question

2002-12-12 Thread Troy May
How would take a regular non-formatted text link (http://www.link.com) and turn it into ready to post HTML? (http://www.link.com>http://www.link.com) Darn, Outlook formats it, but you get the idea. It would just be typed out normally. Any ideas? -- PHP General Mailing List (http://www.php.net

[PHP] fwrite and line breaks

2002-12-12 Thread Jami
I know that fwrite needs to be written as such: $Open=fopen($MyFile, "w"); fwrite($Open, "Text to add to file.\n"); The file is being saved on a Unix server, but Windows/Mac users will be downloading the file. How can I create line breaks that notepad/textpad will use to create new lines, inste

[PHP] Apache dumps core when using php with mm

2002-12-12 Thread Roger Andersson
I want to use mm for session handling and as I haven't enabled it before my first action was to try to enable mm in php. apache configure: LD_SHLIB=ld ./configure --with-layout=OpenBSD --enable-module=rewrite --enable-module=so --enable-module=info --server-uid=www --server-g id=www php configur

[PHP] Re: Cybercash/Verisign and PHP possible?

2002-12-12 Thread Jean-Christian Imbeault
Matty Rozen wrote: by using the 'curl' module, you can use any calls needed to any type of scripts. you can use curl to "talk" with the cgi. Ok, I'll look into CURL. If I understand their system, it is meant to be called from a form so CURL might be applicable. > let me know if you need more

[PHP] Re: Beginner question : Removing spaces in forms

2002-12-12 Thread Doug Parker
I've solved similar things, i.e. removing commas from a number of text fields, by looping through the input boxes and doing a search/replace - all using Javascript via the onSubmit event. This chunk of code removes commas from input boxes:
for (var i = 0; i < form.elements.length; i++)

[PHP] approaching a relational database

2002-12-12 Thread Doug Parker
I'm about to embark on a project where I have to enter many, many fields into a MySQL database, and I don't know how to approach the database structure. The data is statistics for a golf course. There are 18 holes, and each hole has a Red Tee Par, White Tee Par, and Blue Tee Par, which is 54

Re: [PHP] How To get the Time Zone of the visitor?

2002-12-12 Thread Tom Culpepper
Found this tutorial that might be helpful http://martin.f2o.org/php/localtime -tom Jacob Mangalyajyothy wrote: Hi All, I would lik eto get the information about the location of the visitors to my site like From which IP, What browser and which part of the world etc. How can get the information

Re: [PHP] How To get the Time Zone of the visitor?

2002-12-12 Thread Tom Culpepper
You can get the IP using getenv() (http://www.php.net/manual/nl/function.getenv.php) not sure how you would get the time zone though. -tom culpepper Jacob Mangalyajyothy wrote: Hi All, I would lik eto get the information about the location of the visitors to my site like From which IP, What br

Re: [PHP] Re: Mail() Not working right

2002-12-12 Thread Tom Culpepper
I actaully already wrote one like that. The PHP is going fine, the problem I believe is PHP interfacing with my mail server. Thanks though Steve Yates wrote: "Tom Culpepper" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... while I get no PHP errors the mail is

[PHP] undefined macro: AC_PROG_LIBTOOL

2002-12-12 Thread Ramakrishnan_S
Hi When I run phpize I am getting following error bash-2.02$ phpize configure.in:46: error: possibly undefined macro: AC_PROG_LIBTOOL autoheader: `config.h.in' is unchanged /export/home/bt6817/php/php-4.2.3/bin/phpize: libtoolize: not found The Php is compiled and installed sucessfully (in Solari

[PHP] How To get the Time Zone of the visitor?

2002-12-12 Thread Jacob Mangalyajyothy
Hi All, I would lik eto get the information about the location of the visitors to my site like From which IP, What browser and which part of the world etc. How can get the information about the location of the visitor, using PHP? for me, the time zone is sufficient. Thanks in advance. Jacob Jos

[PHP] Re: Mail() Not working right

2002-12-12 Thread Steve Yates
"Tom Culpepper" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > while I get no PHP errors the mail is never sent. > mail("[EMAIL PROTECTED]", "testing 1234", "this is a test message"); I don't think this shows an error if it doesn't work. Try $mailsuccess

Re: [PHP] Smarty + css + dreamweaver

2002-12-12 Thread Steve Yates
"Olinux" <[EMAIL PROTECTED]> wrote in message > > problem here. But ... since scriptsN.php need the > > So the browser shouldnt find the style sheet because > > TemplatesN.html > > call ../style.css and ../style.css doesnt exists > > relative to > > http://site/scriptN.php , and for my surprise the

[PHP] OOP

2002-12-12 Thread Faisal Abdullah
Hi guys, It goes something like this: class Myclass extends GtkWindow { var $run_xpm; var $pixmap; var $mask; function Myclass() { $this->run_xpm = array("bla", "bla"); $this->GtkWindow(GTK_WINDOW_TOPLEVEL); $this->connect("destroy", array($this, shutdown)); $this->set_title("Ru

[PHP] Re: Smarty + css + dreamweaver

2002-12-12 Thread conbud
Daniel Masson wrote: Hi list : This is maybe a silly question from deamweaver users, i hope you people understand what i mean. im working on a site php, smarty,css , etc. the directory structure of the site is this: -- - classes -

[PHP] Beginner question : Removing spaces in forms

2002-12-12 Thread Andrew Wilson
Hay guys i was wondering if there was a form parameter of something equivalent for input text boxes that when a user enters a number or series of numbers that it removes the spaces. If there is no alternative how would you go about solving this issue. Your help is appreciated. Thanks. Netway N

Re: [PHP] XML Enabled not there

2002-12-12 Thread Tom Rogers
Hi, Friday, December 13, 2002, 9:09:43 AM, you wrote: QB> Hi, QB> If phpinfo() does not have an 'XML' section, and so 'XML Enabled true' is not there, but the compile line is '--with-xml=shared,/usr', does this mean that I have XML support or not? QB> PHP 4.0.3pl1, Apache 1.3.9 QB> I am

[PHP] Re: Performance issues

2002-12-12 Thread michael kimsal
Karel wrote: I'm having a lot of trouble with loading times... Let me explain in detail: I've a full & huge coded website based upon a mysql database... mysql entries: at least 2M php code: at least 1M lines (longest file about 25k, without includes) about 2 months ago we resetted the entire d

RE: [PHP] Smarty + css + dreamweaver

2002-12-12 Thread olinux
because dreamweaver knows what your local root folder is, so it can find it. --- Daniel Masson <[EMAIL PROTECTED]> wrote: > Thanks for your reply ... I know about absolute > paths ... My question is > why it did work ??? > > Cordialmente; > Daniel E. Massón. > Web: www.imagine.com.co > Te Deseam

Re: [PHP] PHP/MySQL Interaction

2002-12-12 Thread Brad Bonkoski
Wouldn't this involved a sub-query? i.e. select * from images where ( select * from categories where cat_id = 3 AND cat_id != 5) Now, the question is, do the more recent versions of mysql support subqueries? Take a look at: http://www.mysql.com/documentation/mysql/bychapter/manual_Introduction

Re: [PHP] Re: problems with jsp & php

2002-12-12 Thread Jeff Bluemel
yes this is javascript - for some reason I thought jsp was another term for javascript so I apologize. Let me try these code changes, and see how this shakes out. Jeff "Chris Wesley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm pretty sure everyone else

Re: [PHP] take text before '-' and after it

2002-12-12 Thread Justin French
Hi, Then you can do whatever you want with them... but I can't see why you'd write them to a disk file AND write them to a mysql database -- wouldn't it be one or the other? on 13/12/02 2:49 AM, Antti ([EMAIL PROTECTED]) wrote: > How can I take some text before the mark - and after it and pu

Re: [PHP] Re: xml_parse and xml entities

2002-12-12 Thread Khalid El-Kary
Hi, If you are going to use this output in HTML pages, it won't matter at all, because HTMl only cares about (s), so the additional line-feeds and even additional spaces(except the first space) won't be taken care of by the browser ;) or you have something additional to say ? Regards, Khalid A

Re: [PHP] xml_parse and xml entities

2002-12-12 Thread Khalid El-Kary
hi Russ, why don't you just str_replace the <, > and & with their entities and when they get extracted the parser will normally replace them with their original form, won't it? Regards, Khalid Al-Kary Hi all, I'm writing a guestbook and message in the guestbook might contain & < > so to m

[PHP] Sorry if repost - more ftp problems

2002-12-12 Thread poliva
I tried to ftp with php's ftp functions, but was only able to upload zero byte files. So, I then tried to upload with fsockopen, but again, my script uploads a zero byte file. It bombs out at: FTP transaction: 220 marlborough FTP server (CH/1.9) ready. 331 Password required for [EMAIL PROTECTE

Re: [PHP] ExpertRating launches PHP Certification Exam

2002-12-12 Thread DL Neil
I must be a suspicious character, but I haven't come across Expert Rating before, nor do I know what Pete's connection with Expert Rating is, so I went and looked at the PHP web site (where we are led to believe that we would expect to find "a lot of excitement") but a site-wide search fails to yie

[PHP] PHP/MySQL Interaction

2002-12-12 Thread David Freeman
Hi All This is probably off-topic here and my only real excuse is that after having searched google as well as both php and mysql sites/manuals I'm no closer to an answer for something I'd like to get solved this morning... I have two database tables (mysql). One contains information about image

RE: [PHP] MySQL error

2002-12-12 Thread Craig Thomas
--> line 36 while($row = mysql_fetch_row($mysql_result)) >> >>Anyway, where do you define $row? >> >>HTH >> >>-Craig DOH! it's been a long one... -Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] my cgi version of php prints Content-type: text/html on web page

2002-12-12 Thread Lucas Rockwell
hi all, i have successfully run php as a cgi on Solaris and on another OS X machine, but now, with php 4.2.3, my pages are spitting out "Content-type: text/html" at the top. of course, "Content-type: text/html" is important, but why is it showing up on my page...? maybe apache is already outputtin

Re: [PHP] MySQL error

2002-12-12 Thread Philip Olson
You need to do some error handling, as in: > $mysql_result = mysql_query($query, $mysql_link); > > // get each row > > --> line 36 while($row = mysql_fetch_row($mysql_result)) > Make sure $mysql_result is a valid resource as PHP is telling you it's not. Here's one way: i

RE: [PHP] MySQL error

2002-12-12 Thread Craig Thomas
>> $mysql_result = mysql_query($query, $mysql_link); I am not sure if this is your only problem or not, but mysql_result(); is a function in php. Using a function name as a variable seems like it will just lead to confusion to me. I'd try to avoid it. >>--> line 36 while($row = mysql

Re: [PHP] Error using require_once

2002-12-12 Thread Jason Wong
On Friday 13 December 2002 09:20, enediel wrote: > when I make a call from index.php to a function defined on > global_functions.php, the called function can not use the database > connection referred before. Inside the function declare the variable you want to use as "global", see manual for de

[PHP] XML Enabled not there

2002-12-12 Thread Quentin Bennett
Hi, If phpinfo() does not have an 'XML' section, and so 'XML Enabled true' is not there, but the compile line is '--with-xml=shared,/usr', does this mean that I have XML support or not? PHP 4.0.3pl1, Apache 1.3.9 I am checking the configuration of a server before implementing on it - in f

Re: [PHP] Re: Nigerian oil scams

2002-12-12 Thread Brad Bonkoski
Of course Identity theft is another issue Classic email scam to get people's bank account numbers. I think I have seen such on this mailing list about 2-3 times over the past couple of months. Jason Wong wrote: > On Friday 13 December 2002 06:58, Russ Taylor wrote: > > Got to love people who

Re: [PHP] Re: Nigerian oil scams

2002-12-12 Thread Jason Wong
On Friday 13 December 2002 06:58, Russ Taylor wrote: > Got to love people who use all capitals. > > How would the scammer profit from this? I guess given your full details and > bank number they can do what? They ask you to put some money upfront. Believe it or not, some gullibles mugs have been

Re: [PHP] MySQL error

2002-12-12 Thread Brad Bonkoski
Well, are you getting a valied response from the database? Perhaps it would be nice to add some error handling into your code... i.e.: $mysql_result = mysql_query($query, $mysql_link) or die("Invalid query: $query"); or echo out mysql_error(); GWAD Mailinglist wrote: > Hi, > > I have following

Re: [PHP] Nigerian oil scams

2002-12-12 Thread Paul Marinas
:) Paul Marinas Technical Support RDS Craiova Phone: +402-51-410-194 Mobile: +407-22-451-439 Fax:+402-51-416-579 www.rdsnet.ro . Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated

[PHP] Re: Nigerian oil scams

2002-12-12 Thread Russ Taylor
Got to love people who use all capitals. How would the scammer profit from this? I guess given your full details and bank number they can do what? Cheers "John Meyer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > php > > How did a Nigerian oil scam e-mail ge

[PHP] MySQL error

2002-12-12 Thread GWAD Mailinglist
Hi, I have following problem: list.php3 line 36 while($row = mysql_fetch_row($mysql_result)) { //get columns $id = $row[0]; $ynimi = $row[1]; $ylahi = $row[2]; $ypostios = $row[3]; $ypostitmp = $row[11];

[PHP] Re: xml_parse and xml entities

2002-12-12 Thread Russ Taylor
Another problem I have is I did $message = str_replace("\n","", $message); and instead of getting Helo <

Hey
Hey I have Helo <

Hey
Hey Any ideas please? Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Nigerian oil scams

2002-12-12 Thread John Meyer
php How did a Nigerian oil scam e-mail get on this list, anyway? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] REPLY NEEDED

2002-12-12 Thread PATRICK KOFI
ASSISTANCE WE ARE MEMBERS OF A SPECIAL COMMITTEE FOR BUDGET AND PLANNING OF THE NIGERIA NATIONAL PETROLEUM CORPORATION (NNPC)IN WEST AFRICA. THIS COMMITTEE IS PRINCIPALLY CONCERNED WITH CONTRACT AWARDS AND APPROVAL. WITH OUR POSITIONS, WE HAVE SUCCESSFULLY SECURED FOR OURSELVES

[PHP] Error using require_once

2002-12-12 Thread enediel
I have a php files dependencies in this order: .../php/index php .../php/globals/db_connection.php .../php/globas/global_functions.php in db_connection.php I declared a variable with the connection to a postgreSQL database. on index.php, everything is fine I can use the database connection

[PHP] xml_parse and xml entities

2002-12-12 Thread Russ Taylor
Hi all, I'm writing a guestbook and message in the guestbook might contain & < > so to make sure this wasn't a problem I was advised to great entities in my xml file like so ]> and when I write to my xml file if I convert all & < > characters to & < > problem solved. I'm having

RE: [PHP] Odd Strpos Behavior

2002-12-12 Thread Steve Keller
At 12/11/2002 08:09 PM, you wrote: Okay, so how do you know what to replace something like [author] with? What exactly are you doing again? I've forgotten the original question. :) Ok, got a sentence, like: a pile of [metal] 600 feet wide and 30 feet tall. On top of it is a [monster].

RE: [PHP] PHP + MySQL looping question

2002-12-12 Thread Craig Thomas
Set the new array before your for loops, then loop over the array. -Craig >>-Original Message- >>From: Mark McCulligh [mailto:[EMAIL PROTECTED]] >>Sent: Thursday, December 12, 2002 4:56 PM >>To: [EMAIL PROTECTED] >>Subject: Re: [PHP] PHP + MySQL looping question >> >> >>If I understand yo

Re: [PHP] PHP + MySQL looping question

2002-12-12 Thread Mark McCulligh
If I understand you if you use the mysql_query($sql) again won't it rerun my SQL again, not just reprint. Example: $result = mysql_query($sql); for ($i = 1; $i <= 3; $i++) { while ($row = mysql_fetch_array($result)) { //Some Code echo $row['filed']; } //Reset result arra

Re: [PHP] Mail() Not working right

2002-12-12 Thread Tom Culpepper
I just found out that the server taht I though was running sendmail is in fact running another program (communigate). I think php is just not interfacing with it correctly. I know this is kinda off topic but is there anyway to monitor what is being sent back to the system from the PHP command

Re: [PHP] Session Issues when Cookies are Disabled

2002-12-12 Thread Richard Baskett
You could put it in yourself action="somepage.php" or my preference is stick the session as a hidden field /> Cheers! Rick "Finish each day and be done with it. You have done what you could; some blunders and absurdities have crept in; forget them as soon as you can. Tomorrow is a new day; y

RE: [PHP] PHP + MySQL looping question

2002-12-12 Thread Craig Thomas
>>The problem is I have to reset the SQL result array on each for >>loop. How do >>you do that? $myNewArrayFullofSqlResultsThatICanLoopOverAsManyTimesAsIWant = mysql_query($sql); -Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] changing endianness

2002-12-12 Thread David Rice
On Thursday, December 12, 2002, at 03:10 PM, Marek Kilimajer wrote: Does anyone know a way to change endianness of a binary string? Hi Marek: You might look at pack() and unpack(). http://www.php.net/manual/en/function.pack.php Perhaps one of the options for unpack? HTH David -- PHP Gene

Re: [PHP] PHP + MySQL looping question

2002-12-12 Thread bbonkosk
Mark, Try looking at : http://www.php.net/manual/en/function.mysql-data-seek.php and see if that function gives you the desired result. HTH -Brad > I was wondering if there is a easy way to loop through the same SQL results > many times. > I have a for loop that loops 3 time. Each time I want to

Re: [PHP] PHP + MySQL looping question

2002-12-12 Thread Jason Wong
On Friday 13 December 2002 05:40, Mark McCulligh wrote: > I was wondering if there is a easy way to loop through the same SQL results > many times. > I have a for loop that loops 3 time. Each time I want to loop through the > SQL result printing. > > The end result is printing the SQL results 3 ti

[PHP] PHP + MySQL looping question

2002-12-12 Thread Mark McCulligh
I was wondering if there is a easy way to loop through the same SQL results many times. I have a for loop that loops 3 time. Each time I want to loop through the SQL result printing. The end result is printing the SQL results 3 times in a order. The problem is I have to reset the SQL result arra

Re: [PHP] Update query

2002-12-12 Thread Jason Wong
On Thursday 12 December 2002 18:48, Steve Jackson wrote: > It doesn't work in that it doesn't update the database. > I have a form which when loaded takes a variable ItemCode from the > previous page (which gets the Itemcode from the DB) and puts it into a > hidden field which I call oldItemCode, t

Re: [PHP] Proposal: New list etiquette/rule

2002-12-12 Thread Jason Wong
On Thursday 12 December 2002 20:06, DL Neil wrote: > Spam Arrest Sender VerificationYesterday we held an amusing discussion > which highlighted the futility of using (badly implemented) technological > 'solutions' to a social problem... > > Herewith I attach a response received pursuant to a list c

RE: [PHP] Re: Problems connecting to a MySQL database

2002-12-12 Thread Craig Thomas
>>previous page. Try putting the log in information and anything >>else needed >>in hidden fields in your form. YIKES!...hidden form fields are viewable in the html source generated. session_register() anyone? I thought you were trying to re-use the db connection? if so, use mysql_pconnect() i

[PHP] Windows mail() problem with newlines

2002-12-12 Thread Don Sutherland
I have found what looks to be a problem with the php mail() function and string in the message body with \n newlines in them. using the following piece of code to test generates the following output Warning: Server Error in d:\apache\htdocs\mailtest.php on line 8 Res: If I change $msg to $ms

RE: [PHP] Smarty + css + dreamweaver

2002-12-12 Thread Daniel Masson
Thanks for your reply ... I know about absolute paths ... My question is why it did work ??? Cordialmente; Daniel E. Massón. Web: www.imagine.com.co Te Deseamos una Feliz Navidad y un Prospero 2,003 > -Mensaje original- > De: olinux [mailto:[EMAIL PROTECTED]] > Enviado el: jueves, 12

Re: [PHP] Mail() Not working right

2002-12-12 Thread Jason Wong
On Friday 13 December 2002 04:00, Tom Culpepper wrote: > I am trying to get the mail() function to work right on my system and > while I get no PHP errors the mail is never sent. Running on a linux > server with PHP3 and I have confirmed that the command line mail > function does work along with a

[PHP] Session Issues when Cookies are Disabled

2002-12-12 Thread charlie collins
I have an issue with PHP when Cookies are not enabled on the client. I am using 4.2.x (have tried on various versions) and enable-trans-sid is ON. The problem is that the automatic url encoding that enable-trans-sid performs works great for anchor tags (links) but it does NOT WORK for POST forms

Re: [PHP] Smarty + css + dreamweaver

2002-12-12 Thread olinux
use absolute path or http://www.sitename.com/style.css"; type="text/css"> --- Daniel Masson <[EMAIL PROTECTED]> wrote: > Hi list : > > This is maybe a silly question from deamweaver > users, i hope you people > understand what i mean. > > im working on a site php, smarty,css , etc. the > di

Re: [PHP] protect downloadable files

2002-12-12 Thread olinux
This has been covered several times recently - check the archives. zend.com has a great article detailing how to accomplish this. olinux --- Adam Voigt <[EMAIL PROTECTED]> wrote: > Make the download link a PHP page: > > download.php?fileid+AD0-199 > > Then check to make sure there session is

[PHP] Smarty + css + dreamweaver

2002-12-12 Thread Daniel Masson
Hi list : This is maybe a silly question from deamweaver users, i hope you people understand what i mean. im working on a site php, smarty,css , etc. the directory structure of the site is this: -- - classes - Files of the smarty cl

Re: [PHP] Re: Problems connecting to a MySQL database

2002-12-12 Thread Hugh Danaher
Eric, When the page gets reloaded it "forgets' the variables passed to it from the previous page. Try putting the log in information and anything else needed in hidden fields in your form. Hugh - Original Message - From: "eric" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, De

Re: [PHP] XML Data push

2002-12-12 Thread Chris Boget
> You want the receiving page to be php that makes an xml page that is > then pushed to be a processing page back to the user? > I think some more detail might be needed... The reason I want to do this is so that other things (such as a program on a client's PC, another web site) can push XML data

Re: [PHP] PHP Redirects

2002-12-12 Thread Clint Tredway
Look at this: http://www.example.com/";); /* Redirect browser */ exit; /* Make sure that code below does not get executed when we redirect. */ ?>This needs to be before anything else being outputted or you can use javascript to redirect.location='Re: [PHP] PHP Redirects
Sure is: header("Location: somepage.ext"); exit; Cheers! Rick "If you think you're too small to have an impact, try going to bed with a mosquito in the room." - Anita Koddick > From: "James Johnson" <[EMAIL PROTECTED]> > Date: Thu, 12 Dec 2002 12:30:19 -0800 > To: <[EMAIL PROTECTED]> > Subject

[PHP] PHP Redirects

Hi, In ColdFusion, I can redirect to another page with the tag . Is there an equivalent in PHP? Thanks, Jim Johnson

Re: [PHP] Paging / Navigation Help

Ummm... because that's exactly what you're asking for. Look over your code again. COUNT(*) returns one record in one column, one row. ---John Holmes... - Original Message - From: "William Martell" <[EMAIL PROTECTED]> To: "phplist" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "[EMAIL PROTECTE

[PHP] changing endianness

Hello, Does anyone know a way to change endianness of a binary string? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Paging / Navigation Help

Hello ALL. Can anyone tell me why the number of rows is always 1 and count is the total number of records in my database. Thanks in Advance, William [snip] 0;",$db); //get number of rows returned $number_of_rows = mysql_num_rows($result); if ($number_of_rows != '0') { while ($myr

[PHP] Mail() Not working right

I am trying to get the mail() function to work right on my system and while I get no PHP errors the mail is never sent. Running on a linux server with PHP3 and I have confirmed that the command line mail function does work along with a few perl scripts that send mail as well. Here is the code

[PHP] Fw: [SMARTY] JavaScript / PHP syntax problems

My mistake for posting to the wrong list. Meant to go to php-general. I've got it working now. There's an option in Dreamwever for escaping quotes with % 's or not. Jim - Original Message - From: "Hoffman, Geoffrey" <[EMAIL PROTECTED]> To: "James Johnson" <[EMAIL PROTECTED]> Sent: Thursda

Re: [PHP] Re: problems with jsp & php

I'm pretty sure everyone else is as confused by your description as I am. (Hence, I didn't answer.) It looks like you're trying to generate JavaScript w/ PHP, but your subject mentions JSP. In a nutshell, I don't know if what you're doing is over my head, or just not explained clearly. I can man

[PHP] Re: Problems connecting to a MySQL database

A prompt? Not sure I understand. The first time around it connects ok with PHP. I can retrieve all the rows. It's the 2nd time where it doesn't. Jeff Bluemel wrote: > have you tried connected to the mysql database from a prompt before using > php??? > > > "Eric" <[EMAIL PROTECTED]> wrote i

[PHP] Re: problems with jsp & php

somebody has to have an answer to this... "Jeff Bluemel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I cannot figure out where my problem is with the following script. I know > I've used this syntax successfuly in the past. when I take out the > variables

[PHP] Re: Problems connecting to a MySQL database

have you tried connected to the mysql database from a prompt before using php??? "Eric" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Greetings! > > I have a script which attempts to connect to the database in three different > segments of code. > > I'm using

Re: [PHP] Include?

Shawn McKenzie wrote: Is this expected behavior??? Settings such as safe_mode come into play. There is a difference between what a webhost provider expects from someone trusted with an account, and what is expectd of a user of your website. The best advice I've heard is to assume a user of y

[PHP] Cookies Help

Ive created a log in that essentially if the username and password are found in the database it displays one section of code and if its not found it display another log in form Im able to log in and my verifylogin() function works because if the username and password are not found it displays the

[PHP] Problems connecting to a MySQL database

Greetings! I have a script which attempts to connect to the database in three different segments of code. I'm using this code to connect to the database: $db = mysql_connect("the_host", "the_user", $cfg['Servers'][0]['password']); . . . . mysql_close($db); The first time I connect ok, retrieve

Re: [PHP] Include?

The passwd file is frequently world-readable so programs that rely on it don't need root permissions. Now if you can view /etc/shadow, then that would be a problem since that's where the actual passwords are stored (encrypted). On Thu, 2002-12-12 at 12:53, Shawn McKenzie wrote:

[PHP] Include?

It seems that if I create a php file in my dir at my hosting provider and do include('/etc/passwd'); then wow, I see the contents of etc/passwd! Is this expected behavior??? I am looking at creating a script that takes a var in the url and includes the requested file. The purpose would be for on

[PHP] Re: Objects and Classes?

Very cool! Thanks! "Christopher Raymond" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Shawn: > > I beleive I can clarify the purpose of objects/classes for you and > enrich my clarification with a couple of examples. > > > THE DIFFERENCE BETWEEN "OBJECT"

Re: [PHP] socket_set_blocking()

Hello, <[EMAIL PROTECTED]> wrote: > I was not able to get php's ftp functions working for me, they were uploading zero byte files, so I am now attempting to use fsockopen to accomplish the task. > > I found this script: http://www.phpbuilder.com/mail/php-general/2001102/1333.php > > It uses the f

[PHP] socket_set_blocking()

I was not able to get php's ftp functions working for me, they were uploading zero byte files, so I am now attempting to use fsockopen to accomplish the task. I found this script: http://www.phpbuilder.com/mail/php-general/2001102/1333.php It uses the function: socket_set_blocking(), and php.net

Re: [PHP] Need to place a comma into a string of 4 or 5 digits

Thank you! I knew it would be a snap! The problem no longer exists. Quoting [EMAIL PROTECTED]: ### ### IF you're looking to break digits into thousands by use of a comma ### search ### the manual for number_format. ### ### Ed ### ### ### On Thu, 12 Dec 2002 [EMAIL PROTECTED] wrote: ### ##

[PHP] Re: filemtime -help

thanks "@ Edwin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > "Mekrand" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > i have a problem with filemtime function, i want script print out the date > > of file la

Re: [PHP] overview of current app frameworks

I'd also add Fusebox for PHP (www.fusebox.org, http://sourceforge.net/projects/php-fusebox/) AND the "tone" of the user's on the various mailing lists. The people on the PHP Fusebox list are considerate and helpful. I made the mistake of posting a "newbie" PHP question on the Smarty list and was am

Re: [PHP] Error: (8) Undefined variable: - figured out

Due to my newbie PHP status I posted that question, but I now learned how to deal with it. Thanks to all who read it (no one responded, probably out of distaste for such a basic question :-) ...thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] Need to place a comma into a string of 4 or 5 digits

IF you're looking to break digits into thousands by use of a comma search the manual for number_format. Ed On Thu, 12 Dec 2002 [EMAIL PROTECTED] wrote: > Hello All! > > I am racking my brain and scouring the books and I can't seem to find a solution > to this simple problem. > > Any help is

Re: [PHP] Can PHP do this...?

Hello, "1LT John W. Holmes" <[EMAIL PROTECTED]> wrote: > > OK. I think I understand this, but let me ask just to be sure. > > > > So if I setup in my page something to this effect: > > if ($_SERVER['!HTTPS']) { > > echo "Switching over to SSL..."; > > echo ""; > > } else { > > echo "**Rest of Pag

[PHP] Need to place a comma into a string of 4 or 5 digits

Hello All! I am racking my brain and scouring the books and I can't seem to find a solution to this simple problem. Any help is appreciated. Thanks Ruusvuu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Forms

Hello, "Chris Hewitt" <[EMAIL PROTECTED]> wrote: [snip] > GET or POST method (I'm not sure whether there is a default). [/snip] GET is the default... should be... I guess... - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fgetcsv Help

Hello, "Justin French" <[EMAIL PROTECTED]> wrote: [snip] > Sample line from your CSV should look like this: > > --- > "1","foo","harry said \"what is it?\"","foo" > "1","bah","\"don't know\" said sally","something" > --- > > When echoing these values to the browser, you would strip the slashes.

[PHP] Re: protect downloadable files

"Jan grafström" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > I have some zipfiles in a directory and wonder how to protect the files? > > I send the customer to a downloadpage with links after succsessfull login. > > What is best to do? chmod the files

Re: [PHP] take text before '-' and after it

> > $array = explode("-",$song); > > > > ---John Holmes... > > Ok, I got this. But still I don't know how to read the files from a > directory and put them into an array so I can explode them. examples here: http://www.php.net/manual/en/ref.dir.php ---John Holmes... -- PHP General Mailing L

  1   2   >