Re: [PHP] PHP/CGI problem: #!/path/php at top of CGI script appears in output

2001-10-21 Thread Dave Goodrich
, the cgi binary was compiled with nothing but "./configure" and the info page confirms this. So it seems Apache is handling everything correct, the page gets passed to the proper php binary, and the result is correctly served back to the client. DAve On Sun, Oct 21, 2001 at 12:18:07PM -0

RE: [PHP] Error on session_start()

2001-10-22 Thread Dave Watkinson
r. Header() MUST be the vert first thing sent to the browser. Hope this puts you on the right track Dave -Original Message- From: Zavier Sheran [mailto:[EMAIL PROTECTED]] Sent: 19 October 2001 23:13 To: [EMAIL PROTECTED] Subject: [PHP] Error on session_start() When I try to start a

[PHP] Problem appending data in a file with fopen("ftp://...","a")

2001-10-28 Thread Dave Létourneau
d technique but it's very frustrating. I tried with 2 different FTP servers where I have all the necessary rights. Is it possible to solve this problem or it's a feature in PHP? Dave Létourneau [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Problem appending data in a file with fopen("ftp://...","a")

2001-10-28 Thread Dave Létourneau
I only fopen my file once... My program checks if there is a specific session cookie. If not (it's a new user that browse the site) I set a cookie and try to store the unique ID of this user (other cookie) in a file with a timestamp to track which user came and when (+ nb of times...). That's w

Re: [PHP] Problem appending data in a file with fopen("ftp://...","a")

2001-10-29 Thread Dave Létourneau
I got the same error message when i opened it with "w"... A append operation opens the file in r/w? I'm not sure... I though it needed a "+" : a+, w+... anyway, I think I'm gonna use a database (mysql) and it will be easy to to what I need but this problem is very strange. Thanks! > Aha -- I

[PHP] show user and home directory

2001-11-21 Thread Dave VanAuken
lowed to run PW for obvious reasons)... and shelling out to a script results in similar setuid restrictions... again for obvious reasons. thoughts? Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

[PHP] mssql_query and error message

2001-12-09 Thread Dave Brotherstone
L box, mssql_query (...) just returns false, and I don't get anything in $php_errormsg or mssql_get_last_message(). Is there a way to tell what the error was? (The query can return one of two errors, I need to know which it was.) Many thanks for any help you can give, Cheers, Dave. -- P

[PHP] Returned error messages

2001-12-10 Thread Dave Brotherstone
Has anyone got error messages working from MSSQL or Sybase (connecting from a unix box)? Dave. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

RE: [PHP] Generating PDF...

2001-12-11 Thread Dave Brotherstone
few bytes each time you add another copy of the picture). You can also print it directly. Mail me off list if you need to create a large number of PDFs quickly. Dave. > -Original Message- > From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]] > Sent: 11 December 2001 08:09 >

RE: [PHP] Newbie-student Database PHP Question

2001-12-12 Thread Dave Brotherstone
fine depending on how many users/transactions you've got. MySQL is easier to plug into PHP (it supports it directly), Access you need to use the ODBC stuff (but it can be done). Learning MySQL is probably a good thing - learning SQL is definately a good thing ;-) Hope this helps,

RE: [PHP] Test message.

2001-12-12 Thread Dave Brotherstone
return TRUE; > -Original Message- > From: Andrey Hristov [mailto:[EMAIL PROTECTED]] > Sent: 10 December 2001 11:06 > To: [EMAIL PROTECTED] > Subject: [PHP] Test message. > > > Test > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED]

[PHP] PHP on Digital Unix

2001-03-23 Thread Olivier, Dave
Folks, I am in the process of trying to install PHP 4.0.4pl1 on my Digital Unix 5.1 machine. I follow the instructions from php.net and in the install instructions. I can do everything right but, after I run the ./configure --with-mysql --with-apache=../apachex --enable-track-vars, I run the ma

[PHP] RE: Word docs

2001-03-23 Thread DAve Goodrich
Works fairly well when I've needed it. http://www.freeviewer.com/ DAve -- Dave Goodrich Director of Interface Development Reality Based Learning Company 9521 NE Willows Road, Suite 100 Redmond, WA 98052 Toll Free 1-877-869-6603 ext. 237 Fax (425) 558-5655 [EMAIL PROTECTED] http://ww

Re: [PHP] Shortest route between 2 cities

2001-06-19 Thread Dave Mariner
ll me how to read command line parameters passed to a script (I'm running 4.0.6 under NT)? Cheers, Dave Mariner. [EMAIL PROTECTED] www.medlab-group.com - Original Message - From: "Vahan Yerkanian" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> S

Re: [PHP] auto index in Apache

2001-06-19 Thread DAve Goodrich
displaying names? > > Thank you very much in advance. > > George > IndexOptions NameWidth=30 That works, just tried it and got 30 characters. Provided you have autoIndexing turned on. DAve -- Dave Goodrich Director of Interface Development Reality Based Learning Compan

[PHP] file upload

2001-06-20 Thread dave go
file size to 5M. And with full permission on temp and upload directory in IIS. php.ini max file size to 10M. Thanks, Dave __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ -- PHP General Mailing

RE: [PHP] List of included file names

2001-06-21 Thread DAve Goodrich
> -Original Message- > From: Tim McGuire [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 19, 2001 2:30 PM > To: [EMAIL PROTECTED] > Subject: [PHP] List of included file names. > > > Hi, > > I searched the archives for this. > > For debugging purposes, I want to see a list of the inclu

Re: [PHP] Apache config + PHP include paths

2001-06-21 Thread DAve Goodrich
b/logs/myWeb_error_log That would make the include directory outside the server root. You could just as easily put it inside and name all your files *.php. But that has been discussed at length already ;^) DAve -- Dave Goodrich Director of Interface Development Reality Based Learning Company 9

Re: [PHP] recompiling libphp4.so with -DEAPI

2001-06-22 Thread DAve Goodrich
e-module=in > clude --enable-shared=include --prefix=/usr/local/apache > > Thanks everyone, > Tyler > Is this the answer you need? http://marc.theaimsgroup.com/?l=apache-modssl&m=97687491607953&w=2 DAve -- Dave Goodrich Director of Interface Development Reality Based Learning

[PHP] [OT-ish] Optional Extras.

2001-06-25 Thread Dave Mariner
eaking suspicion that there's a more elegant way than either of these, but can't think of it at the moment. If you come up with the solution there's a beer in it for you the next time you're in Paphos, Cyprus! Thanks in advance,

Re: [PHP] [OT-ish] Optional Extras.

2001-06-26 Thread Dave Mariner
The problem with doing it this way is that it is not extensible. A manufacturer cannot add, say, MP3 players to the list at a later date without breaking the car table. Also, in time, there could be quite an extensive list of features - which would lead to an inefficient storage system. Dave

Re: [PHP] [OT-ish] Optional Extras.

2001-06-26 Thread Dave Mariner
- Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: "Dave Mariner" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2001 4:32 AM Subject: Re: [PHP] [OT-ish] Optional Extras. > Why not have a table that contains c

Re: [PHP] [OT-ish] Optional Extras.

2001-06-26 Thread Dave Mariner
- Original Message - From: "Rich Cavanaugh" <[EMAIL PROTECTED]> To: "Dave Mariner" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2001 1:53 AM Subject: RE: [PHP] [OT-ish] Optional Extras. > Dave, > I did something simi

Re: [PHP] closing window after submit

2001-06-30 Thread DAve Goodrich
rect to a thank you page. This could be set to time out and close if you wanted, or offer a validation step as well. DAve -- Dave Goodrich Director of Interface Development Reality Based Learning Company 9521 NE Willows Road, Suite 100 Redmond, WA 98052 Toll Free 1-877-869-6603 ext. 237 Fax (425)

[PHP] Page Cannot Be Displayed

2001-07-01 Thread Dave Stewart
es are set and they are. I've been trying to sus this out all morning and haven't cracked what I've missed so I'm going for a walk to get some freash air. Any help would be appreciated, as usual. Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [E

Re: [PHP] Page Cannot Be Displayed

2001-07-02 Thread Dave Stewart
Fixed it. Seems I had to copy a file php4ts.dll to c:\windows\system. Found the answer here; http://www.faqts.com/knowledge_base/view.phtml/aid/5495/fid/336 Cheers, Dave - Original Message - From: "Dave Stewart" <[EMAIL PROTECTED]> To: "PHP (General)"

Re: [PHP] verifying that a dropdown was selected

2001-07-05 Thread Dave Mariner
ermshouldnt that be if($month == "00" ) { .... ? Dave - Original Message - From: "Richard Kurth" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Thursday, July 05, 2001 12:35 PM Subject: [PHP] verifying that a dropdown was sele

Re: [PHP] Re: poor HTML syntax crashing (!) netscape

2001-07-08 Thread DAve Goodrich
E/Netscape 4+ on Mac, Windows, and Unix/Linux every day. DAve on 7/8/01 2:52 PM, Christian Calloway at [EMAIL PROTECTED] wrote: > I've had the same problem with Netscape, where it would crash/choke on any > platform. I never figured it out, but it has something to do with Netscape

[PHP] Apostrophe's

2001-07-10 Thread Dave Stewart
hes function. I was wondering if anyone could help me out with this as I haven't a clue where to start editing the script. Many thanks, Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

Re: [PHP] apache not handling 404 errors for .php pages

2001-07-12 Thread DAve Goodrich
out checking for the > existence of "notexists.php" first. > That would be the correct response from apache. Add this to your httpd.conf ErrorDocument 500 /path/to/my_error_page.html That should get you the result you want. DAve P.S. http://httpd.apache.org/docs/custom-error.htm

[PHP] Confirmation Requester

2001-07-13 Thread Dave Freeman
e. Mostly what I'm trying to do is have that ok/cancel take place before I do anything with the page currently being displayed. Can anyone offer pointers to a method of achieving this? CYA, Dave --- Outback Queensland In

Re: [PHP] Re: Confirmation Requester

2001-07-13 Thread Dave Freeman
tuff and it really helps to see working examples - or references to relevant code snippets etc. CYA, Dave --- Outback Queensland Internet - Longreach, Outback Queensland - Australia http://www.outbackqld.net.au

Re: [PHP] Wget and PHP

2001-07-15 Thread DAve Goodrich
lieve) since wget can read url inputs from a file. What doesn't work on your end? DAve on 7/15/01 9:59 AM, Clayton Dukes at [EMAIL PROTECTED] wrote: > Is there a utility available that will get PHP based websites? > Wget doesn't do it > > TIA! > > Clayton Dukes &g

Re: [PHP]OT I know, but WTF...

2001-07-15 Thread DAve Goodrich
on 7/15/01 9:43 AM, Chris Cocuzzo at [EMAIL PROTECTED] wrote: > platform: win 98 se > browser: IE 6 public beta That is your problem. Tried MS website? DAve > proxie: not using one or whatever > connection: LAN-mediaone > > -Original Message

Re: [PHP] Wget and PHP

2001-07-15 Thread DAve Goodrich
10:22 downloads.php -rw-r--r-- 1 sysadmin rbldev 18212 Jul 15 10:22 index.html drwxr-xr-x 2 sysadmin rbldev 4096 Jul 15 10:22 license/ -rw-r--r-- 1 sysadmin rbldev 18090 Jul 15 10:22 links.php drwxr-xr-x 12 sysadmin rbldev 4096 Jul 15 10:23 manual/ drwxr-xr-x 2 sysadmi

Re: [PHP] return

2001-07-17 Thread Dave Freeman
t; expDate("11/2002"); > print "$month $year"; > ?> would do it I expect. CYA, Dave --- Outback Queensland Internet - Longreach, Outback Queensland

Re: [PHP] passing variables from forms to the same page repetatively

2001-07-17 Thread Dave Freeman
/forms. CYA, Dave --- Outback Queensland Internet - Longreach, Outback Queensland - Australia http://www.outbackqld.net.au mailto:[EMAIL PROTECTED] --- -

[PHP] gd lib question.

2001-07-17 Thread Dave Mariner
chine, and I don't want to retrofit it just to test this one thing out! Thanks in advance, Dave Mariner.

Re: [PHP] displaying icons

2001-07-17 Thread Dave Freeman
On 17 Jul 01, at 16:30, Yassel Omar Izquierdo Souchay wrote: > Put the same text inside php example > echo "" the next code and if you want it to work reliable do is this way: echo ""; and

Re: [PHP] Slash Problems When Using PHP and POST.

2001-07-18 Thread Dave Stewart
I had this problem last week You need to add the stripslashes function to the string that contains the uploaded text. print stripslashes($file) or print stripslashes($contents) I think should do it. Dave - Original Message - From: "Corin Rathbone" <[EMAIL PROTECTED]

Re: [PHP] sql query successful

2001-07-18 Thread Dave Freeman
numrows($sql) < 1) { echo "failed or no data found"; } else { echo "passed"; } Seems to work for me. CYA, Dave --- Outback Queensland I

Re: [PHP] redirect to another page in PHP???

2001-07-19 Thread Dave Freeman
mewhere or want to display some sort of message before the redirection takes place. No doubt there's other solutions, there usually is. CYA, Dave --- Outback Queensland Internet - Long

Re: [PHP] testing if var is empty

2001-07-21 Thread Dave Freeman
as not been set } will do what you want. CYA, Dave --- Outback Queensland Internet - Longreach, Outback Queensland - Australia http://www.outbackqld.net.au

Re: [PHP] testing if var is empty

2001-07-21 Thread Dave Freeman
when I run this I get var unset var unset If you're doing tests based on a var being set to 0 you may need to rethink your tests or your use of the var. CYA, Dave --- Outback Queensland Internet - Longre

Re: [PHP] HTML table problem (solvable with PHP?)

2001-07-26 Thread Dave Freeman
tent. Then, inside the cells for each of the two columns you create another table to hold your actual navigation and content. CYA, Dave --- Outback Queensland Internet - Longreach, Outback Queensland - Australia http://www.

RE: [PHP] HTTP header question.

2001-07-29 Thread Dave VanAuken
o to speak) and displays the page iwth all URL's conyaining the encoded key. you end up with one additional line of code per page (which we include as part of site template) unless you are looking for something else entirely and I am missing the point (entirely possible). Dave >---

[PHP] Revision Tracking - program concept

2001-07-30 Thread Dave Freeman
n alternate approach that will let me do this? More from a program logic point of view than from an actual code example point of view really. I guess that makes this close to off-topic but there you go - hopefully it won't be considered too

Re: [Re: [PHP] user's ip]

2001-08-10 Thread Dave Freeman
r($ip); except, perhaps, when there's also a firewall with NAT/MASQ involved - in that case you'll probably not get much closer than the firewall's IP address (at least, that's how it is on my network). CYA, Dave -

Re: [PHP] Put value directly into form?

2001-08-13 Thread Dave Freeman
u could. That's not the way that the web site you refer to is doing it. CYA, Dave --- Outback Queensland Internet - Longreach, Outback Queensland - Australia

RE: [PHP] hacks we should know about

2001-08-17 Thread Dave Freeman
ircumstance where someone has development work sitting in their home directory - you now know the home directory. Of course, security through obscurity is never a valid approach but it's also worth trying to avoid the more obvious stuff if you

[PHP] security concerns using PHP in shared, name based virtual server setup

2001-08-18 Thread Dave VanAuken
aster instructions, etc... Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Need help to create HTML table with 2 columns.

2001-08-23 Thread Dave Freeman
a on that row and then change the tags accordingly (if you've already got the start of the row, add the new column and end the row, otherwise start a row and add your data). CYA, Dave --- Outback

Re: [PHP] always last

2001-08-23 Thread Dave Freeman
['uid']) { $option_block .= "$team"; } else { > $option_block .= "$team"; } > $option_block .= "$team"; > } [etc] Basically, you need to see if the value they selected is the one you're currently working wi

Re: [PHP] \n

2001-08-24 Thread Dave Freeman
On 24 Aug 01, at 11:18, Jeremy Morano wrote: > echo " $team \n "; echo "$team\n"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Decent Web Calendar With Moderated Public Postings

2001-08-30 Thread Dave Freeman
ite at the moment to add a more robust admin module but it's a while away from being released as I've got other more pressing projects on the go. CYA, Dave --- Outback Queensland Internet - Longreach, O

Re: [PHP] Am I right or wrong?

2001-09-03 Thread Dave Freeman
basically, it's their server and they can do pretty much whatever they like with it. If you don't like it you can attempt to change their policy or vote with your feed and move elsewhere. Just my opinion though. CYA, Dave

[PHP] ereg expr guru

2001-09-24 Thread Dave VanAuken
array with [identifier] => [contents] [identifier] => [contents]... ideas? Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] sending multiple variables to external PERL script for results

2001-09-26 Thread Dave VanAuken
ng up all night... can't wrap my head around it. Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] bulk e-mails

2001-10-02 Thread Dave Watkinson
I use a database (MySQL). I retrieve the list of people to send to and then send one email at a time while looping through the results. Usually it's a couple of hundred at a time, not sure how many you mean by "many many"!!! Hope this helped! Dave -Original Message--

[PHP] Barcode info anyone...

2004-08-05 Thread Dave Carrera
code and the data from the barcode reader would go into the form field of which I can issue a OnChange instruction, but I might be completely wrong. Any pointers, urls, advice, hardware suggestions (UK Based) very much welcome Thank you in advance for any help Dave Carrera -- UK Web Hosting @

[PHP] Adjust two or more mysql rows ?

2004-08-11 Thread Dave Carrera
this is not as clear as mud and if you need further clarity to be able to advise me then I will be happy to correspond. I thank you fully in advance for any help, logic pointers or nuggets of wisdom. Dave Carrera -- UK Web Hosting @ http://www.ephgroup.com --- Outgoing mail is certified Virus F

RE: [PHP] Adjust two or more mysql rows ?

2004-08-11 Thread Dave Carrera
helps Dave Carrera -- UK Web Hosting @ http://www.ephgroup.com -Original Message- From: Jason Davidson [mailto:[EMAIL PROTECTED] Sent: 11 August 2004 19:00 To: Dave Carrera; [EMAIL PROTECTED] Subject: Re: [PHP] Adjust two or more mysql rows ? Yup, confused me... what is it for

RE: [PHP] Adjust two or more mysql rows ?

2004-08-11 Thread Dave Carrera
pdate the current $row[qty] to 0 then run the sql again as it will get the row which has a qty value Keep going til $newval = 0 exit. Probably wont work as I have it laid out here but I think the basic logic is ok. Hers goes :-) Dave Carrera -- UK Web Hosting @ http://www.ephgroup.com

[PHP] Barcodes ?

2004-09-10 Thread Dave Carrera
Hi List, Anyone have any pointers to examples of Code 39 barcode generation using php please. Thanks for any help Dave Carrera -- UK Web Hosting @ http://www.ephgroup.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.754

[PHP] Can you help ?

2004-09-23 Thread Dave Carrera
for people for this project. Yours Truly Dave Carrera -- UK Web Hosting @ http://www.ephgroup.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.768 / Virus Database: 515 - Release Date: 22/09/2004 -- PHP General

[PHP] Image upload not working correctly

2004-10-13 Thread Dave Grant
Hello. I am working on a rather large form for my work that accepts, among other things, 2 images, one smaller one 65 x 93 pixels, and a larger one 105 x 150 pixels, both in JPG format. Let me run through the whole process, showing my code. I use simple, standard HTML for the form: I chec

Re: [PHP] Image upload not working correctly

2004-10-14 Thread Dave Grant
Thanks for the reponse. Yes, the destination paths look fine and the PHP error log displays no errors. Any other ideas? Thanks. "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thursday 14 October 2004 02:40, Dave Grant wrote: > >> e

Re: [PHP] Image upload not working correctly

2004-10-14 Thread Dave Grant
EMAIL PROTECTED] > On Thursday 14 October 2004 02:40, Dave Grant wrote: > >> echo "Thumb image uploaded to ".$thumbPath."\n"; >> echo "Full image uploaded to ".$fullPath."\n"; > > Do these look OK? > >> Everything work

[PHP] Two people working on the same app / script?

2004-09-30 Thread Dave Carrera
options are useful for us. If any of you good people have ideas or solution urls or pages for reading could you please let me know. I thank you fully in advance for any help with this Dave Carrera -- UK Web Hosting @ http://www.ephgroup.com --- Outgoing mail is certified Virus Free. Checked

[PHP] Best and easy html text area replacement tool?

2004-10-04 Thread Bosky, Dave
I'm looking for an easy to use html textarea replacement script and figured this was the place to locate the most popular. Thanks, Dave HTC Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the read

[PHP] Dose this tool exist

2004-10-08 Thread Dave Carrera
make forms for php from MySql tables but I cant locate a good one anywhere Any pointers / urls will be most appreciated. Sorry if this is OT. Dave C -- UK Web Hosting @ http://www.ephgroup.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http

[PHP] Moving uploaded image tmp file problem

2004-10-20 Thread Dave Grant
Hello, I wonder if someone has ran into a problem similar to or related to this before. I have a rather large form that, among other things, allows the user to upload 2 images, one small, the other slighly larger. They upload just fine, they show up in the $_FILES array, and I do error checkin

Re: [PHP] Uninitialized string offset: 0

2007-01-06 Thread Dave Goodchild
Can you show us what you're calling it with? Al Padley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- http://www.web-buddha.co.uk

Re: [PHP] newbie question regarding URL parameters

2007-01-09 Thread Dave Goodchild
Wow, there are some really bitchy, unattractive people here. No wonder some people bail out of IT. Don't confuse knowledge for wisdom. On 1/9/07, tedd <[EMAIL PROTECTED]> wrote: At 9:17 PM -0500 1/5/07, <[EMAIL PROTECTED]> wrote: >You'll probably get 50 answers to this, but here's probably what

Re: [PHP] newbie question regarding URL parameters

2007-01-09 Thread Dave Goodchild
Read the reponses.

Re: [PHP] Please Help with simple Noob problem

2007-01-11 Thread Dave Goodchild
Why not check php.ini to see whether display_errors is set to off and switch it on until you are back in business? Check the httpd.conf file to make sure Apache is parsing .php files correctly.

Re: [PHP] no database selected

2007-01-23 Thread Dave Goodchild
mysql_select_db

[PHP] Encoding issue with £

2007-01-23 Thread Dave Goodchild
This may be more of a mysql issue, but I am using php for my app so here goes... I have a fee field in the database, and when users post events they can specify entrance fee in £. In some, not all, of the fields I am getting, for example, £7 rather than £. Is this an encoding issue? Many thanks

Re: [PHP] Encoding issue with ?

2007-01-24 Thread Dave Goodchild
Thanks guys. The issue is that users can specify text as well as currency in the input field ie '£2 students / £5 general admission'.

[PHP] Ongoing encoding issues

2007-01-26 Thread Dave Goodchild
Hi all, I posted a question a couple of days ago regarding a web app I have wherein users are able to indicated prices and concessions via a text field, and the resulting encoding issues I have experienced, the main one being seeing the pound sign as £ if viewing the results in a browser with the

Re: [PHP] php code to upload a url correctly

2007-01-26 Thread Dave Goodchild
This is what I use: $site = (!preg_match('#^http://#', $_POST['c_site'])) ? raw_param(trim(strip_tags("http:\/\/" . $_POST['c_site']))) : raw_param(trim(strip_tags($_POST['c_site']))); don't worry about raw_param, that's a function of my own, but you get the idea.

[PHP] Login script login

2007-02-02 Thread Dave Carrera
ber ok but email ok but password is not show error If all is ok set sessions, got this ok, and proceed. Any help with with this is very much appreciated. Kind Regards Dave C -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Login script login

2007-02-02 Thread Dave Carrera
i am comparing the db result with the $_POST correctly Struggling here a bit :-( Dave C Stut wrote: Dave Carrera wrote: Hi All, Having a grey brain moment here and need some advise on the logic of this, should be simple, login script. I am checking validity of customer number customer

[PHP] Sorting a multidimensional array

2007-02-08 Thread Dave Goodchild
Hi all. I am building an online events directory and as part of the system users can search for events by date, category etc. The logic involved in finding events that match the user-entered dates works like so: 1. we create a range of dates from the start and end dates specified by the user 2.

Re: [PHP] Sorting a multidimensional array

2007-02-08 Thread Dave Goodchild
Thanks for that - can't do that as all I know in the database is the start and end date for each event (so I don't have to create mapping tables and perform massive joins), the rest is handle dynamically. I think I can do it using usort, this seems to work, any comments? function compare($x, $y)

[PHP] Problems processing UNIX timestamps in events directory

2007-02-20 Thread Dave Goodchild
Hi all. I have an odd problem. I am building an events directory and when users search, they provide a date range ie Feb 16 2007 to March 12 2007 as one of the options for searching. The system then creates an array of timestamps from this and then polls the database for all events whose lifetime

Re: [PHP] Problems processing UNIX timestamps in events directory

2007-02-20 Thread Dave Goodchild
I AM using the logic you and Jochem suggest in the query, I am not performing any joins. I query for certain criteria re the start and end dates held in the database, and once I have my set I then work with it dynamically as I need to know, based on the event frequency, how many events from that r

Re: [PHP] Problems processing UNIX timestamps in events directory

2007-02-21 Thread Dave Goodchild
Thanks all for your input - you're all correct, I don't really need to use timestamps as I am only interested in dates so will be reworking the app to use dates only. I still need to generate sequences of dates and really don't want to deal with DST, so my question is: can I add days to dates with

Re: [PHP]Transform a block of code in PHP

2007-02-23 Thread Dave Goodchild
I assume you mean you want to hold that html in a variable? Use a heredoc.

Re: [PHP] Option Value

2007-02-23 Thread Dave Goodchild
Also, if you want to get into the habit of writing valid xhtml, use lowercase and selected="selected"

[PHP] IE6 session issues

2007-02-24 Thread Dave Goodchild
Hi all. I am running an online charity lottery and am having issues with IE6 and sessions. To fix them, I added the following at the top of each file: ini_set('session.name', 'tlc'); header("Cache-control: private"); session_start(); ...ran a local test in IE6 worked fine, then noticed more bla

Re: [PHP] Check if link is on a page

2007-02-24 Thread Dave Goodchild
$web = fopen('http://google.com/index.php', 'r'); $contents = file_get_contents($web); if (preg_match('/$link/', $contents))... you got it simplified and no error checking but you get the idea.

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Dave Goodchild
On 2/24/07, Otto Wyss <[EMAIL PROTECTED]> wrote: With method="post" just $kind works fine (register_global) yet I've also tried any combination of $_GET['kind'] and $_POST['kind']. With method="get" it doesn't work. O. Wyss Peter Lauri wrote: > How are you fetching the GET and POST? With $_GET

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Dave Goodchild
On 2/24/07, Dotan Cohen <[EMAIL PROTECTED]> wrote: Also, if you're using the variable in a print string, then you'll need to exit the string, like so: $print "Hello, $kind!"; would become: $print "Hello, ".$_GET["kind"]."!"; Dotan Cohen http://easyanswers.info http://nirot.com -- PHP General

Re: [PHP] Re: how to display images stored in DB

2007-02-25 Thread Dave Goodchild
On 2/25/07, zerof <[EMAIL PROTECTED]> wrote: Alain Roger escreveu: > Hi, > > i stored all my pictures in my PostgreSQL DB as bytea type. > Now i would like to know how can i display them in my PHP pages ? > > where can i find some example ? > > thanks a lot, > -- It is not a good

Re: [PHP] Populating array with function

2007-02-27 Thread Dave Goodchild
You have a typo in your code...

Re: [PHP] IE6 session issues

2007-02-28 Thread Dave Goodchild
OK. Blank entries means that as date is passed in and validated via forms, it is then entered into $_SESSION so data can be persistent as the user goes back and forth. These values are eventually entered into the database and are blank, whereas the few values that are entered from $_POST (ie credi

Re: [PHP] echo text - anti-spam-spider measure

2007-02-28 Thread Dave Goodchild
On 2/28/07, tedd <[EMAIL PROTECTED]> wrote: At 11:22 PM -0500 2/27/07, John Taylor-Johnston wrote: >I need an anti-spam-spider measure for my site. Too many addresses >are getting raked. In once instance, I created a flash page: >http://erasethis.glquebec.org/English/contact.htm >But I just don'

Re: [PHP] Intro to PHP question

2007-03-08 Thread Dave Goodchild
Of course it's possible to output raw html in a php file, that's one of it's fundamental uses! In fact, it's more efficient to switch the php parser off and send raw html as the php parser doesn't need to get involved.

Re: [PHP] Intro to PHP question

2007-03-08 Thread Dave Goodchild
If you are running that from the command line, why do you need html? Not sure why you're doing that.

<    1   2   3   4   5   6   7   8   9   10   >