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] XML Data push
> 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] Re: Problems connecting to a MySQL database

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

[PHP] Smarty + css + dreamweaver

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] protect downloadable files

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

Re: [PHP] Smarty + css + dreamweaver

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

[PHP] Session Issues when Cookies are Disabled

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] Mail() Not working right

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

RE: [PHP] Smarty + css + dreamweaver

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

[PHP] Windows mail() problem with newlines

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] Re: Problems connecting to a MySQL database

>>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

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

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] Update query

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

[PHP] PHP + MySQL looping question

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] PHP + MySQL looping question

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

Re: [PHP] PHP + MySQL looping question

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] changing endianness

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

>>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] Session Issues when Cookies are Disabled

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] Mail() Not working right

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] PHP + MySQL looping question

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] PHP + MySQL looping question

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] Odd Strpos Behavior

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].

[PHP] xml_parse and xml entities

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

[PHP] Error using require_once

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] REPLY NEEDED

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] Nigerian oil scams

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] Re: xml_parse and xml entities

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] MySQL error

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: Nigerian oil scams

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

Re: [PHP] Nigerian oil scams

:) 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

Re: [PHP] MySQL error

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] Re: Nigerian oil scams

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] Re: Nigerian oil scams

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

[PHP] XML Enabled not there

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] Error using require_once

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

RE: [PHP] MySQL error

>> $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] MySQL error

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

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

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

--> 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] PHP/MySQL Interaction

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] ExpertRating launches PHP Certification Exam

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] Sorry if repost - more ftp problems

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] xml_parse and xml entities

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

Re: [PHP] Re: xml_parse and xml entities

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] take text before '-' and after it

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: problems with jsp & php

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] PHP/MySQL Interaction

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] Smarty + css + dreamweaver

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

[PHP] Re: Performance issues

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] XML Enabled not there

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] Beginner question : Removing spaces in forms

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

[PHP] Re: Smarty + css + dreamweaver

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] OOP

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

Re: [PHP] Smarty + css + dreamweaver

"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] Re: Mail() Not working right

"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

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

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] undefined macro: AC_PROG_LIBTOOL

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

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

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

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

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] How To get the Time Zone of the visitor?

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

[PHP] approaching a relational database

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

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

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] Re: Cybercash/Verisign and PHP possible?

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] Apache dumps core when using php with mm

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] fwrite and line breaks

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] Regex question

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] Re: Regex question

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] Re: fwrite and line breaks

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: Beginner question : Removing spaces in forms

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

<    1   2