Re: [PHP] when is a PDF not a PDF?

2004-03-06 Thread Jeff Harris
On Mar 6, 2004, "Rick Fleischer" claimed that: |The simple example from http://www.php.net/pdf (hard-wired to paper.pdf) |just displayed the pdf data as a dump. I can ftp the file and it's OK. My |hard-wired version is shown below. | | | |// Thanks, |// Rick IF you're using IE, this might help

Re: [PHP] Weird result from query...?

2004-02-27 Thread Jeff Harris
|Ryan A wrote: | |> Hey everyone, |> Thanks for your response, |> |> I did try the query without the single quote, with double quotes but didnt |> work. |> I do think that a dot is valid in the URL coz it seems to be working if |> there are 2 zeros in the |> decimal part. I even tried running the S

Re: [PHP] How to display?

2003-08-12 Thread Jeff Harris
On Aug 9, 2003, "Ryan A" claimed that: |Hi, |I am running a pretty simple statement (thanks to ben from the list) that i |have already checked via phpmyadmin, but i dont know how to display it | |eg: | |$tt = "SELECT COUNT(*), 'Count1' FROM shared WHERE user ='".$my_user."' and |cno=".$mmy_cn

Re: [PHP] grabbing variable from bottom to top

2003-08-03 Thread Jeff Harris
On Aug 3, 2003, "Micah Montoy" claimed that: |Anyone know of a way to use a variable that isn't defined until further down |the script at the top. I have a counter and once everything runs through |the script, the count is complete, I need to display this at the top above |the displayed results.

Re: [PHP] Cookies on WinXP

2003-07-31 Thread Jeff Harris
On Jul 31, 2003, "Steve Buehler" claimed that: |I still can't figure something out. I am using WinXP/Apache 1.3.24/PHP |4.2.3 on my laptop and my cookies still don't work like they |should. Hopefully someone can explain to me why. | | |I can set the cookie with the "header" line with no problem,

Re: [PHP] Re: include help please

2003-07-31 Thread Jeff Harris
On Aug 1, 2003, "LoonySalmon" claimed that: |and btw, this is my code now: | | -- Is $main being set inside a function? http://www.php.net/language.variables.scope Also, for future compatability, you should probably change the 3rd line to "if (isset($_GET['page'])) {" That will also help incase

Re: [PHP] PHP or CGI in C/C++

2003-07-31 Thread Jeff Harris
On Jul 31, 2003, "David Nicholson" claimed that: |Hello, | |This is a reply to an e-mail that you wrote on Thu, 31 Jul 2003 at |13:38, lines prefixed by '>' were originally written by you. |> Greetinx, |> I'm a newbie and wondering which PHP script or CGI in C/C++ |generally |> can |> run/respond

Re: [PHP] tags to lowercase

2003-07-30 Thread Jeff Harris
| |On Wednesday, July 30, 2003, at 02:53 PM, Jeff Harris wrote: | |> On Jul 30, 2003, "Curt Zirzow" claimed that: |> |> |* Thus wrote Justin French ([EMAIL PROTECTED]): |> |> Hi all, |> | |> |hello. |> | |> |> |> |> has anyone developed or know of a f

Re: [PHP] Simple date question

2003-07-30 Thread Jeff Harris
On Jul 30, 2003, "Roy W" claimed that: |If I have: | |$firstdate = "2003-06-28"; | |then how can I get $firstdate plus 4 days? | |Thanks! It looks like that date may have come from a [mysql] database. If that's the case, you should be able to add 4 days in your query, by using DATE_ADD() check ht

Re: [PHP] Querying a form

2003-07-30 Thread Jeff Harris
On Jul 30, 2003, "Gerard Samuel" claimed that: |Im looking for links to tutorials, or if someone can post code here, |where php |can be used to query a form, so that I can retrieve its results. |Thanks for any pointers... How about some of these? http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF

Re: [PHP] Re: debuging and getting mor information about failures

2003-07-30 Thread Jeff Harris
On Jul 30, 2003, "Ivo Fokkema" claimed that: |"Chrstian Brensteiner" <[EMAIL PROTECTED]> wrote in message |news:[EMAIL PROTECTED] |> whats the best option to get more information about a failure in your |sorce |> code ? |> |> whenever i get failures that are situated at the very end of my script h

Re: [PHP] Strip Numbers

2003-07-30 Thread Jeff Harris
On Jul 30, 2003, "Joe Harman" claimed that: |Hey could someone help me out here | |I need to strip numbers from a passed variable | |ex. 3899007 | |all the numbers will have 990 (so that is the 4th, 5th & sixth |numbers... from the right...) I want to keep everything to the left of |the two 9s

Re: [PHP] tags to lowercase

2003-07-29 Thread Jeff Harris
On Jul 30, 2003, "Curt Zirzow" claimed that: |* Thus wrote Justin French ([EMAIL PROTECTED]): |> Hi all, | |hello. | |> |> has anyone developed or know of a function to convert all tags to |> lowercase, but still preserves the contents of the tags and the content |> of the attributes of the tags?

Re: [PHP] Script Execution Time

2003-07-28 Thread Jeff Harris
On Jul 29, 2003, "Petya A Shushpanov" claimed that: |stop(); |echo round($timer->elapsed(),5); |?> | |-- |Petya A Shushpanov | Or, you could use http://pear.php.net/package-info.php?package=Benchmark -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg

Re: [PHP] List Problems

2003-07-28 Thread Jeff Harris
On Jul 28, 2003, "skate" claimed that: | | |> Any body else getting a message back with subject like: |> [ERR] Re: [PHP] subject of message. |> | |yeah, i'm getting that every now and then. maybe 1 or 2 a day tho... [Regression mode] Not to start the discussion all over again, but if the respons

RE: [PHP] replacing & but not special chars

2003-07-28 Thread Jeff Harris
On Jul 28, 2003, "Ford, Mike [LSS]" claimed that: |> -Original Message- |> From: Shawn McKenzie [mailto:[EMAIL PROTECTED] |> Sent: 27 July 2003 08:36 |> |> I have some URLs in hrefs that have an &. This does not |> validate HTM4.01 |> transitional, so I want to replace them

Re: [PHP] Re: Set Cookie in PHP and call with Perl

2003-07-28 Thread Jeff Harris
On Jul 28, 2003, "Jason Wong" claimed that: |On Monday 28 July 2003 13:52, TWSC HQ wrote: | |> Sorry - by caling I meant to echo the cookie value on a .pl page - and |> include it (the cookie value)then in an email. |> |> Any help would be appreciated because the PERL list people said I must try |

RE: [PHP] Link acting as a submit button

2003-07-24 Thread Jeff Harris
|-Original Message- |From: "Matt Palermo" <[EMAIL PROTECTED]> |Sent: Thursday, July 24, 2003 3:35 PM | |> I am trying to create a submit button out of a hyperlink using the |> following |> code: |> |> (this is in a file called index.html) |> this |> page |> |> |> |> |> This works fine a

Re: [PHP] PHP webpage like MySQL, PART 2

2003-07-24 Thread Jeff Harris
t; is a MySQL reserved keyword, so if it is the table name, it should be enclosed in backticks: http://www.mysql.com/doc/en/Reserved_words.html Jeff Harris -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" Key fingerprint = 52FC

Re: [PHP] Include Problems

2003-07-24 Thread Jeff Harris
ww.php.net/language.variables.scope Jeff Harris -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED Responses to this message should conform to RFC 1855. -- PHP Genera

Re: [PHP] just looking for some opinions...

2003-07-24 Thread Jeff Harris
On Jul 24, 2003, "Dan Joseph" claimed that: |Hi, | | Just looking for an opinion on how you would do this... | | Let's say I have a number: 1281924 | | The rules call for removing "1280+", meaning remove 128 and all 0's that |come after it, until you run into another number.

Re: [PHP] closing windows

2003-07-23 Thread Jeff Harris
On Jul 23, 2003, "Jon Phipps" claimed that: |I am curious as to how, from within php, you could emulate the javascript |window.close() function. The other thing is how would I blend javascript and |php, it call javascript functions from php. The javascript will be located |in the same page as the

Re: [PHP] FTP Synching

2003-07-22 Thread Jeff Harris
On Jul 22, 2003, "jwulff" claimed that: |How would I download any new files on a remote machine to my local one (in a |specific folder) via ftp? You do realize that this is like subscribing to a automotive mail list and asking how to buy groceries. I would start by checking the man page for wget

Re: [PHP] Backing up: Database and scripts...

2003-07-22 Thread Jeff Harris
On Jul 22, 2003, "Michael Smith" claimed that: |Hi, | |So I can create the files, move them, etc. to backup my database and a |couple of directories, but how do I create a gzip file of that and send |it to the user? I need to basically execute a command to gzip a couple |of files/directories... I

Re: [PHP] REDIRECT STATUS CGI

2003-07-22 Thread Jeff Harris
On Jul 22, 2003, "Freek van de Griendt" claimed that: |Hi, | |I just started using PHP and installed it on my Windows machine, together |with Xitami (Web server). But now, when I try to write a simple PHP file I |get the following error: | |Security Alert! The PHP CGI cannot be accessed directly.

Re: [PHP] changing the name of a variable by another variable.

2003-07-22 Thread Jeff Harris
On Jul 22, 2003, "Tony Crockford" claimed that: |I really am having a difficult day. | |I want to do an incrementing while loop that will echo out the values of |$variable1 , $variable2, $variable3 which exist previously. | |so how do I get the incrementing number onto the word variable? to make |

Re: [PHP] OK

2003-07-22 Thread Jeff Harris
On Jul 22, 2003, "Rausch Alexandru" claimed that: |Sorry, i didn't itent to be a spam, believe me. But i don't know how to |do this aplication | In that case, you might want to start with something a bit less ambitious, maybe learning to wrap your mail, and some tutorials? http://www.devshed.com/

[PHP] RE: [PHP:OT] IE Issues

2003-07-22 Thread Jeff Harris
On Jul 22, 2003, "Chris W. Parker" claimed that: |Pete Morganic |on Tuesday, July 22, 2003 7:39 AM said: | |> so which tag should i use .. ??? | |You should use proper mark up is what you should use. Or I think some |people call it "the semantic web". Not exactly s

Re: [PHP] RE: new browser window in php

2003-07-18 Thread Jeff Harris
On Jul 18, 2003, "Jeffry Lester" claimed that: |How do I start a new browser window when using print in php? | |Jeffry Lester |[EMAIL PROTECTED] Not quite sure how this is PHP, but you might want to check here: http://www.htmlgoodies.com/tutors/new_win.html I guess one way of doing it would be s

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread Jeff Harris
|Valentin wrote: | |>Hi, is any way to pass a $Var from one to other php pages without using |> and Cookies? |> |>Thanks, |> On Jul 16, 2003, "John Manko" claimed that: |page1.php |$_SESSION['myvars_VARNAME'] = $varname; |the 'myvars_' is just for identification purposes, so avoid over-writing |a

RE: [PHP] HTTPS POST without user/client intervention

2003-07-16 Thread Jeff Harris
p.net/manual/en/function.fsockopen.php | |Or CURL | |http://www.php.net/manual/en/ref.curl.php | Another option for you is to ouput a blank page with just a form pointing where you need it to, with hidden inputs, and at the end of the page or in a , document.form.submit(); Assuming your client has JavaScrip

Re: [PHP] multiple databases

2003-07-15 Thread Jeff Harris
27;Joe Momma'"); ?> The key is either to use DB.php and define different hooks, or to use the second argument of your _query function. Jeff Harris -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" Key fingerprint

[PHP] PHP & Perl information sharing

2003-07-14 Thread Jeff Harris
7;m looking for what people think will generate easier code to maintain and expand. Jeff Harris -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED Responses to this mess

RE: [PHP] SquirrelMail + Writable Directories

2003-07-14 Thread Jeff Harris
|-Original Message- |From: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED] |Sent: Monday, July 14, 2003 12:14 AM |To: [EMAIL PROTECTED] |Subject: [PHP] SquirrelMail + Writable Directories | |My question is simple - I want to install Squirrelmail on my webserver, |but I can't chmod or chown t

Re: [PHP] Logging PHP Execution time to a file?

2003-07-14 Thread Jeff Harris
On Jul 14, 2003, "Marek Kilimajer" claimed that: |I use this function: |function echo_pt($add='') { | static $pt = 0; | if($pt==0) { | $pt = miro_time(); | return; | } | $time_start = explode(' ', $pt); | $time_end = explode(' ', microtime()); | $parse_time = number_format(($

Re: [PHP] Can PHP Build XML Pages?

2003-07-14 Thread Jeff Harris
(" \n"); print (" {$_POST['venuename']}>\n "); print (" \n"); print ("\n"); ?> Lay out your xml document first, then plug in the form variables. Make sure you use that header() command, too. Jeff Harris -- Registered Linux user #304026. "l

Re: [PHP] Turning string into a table

2003-07-14 Thread Jeff Harris
On Jul 13, 2003, "zavaboy" claimed that: |Is there a way to make for example: | |// (Column info) |// String 1: |[This column holds |[Col 1] |[Col 2]] |[This second column holds |[Col 3] |[Col 4]] | |// (Row) |// String 2: |[Col 1 (row1)] |[Col 2 (row1)] |[Col 3 (row1)] |[Col 4 (row1)] | |// (Row)

Re: [PHP] Storing SQL Queries for Reuse in Apps

2003-07-11 Thread Jeff Harris
On Jul 10, 2003, "Jacob C" claimed that: |Hello All, | |I just want to survey the list and see what kind of solutions people are using |for the storage and reuse of SQL queries. | |Right now I am working on an application that has native SQL queries as well |as custom queries that can be added by

Re: [PHP] numbers to text

2003-07-11 Thread Jeff Harris
On Jul 11, 2003, "Pete Morganic" claimed that: |Anyone know of a class or function that converts numbers to readable text | |eg inputing the number would output text as in | |120 = one hundred and twenty |3600 = three thousand six hundred | | |tia | |pete | How about http://pear.php.net/package-i

Re: [PHP] How to hide url on a php link NOT post...

2003-07-10 Thread Jeff Harris
On Jul 10, 2003, "Joey" claimed that: |How can I hide this link so value can't be changed? |I don't want to change anything at the server level, and its not from a |form so I cant do a post -vs- a get. | |http://www.abcd.com/popup_SearchRepSet.php?searchby=cust_no&search=1&value=WOR032 | |Thanks !

Re: [PHP] passing commands via ssh

2003-07-09 Thread Jeff Harris
On Jul 9, 2003, "Mignon Hunter" claimed that: |Hello all, | |I am trying to execute a command on another server from my web |application. | |I need to execute the command via ssh for security reasons. I have a |private key/passphrase installed for ssh so that I can run ssh without a |password. | |

RE: [PHP] XML

2003-07-08 Thread Jeff Harris
|-Original Message- |From: Petre Agenbag [mailto:[EMAIL PROTECTED] |Sent: Tuesday, July 08, 2003 6:27 AM |To: [EMAIL PROTECTED] |Subject: [PHP] XML | | |Hi List | |Firstly, this question is arguable more about XML than PHP, but they are |interlinked, so I hope it is "topical" for this list.

Re: [PHP] Re: NEW SPAMMER -> [PHP] New Krysalis version released

2003-07-08 Thread Jeff Harris
On Jul 8, 2003, "Alexandru COSTIN" claimed that: |Hi, |I've just read the other thread about spammers and such. |Indeed, my announcement - even for a free platform - was not complying |to the posting guidelines as it not a response to any questions asked. | |I apologize. | |

Re: [PHP] New to PHP

2003-07-07 Thread Jeff Harris
On Jul 7, 2003, "Steve Keller" claimed that: |At 7/8/2003 03:30 AM, Hiren Mehta wrote: | | > Thnx alot guys You have been of great help :D | |And don't forget this list! There are a lot of really talented people on |this list, so if you're trying to figure something out and haven't been |able

Re: [PHP] Table trouble

2003-07-07 Thread Jeff Harris
On Jul 8, 2003, "phpu" claimed that: |Hello |I need help. |I'm querying a database then printing the results in a table. I want the result to be in a table with 2 columns per row. |something like that | | |-- row 1 -- r

Re: [PHP] qry not running??

2003-07-07 Thread Jeff Harris
On Jul 7, 2003, "Micah Montoy" claimed that: |Well, I redid the code a bit but it is still blowing up with the same error |message. I also did the echo bit and it returned "Resource id #10". What |ever that is. At least I know its returning something. But when I did |mssql_row_nums($result), i

Re: [PHP] php pages without .php extension on linux and windows

2003-07-07 Thread Jeff Harris
On Jul 7, 2003, "Heiko Mundle" claimed that: |I try to use PHP and Apache on both Linux (SuSE 8.1) and Windows (2K). | |On Linux I can access the PHP scripts without adding the .php extension. |E.g. |http:///?para1=TRUE |for |http:///.php?para1=TRUE |But on Windows it doesn't work (page not found

Re: [PHP] date() function and timestamps

2003-07-04 Thread Jeff Harris
On Jul 3, 2003, "Garrick Linn" claimed that: |Hello all, | |I seem to be running into a problem where the date() function appears not |to differentiate properly between unix timestamps. | |For example, the code: | |"; |echo date("d-m-Y H:m:s", $seconds); |echo ""; | |$seconds = ($seconds - 60); |e

Re: [PHP] Get Rid of this Crook

2003-07-03 Thread Jeff Harris
On Jul 3, 2003, "Jason Wong" claimed that: |On Thursday 03 July 2003 19:48, Christian Wach wrote: | |> Just to chime in on the "reply to" thread earlier, Daryl, by hitting "reply |> all" has now sent his email address to these 401 scamsters as well as the |> list. Hopefully he'll not suffer any co

Re: [PHP] Multiple posts.

2003-07-03 Thread Jeff Harris
On Jun 30, 2003, "news.php.net" claimed that: |I was wondering if there is a way to solve my problem. I want to send |certain information to certain webpage for about 25 times ( I wanna make a |webpage to send a SMS to every player in our soccer team). I can send the |needed information to one ser

Re: [PHP] print html code

2003-07-02 Thread Jeff Harris
On Jul 2, 2003, "Jim Lucas" claimed that: |well, tell me. What browser follows the standards 100% ?? The same one that is 100% bug free? -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9

Re: [PHP] how can I logout autamaitcally (using session)

2003-07-02 Thread Jeff Harris
On Jul 2, 2003, "Hardik Doshi" claimed that: |Hi, | |You can add last_request_time variable into the |session when user logs into the system. Initially set |the time at which user logs in to the system. Now |every user click you need to check your |last_request_time with the current_time. If the |

Re: [PHP] Break, Exit, Die, Kill, Maime and Stab

2003-07-02 Thread Jeff Harris
On Jul 2, 2003, "Jonathan Pitcher" claimed that: |I have some scripting that includes files. The included files are |executed and everything works great. | |The included page needs to check multiple information. | |Currently if I want the scripts to end correctly I have to: [snip] |I would love

Re: [PHP] print html code

2003-07-02 Thread Jeff Harris
On Jul 2, 2003, "Karina S" claimed that: |Hello, | |I want to make a php site which can generate a html code and display it on |the screen. (Display the code itself.) |I use htmlspecialchars() function. It works fine, but now I have to add |about 200 lines of static html code to print it out. If I

Re: [PHP] Hi All i need help..

2003-07-02 Thread Jeff Harris
On Jul 2, 2003, "Beogradjanin" claimed that: |Hi All I want to install PHP under Suse 8.2. How can I do it? | | | |Thanks Unless you have a custom install, probably the easiest way is to install the rpms through YaST. -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.u

Re: [PHP] PHP and Mysql Limit

2003-07-02 Thread Jeff Harris
|- Original Message - |From: <[EMAIL PROTECTED]> |To: <[EMAIL PROTECTED]> |Sent: Wednesday, July 02, 2003 9:23 AM |Subject: [PHP] PHP and Mysql Limit | | |> |> I've created a script that reads a sorted mysql query and outputs specific |> results into text files defined by the start and limi

Re: [PHP] Items displayed left and right, help newman.

2003-07-01 Thread Jeff Harris
On Jul 2, 2003, "Mark Tehara" claimed that: |Where should i start with the lodgic. I'm trying to list a group of items | | |Left: item one, Right: Item 2 | | |This is repeated | |I can only seem to get them to go str8 down not left then right. | | |Any Ideas? | |/ Mark Perhaps you want an html t

Re: [PHP] .inc.php

2003-07-01 Thread Jeff Harris
|- Original Message - |From: "Kyle Babich" <[EMAIL PROTECTED]> |To: "PHP-General" <[EMAIL PROTECTED]> |Sent: Tuesday, July 01, 2003 3:38 PM |Subject: [PHP] .inc.php | | |> When .inc.php files are included they are also executed whenever the |> script is executed right? |> -- |> Kyle |> On

Re: [PHP] Parsing fgetcsv using tab (\t)

2003-07-01 Thread Jeff Harris
On Jul 1, 2003, "Chris" claimed that: |I'm trying to create an form where the user can upload a datafile to the |server. The datafile will be txt or csv and contain multiple records. I |would like the user to supply the field delimiter like (,) comma , (\t) |tab or something else. The data records

Re: [PHP] Re: Why Can't I get this to work

2003-06-30 Thread Jeff Harris
On Jun 28, 2003, "Ron Clark" claimed that: |OK, normally I do not respond to my own posts, but I have been shown that I |did not get the whole script. So here it is: | |for ($i=0; $i<$number_of_alerts; $i++) { | |// Split each line | |$line = explode(" ", $ipfwlog[$i]); | |$line[1] = intval($line[

Re: [PHP] SEARCH ENGINE

2003-06-26 Thread Jeff Harris
On Jun 26, 2003, "David Elìas Sánchez Vásquez" claimed that: | |Hi folks | |First, thanks to Jim for the greeat tree-menu, we are just editing it. |Ok, we are doing the tutorial for the Intranet of our University. There is |just a lot of information and we want to give the user all the ways to fin

Re: [PHP] How can MD5 HAsh be passed to db as pwd? was a Re: [PHP]Securing PHP code

2003-06-26 Thread Jeff Harris
|Hello Justin or Anybody else | |> Store an MD5 of the password, that way you're comparing the two hashes, |not |> two passwords... even if someone stumbles into your database, they'll |only |> see the MD5'd password. A further step would be encryption, on which |you |> will have to do a LOT of re

Re: [PHP] pdf routine - good local / bad online

2003-06-25 Thread Jeff Harris
On Jun 25, 2003, "Floyd Baker" claimed that: | |Hi. | |I have a routine creating a pdf file. Here is the script that works |on the win98 dev box. But when I upload it to the linux online, it |does not work. | |It stops at 'create handle'. Can someone please tell me why? | |// GET COMPANY INFO

Re: [PHP] PHP Mysql Hit Counter

2003-06-24 Thread Jeff Harris
On Jun 25, 2003, "[EMAIL PROTECTED]" claimed that: |Hi All, |I'm after a fairly neat PHP mysql hit counter with date reporting/url |reporting and perhaps some graphs but not nessasary. i've done my own little |one which simply reports hits, but i'm wondering is there a free one that is |da busiess

[PHP] RE: PHP General Mailing List

2003-06-24 Thread Jeff Harris
Summary: I have to create a word document on the fly. what's the best way to go about it? Okay so I have a client that would like something output to a word document. I already have HTML and PDF versions... I'm trying to figure out the best way to do this. I am already aware of the open html in wo

RE: [PHP] Performance question

2003-06-24 Thread Jeff Harris
On Jun 25, 2003, "Ow Mun Heng" claimed that: |Can someone help explain how I can perform a benchmark on the queries or |whatever? | | |Cheers, |Mun Heng, Ow |H/M Engineering |Western Digital M'sia |DID : 03-7870 5168 | | Do it many times and time it. -- Registered Linux user #304026. "lynx -sourc

Re: [PHP] PHP & Mysql Error Code 1062 - Duplicates found

2003-06-24 Thread Jeff Harris
On Jun 25, 2003, "Ow Mun Heng" claimed that: |Hi PHP'ers, | | I've got a question regarding the input of (multiple) data into |mysql through PHP. | |If there is already an entry in the database, then an mysql will generate an |error 1062 stating that the entry is a duplicate. (This will happ

Re: [PHP] PHP & cached data when using browser "back" button

2003-06-24 Thread Jeff Harris
On Jun 25, 2003, "Ow Mun Heng" claimed that: |Hi All, | | How can I prevent the browser from sending in cached data after the |user pressed the 'back' button and re-inputted data. | |Eg: Originall I enter 3 isbn numbers, submitted it, then the user presses |the 'back' button to re-input 1 ne

Re: [PHP] free dynamic MENU

2003-06-23 Thread Jeff Harris
On Jun 23, 2003, "David Elìas Sánchez Vásquez" claimed that: | |Hi folks | |I'd like to know if you know any page where I can download a tree dynamic |menu made in PHP.. The options of this menu will be pulled from a mysql |database | |thanks | |David I know this breaks the "rules/recommendations

RE: [PHP] Re: Passing Variables

2003-06-21 Thread Jeff Harris
On Jun 21, 2003, "George Pitcher" claimed that: |Jay, | |I've never ventured into 'sessions' (not ones without drinks) but I've a |feeling that if the user has turned cookies off then sessions are out as |well as they require a cookie being stored on the user's machine. | |Someone will surely corr

Re: [PHP] Re: saving TEXTAREA data into mysql database

2003-06-21 Thread Jeff Harris
On Jun 21, 2003, "John W. Holmes" claimed that: |Artoo wrote: |> Is it better to use that function before the INSERT query and save it to the |> database like that or use that nl2br() function while displaying the results |> of the SELECT query, | |Use it while displaying. You generally want to sa

Re: [PHP] clearing cache

2003-06-20 Thread Jeff Harris
On Jun 20, 2003, "Mark McCulligh" claimed that: |I am building a two page search feature. The user fills out page one, that |takes them to page two. Then from page two they get the results page from |the search. If the user hits the back button in their browser I want them |to go back to page on

RE: [PHP] strange crypt() problem

2003-06-19 Thread Jeff Harris
It looks like "Some operating systems support more than one type of encryption. In fact, sometimes the standard DES-based encryption is replaced by an MD5-based encryption algorithm. The encryption type is triggered by the salt argument. At install time, PHP determines the capabilities of the crypt

Re: [PHP] Strange roblems with sessions

2003-06-18 Thread Jeff Harris
|- Original Message - |From: "Logan McKinley" <[EMAIL PROTECTED]> |To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> |Sent: Wednesday, June 18, 2003 12:51 PM |Subject: [PHP] Strange roblems with sessions | | |> what it is meant to do: |> take a querystring set it to a session variable (outputs e

Re: [PHP] mysql_errno codes

2003-06-16 Thread Jeff Harris
On Jun 16, 2003, "Thomas Hochstetter" claimed that: |Hi. | |[3rd try] ... where can i get mysql_error codes from? The ones that |mysql_errno returns. | |Thanks |Thomas | All mysqld error messages are located into the file $MYSQL_ROOT_DIR/$LANGUAGE/errmsg.txt (or thereabouts) and listed in numeric

Re: [PHP] shopping cart and login system

2003-06-14 Thread Jeff Harris
On Jun 14, 2003, "olinux" claimed that: |hi | |--- electroteque <[EMAIL PROTECTED]> wrote: |> hi there , i am about to build a shopping cart which |> will interact with a |> paypal payment system , the cart will use sessions |> to store the items and |> basket information before checking out and p

Re: [PHP] php editor?

2003-06-14 Thread Jeff Harris
On Jun 14, 2003, "M-Ali Mahmoodi" claimed that: |hi all |i'm a beginner in php |can anyone help me about useful and powerful editors in php? vi -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" Key fingerprint = 52FC 20BD 025A 8C13 5FC6

Re: [PHP] sessions security (no problems just question)

2003-06-14 Thread Jeff Harris
On Jun 14, 2003, "Ryan A" claimed that: |Hi, |I have been reading up on the old discussions on this list as i was very |busy for the past few daysand i saw a very intresting topic regarding |sessions and security. | |I really didnt understand some of the things you guys wrote on "hi-jacking a

Re: [PHP] extracting text from text file to be used in PHP

2003-06-13 Thread Jeff Harris
On Jun 13, 2003, "Lance Q" claimed that: |Hello all, | |One of the sites I host is a radio station. Their computer has been setup to |automagically upload the current song and the next song to their web site |via FTP. Unfortunately, the format it comes in is pretty awful. (See below). | |The CURRE

Re: [PHP] 4.3.2 -- does connection_status() actually work?

2003-06-12 Thread Jeff Harris
On Jun 12, 2003, "news" claimed that: |Shouldn't the following work - or rather why doesn't it : | | |ignore_user_abort(0); | |for( $i=100; $i; $i-- ) |{ |if ( connection_status() ) exit(0); |print " blurp."; flush(); |sleep(1

RE: [PHP] Headers in body - what am I doing wrong???

2003-06-12 Thread Jeff Harris
On Jun 12, 2003, "-{ Rene Brehmer }-" claimed that: |>You have an extra \r\n. There is one contained in the variable $from so the |>line $headers .= "From: ".$from."\r\n"; is putting \r\n\r\n which signifies |>the end of the headers and the begining of the message body. | |Stupid me ... so simple

Re: [PHP] Downloading a file.

2003-06-11 Thread Jeff Harris
On Jun 11, 2003, "Alex Earl" claimed that: |> |> If he wants to download, in the file downloadit.php, there is: |> header("Content-type: application/octet-stream\n"); |> header("Content-Disposition: attachment; filename=mysoft-1.0-truc.zip"); |> header('Cache-Control: public'); |> header("Content-

RE: [PHP] .htaccess

2003-06-10 Thread Jeff Harris
On Jun 9, 2003, "John W. Holmes" claimed that: |> Just one question, is there any way that when a person logs in via the |> htaccess popup that i can know via my php script...and can i also get his |> username? | |Have you read the chapter on HTTP Authentication? No. Read the very |first paragraph

Re: [PHP] popen() in 4.3.2

2003-06-08 Thread Jeff Harris
t builds), you get the point... :) | |Regards, |Philip | | |On Sat, 7 Jun 2003, Jeff Harris wrote: | |> My webhost just upgraded to php 4.3.2, and now I have a problem with |> popen. I'm opening an output buffer then piping it through htmltidy to |> make nice looking output. |> |>

[PHP] popen() in 4.3.2

2003-06-07 Thread Jeff Harris
My webhost just upgraded to php 4.3.2, and now I have a problem with popen. I'm opening an output buffer then piping it through htmltidy to make nice looking output. This code worked perfectly before the upgrade, now "strlen( $newstr )" is only getting back 4096 bytes. Is anybody else having th