[PHP] Re: Weird Problem

2003-07-04 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] sketchbook.org says... > Hey, > > I've got a script which disables a banner image when it's time is up, the script > also sends an e-mail to both me and the banners owner when the time is up > > I've got a problem which is really weird.. > > Eve

[PHP] Re: Optional form variables (IDEA?)

2003-07-04 Thread David Robley
In article <[EMAIL PROTECTED] manila-usia.gov>, [EMAIL PROTECTED] says... > Hello, im doing a form that when you pass it will generate a preview report. > My problem is some fields are optional the optional fields are 5. And for > those fields I need to make it fit when it generate what idea or cod

[PHP] Re: multiple select box not showing values

2003-07-08 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I have a select box that is filled with multiple values and when the user > clicks submit, it hightlights all the values in the select box and then > sends this to my PHP file. > > I did a simple: > > echo ($_POST["imgList"]); > > to s

[PHP] Re: Retaining formatting problem

2003-07-08 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hello everyone, > > I have a long running problem that i just want to get covered, I have a standard > text box for people to insert long lengths of text. > > This text box is in a standard but when I insert it into the > database th

[PHP] Re: PHP forum

2003-07-09 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Ok some of you might not like this, others of you will know exactly what I > mean, but it just reminded me so much of this forum that I am sure some of > you will catch the humor in it: > > http://www.mac-forums.com/forums/showpost.php?p

[PHP] Re: Create a Report

2003-07-09 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I'm using MySQL and PHP for building a website, however now I need to create > a report with something like this: > > - > {Title} > {Description} > > {Zone1} > Detail Zone1.Topic1 > Detail

[PHP] Re: MySQL Results - display issue :S

2003-07-09 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I know im probibly getting irritating to most of you :P but i thought i may > ask another thing that is on my mind! > > I have a sql query bringing back 200 rows for arguments sake, From this i > would like an answer to 2 issues i have.

[PHP] Re: News Reader

2003-07-21 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Could someone advise me of a good news reader. I'm using MS Outlook at the > moment, and if I reply to any post it sends it to the users email and not to > the news server. Plus, its not that great in general terms. > > Thanks > > Dave

[PHP] Re: same operation to multiple files

2003-07-21 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I've built a CSV parser that I want to run on every file in a folder. How > do I do this? Get the filenames with opendir() and readdir() and go from there. Cheers -- Quod subigo farinam -- PHP General Mailing List (http://www.php.n

[PHP] Re: Running PHP as CGI

2003-07-21 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Can someone direct me as to how to install PHP on a linux system as CGI? I > wish to attempt to use posix_setuid() functions. > > Thanks If you are compiling from source, use your normal configure but without reference to --with-apxs

Re: [PHP] shell_exec

2003-08-08 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > > > > Shell side: > > - must be readable and executable by user (apache or perhaps everyone) > > - suid bit work only for programs, not scripts I think > > - shell can only execute cmds for which it's effective user has > > sufficien

Re: [PHP] for the love of god, remove me

2003-08-09 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > It's not usless if you read the page. > > [EMAIL PROTECTED] > > As I said, the page is useless. This doesn't work either. > > J. > You may be trying to unsubscribe from a different email address that the one used originally to sub

Re: [PHP] Passing Values between Pages : $_SESSION / $_GET

2003-08-14 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hello again, > > I would appreciate if someone could help me out with this one. > > Thanks again > > --Pushpinder > > > > > On Friday, August 8, 2003, at 11:46 AM, Pushpinder Singh Garcha wrote: > > > Hello All, > > > > I am usin

Re: [PHP] Your details

2003-08-22 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > This is the only time I'm glad I use Yahoo mail for this list. Seems > either their AV software or their mangling of attachments provided > some level of protection. Though I knew they were viri, I wanted to > check one out. They came acr

[PHP] Re: OT-Re: worm on th list

2003-08-22 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Is this worm/virus windows specific? Well, most of them are these days. Easy targets and all that... -- Quod subigo farinam $email =~ s/oz$/au/o; A: Because it messes up the order in which people normally read text. Q: Why is top-post

[PHP] Re: This is getting rediculus

2003-08-22 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Some joker is somehow making all are posts being sent to request > subscriptions, help-list, unsubscriptions.. etc. I'm not sure how > we can stop this nonsense. > > Part of the problem is there seems to be nobody in control of this > l

[PHP] Re: Uploading by email

2003-08-26 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > > I know it's slightly not totally about PHP.. but since I wanna do it with > PHP, i'll post it here. I was wondering if anybody can help me to accomplish > the following: > > - Somebody sends an email to, for example, [EMAIL PROT

RE: [PHP] My Sincere Greetings

2003-06-05 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Will someone ban this f***ing spam... > > Anyone believing this is an idiot! > > regards, > Dark Angel > > > -Original Message- If you have to respond about this sort of crap, please consider deleting the original spam so w

[PHP] Re: Ascii to Decimal Converter

2003-06-05 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hello Everybody, > I need a PHP program to convert Ascii values to > Decimal values. > May i get heLp from anybody? > Thank You, > - Chinmoy I think you want floatval() -- Quod subigo farinam -- PHP General Mailing List (http://www.

[PHP] Re: how to process incoming mails?

2003-05-28 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > > i'm using SuSE Linux 8.1 with Apache 2 and PHP 4... > here is what i want to do: > if someone writes a mail to [EMAIL PROTECTED] it should be directly > processed by a PHP script... > (I need it for a simple script, that validate

[PHP] Re: Matching titles from distinct data sources

2003-05-29 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hello > > Does anyone know of an algorithm or program for matching pieces of text > (such as film titles) that are conceptually the same, but which may be > written/spelled differently? > > eg. I need something which will identify a (li

[PHP] Re: ldap_add() troubles

2003-05-31 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi list, > > i'm very newbie in PHP so sorry for this simple question but i havn't found any > differences between my "code" and example code on a lot of website that i visited. > > I use PHP-4.3.1, OpenLDAP 2.1.19, BerkeleyDB-4.1.25 and

Re: [PHP] selecting first character from a MySQL table

2003-06-05 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > > First, let me say many thanks to those who responded to my cron tab > question - it's working well now. And now for my next trick ;) > > I'm looking for more of an opinion here. I'm doing an alphabetical listing > of members

[PHP] Re: reading a file into variable for using in a javascript

2003-06-10 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi all, > > I am reading the content of a text file into a variable to be used in a > javascript. I am reworking some code that was originally done using > ColdFusion and the jsStringFormat(var) function. What is the PHP > equivalent

Re: [PHP] PHP Email....

2003-06-12 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > Working kind of :) > > > > Get one line from it > > Kinda... I get it to return one line... > > The code: > > define('STDIN',fopen("php://stdin","r")); > $str = fgets(STDIN); > mail("[EMAIL PROTECTED]","Test","Test Test...\n\nOr

[PHP] Re: PhpMyAdmin / MySQL

2003-06-17 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hello All, > > I am using phpMyAdmin to administer my MySQl DB. I am running Mac OS > Jaguar. > when I try to start up phpMyAdmin I get an error: > > Welcome to phpMyAdmin 2.4.0 > > Error > > MySQL said: > > Can't connect to local M

[PHP] Re: Month name

2003-06-26 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > PiBIb3cgY2FuIEkgZ2V0IHRoZSBtb250aCBuYW1lIGZyb20gYSBkYXRlPyBJZiB5b3UgY291bGQg > cG9zdCB3aXRoIGFuIGV4YW1wbGUNCj4gaSdsbCBiZSBncmF0ZWZ1bGwNCg0KVHdvIGxpbmtzIHRv > IGhlbHAgeW91Li4uDQpodHRwOi8vd3d3LnBocC5uZXQvbWFudWFsL2VuL2Z1bmN0aW9uLmdldGRh > d

[PHP] Re: mysql update not working

2003-06-26 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I have the following code: > > > $sql = "UPDATE class_sub SET desc = '$catdesc', sub_cat = '$subcatname' > WHERE id='$catid'"; > echo $sql; > $sql_result = mysql_query($sql); > if (!$sql_result) > { > echo "Couldn't update

[PHP] Re: Query for MySQL

2003-07-01 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Question. > > I am looking to try and pull the last modified date out and display it. So > lets say I have 1000 records. I want to only display the date of the last > modified time, I dont care about the id or the name or anything.

[PHP] Re: getservbyname

2002-07-22 Thread David Robley
there something else > to it? > > Thanks in advance... > > > >From the docs: getservbyname() returns the Internet port which corresponds to service for the specified protocol as per /etc/services. protocol is either "tcp" or "udp" (in lowercase). Cheers

[PHP] Re: Formating datevariables...

2002-07-22 Thread David Robley
anx > > -R You can do it as you get it out of the db - see DATEFORMAT Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: does this mean ....

2002-07-22 Thread David Robley
eed a different mode. However, I think you may be better off uing fopen, instead of popen, if you are trying to do what I think you are. The documentation for fopen has a comprehensive description of the modes available; note that w is kindof destructive in the wrong context :-) Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: another problem

2002-07-22 Thread David Robley
u are asking what I think you are asking - use ord to get the ascii (decimal) value of each character, then use dechex to convert to hex. Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Using fopen()/fread()/fscanf()

2002-07-22 Thread David Robley
rror indicates that fopen failed to open the requested file. Given that the URL works fine in a browser, is it possible that your php is not configured to do remote fopen? Check the setting of allow_url_fopen in phpinfo() It is a good idea to test the result of such calls before trying to use the re

[PHP] Re: Question to 'DIR'

2002-07-23 Thread David Robley
ctories in some places. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP 4.2.2 install woe: cannot stat libs/libphp.so

2002-07-23 Thread David Robley
ELF header > /usr/local/apache/bin/apachectl start: httpd could not be started > > Any help on this would be greatly appreciated. Thanks in advance. > Reuben D. Budiardja > > Did you do 'make install' as root? -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] install to unix... hastles

2002-07-23 Thread David Robley
assuming that > > this is why > > it doesn't work ... > > > > does any one have any ideas for me php ver is 4.2.1 for now... though > > will upgrade to 4.2.2 soon.. Sounds like you are missing the system header files - what 'unix' are you using? Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] install to unix... hastles

2002-07-23 Thread David Robley
tory `/usr/local/php-4.2.1/Zend' > > > > make: *** [all-recursive] Error 1 > > > > > > > > now i understand that it can't find unix.h and am assuming that > > > > this is why > > > > it doesn't work ... > > > >

[PHP] Re: Newman and his session management.

2002-07-23 Thread David Robley
. Any hints on where to > start? session_register() ? Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP 4.2.2 install woe: cannot stat libs/libphp.so

2002-07-24 Thread David Robley
of the install directory for any clues. I'm not sure, but it might be --enable-track-vars (unless that is a typo); check with configure --help | grep track Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] install issues on Solaris

2002-07-25 Thread David Robley
ut prior to the error might be useful? Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: [PHP-DB] Re: arrays, variables, and register_globals

2002-07-25 Thread David Robley
t seems you need to print from the first record, then reset the pointer to the first record and print from all records found. So: $row = mysql_fetch_row ($result)) print ("$row[4]"); mysql_data_seek($result, 0); // Add this while ($row = mysql_fetch_row ($result)) Unless I mi

[PHP] Re: preg_match() occurence position

2002-07-25 Thread David Robley
, ...) should return me somehow: 10 > > > Thanks strpos might be useful -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: [PHP-DB] Re: arrays, variables, and register_globals

2002-07-26 Thread David Robley
quot;); mysql_data_seek($result, 0); //Reset pointer to first record while ($row = mysql_fetch_row ($result)) { print "$row[1], $row[2], etc."); } ?> You might want to look at extract as well. Cheers -- David Robley Temporary Kiwi! Quod subigo farinam "This is mutiny!" said Tom bountifully. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How do I show the sourse code?

2002-07-28 Thread David Robley
< and > > around all the <>) If you are using php v4 you can do this with show_source(), or if using apache, you can configure it to serve source code with syntax highlighting rather than parsing the code. Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP Gener

[PHP] Re: mod_php4.c errors on Apache Complie

2002-07-28 Thread David Robley
place and also amend your httpd.conf to activate php as DSO. The nyou just (re)start apache and off you go. Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Acronym: What does it mean to you?

2002-07-28 Thread David Robley
In article <01c236b2$e5af1350$f5563944@cc1966780a>, [EMAIL PROTECTED] says... > Visit http://phpacronym.coolfreepage.com > <http://phpacronym.coolfreepage.com/> and submit what the PHP acronym > means to you! Hmm, at least it is 404-compliant :-) -- David Robley

RE: [PHP] Re: libphp4.so

2002-07-30 Thread David Robley
pxs which allows the loadable module to be built, and the two with-config-file entries. The latter of these points to the directory where you have installed apache configuration files, and allows the php install process to find the apache config file and add the necessary entries to get php up and running. So the order of play is Apache configure make make install optionally start to ensure its all working PHP configure make make install Apache restart to re-read the config file That should get you up and running. I just did the php part earlier today to upgrade my laptop to 4.2.2 and it only took a few minutes. Cheers -- David Robley NUMBER CRUNCHING: Jumping on a Computer. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Not a Valid File-Handle Resource

2002-07-30 Thread David Robley
better that you test that result and be prepared to handle an error situation. For a further guess, the value $username doesn't have a trailing slash. -- David Robley NUMBER CRUNCHING: Jumping on a Computer. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Question on File Move / Delete and Create Directory

2002-07-31 Thread David Robley
t; specific path? > > 2. Is there any function in php that can move particular files to other > location? > > > -- > Thx a lot! > Jack > [EMAIL PROTECTED] > > > http:/www.php.net/filesystem -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP Gene

[PHP] Re: stripping quotes within an image tag

2002-07-31 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > hi how is it possible to strip quotes from an image tag ? > i need > > > to look like > > > > $string_no_quotes = str_replace('"', '',$yourstring); if the tag can be pla

[PHP] Re: use data-ba_se

2002-08-11 Thread David Robley
eason for this? > > Balu > The underscore is a mysql wildcard for a single character; it may be that mysql is attempting to treat it as a wildcard rather than a literal in the circumstances in which you are using it. Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Trying to delete

2002-08-13 Thread David Robley
it is quite possible that $result may be true but no entries have been deleted. You perhaps should look at the possibility of testing mysql_affected_rows to determine whether any rows have been updated/deleted. WHERE artid = '$editpic' implies that you expect artd to be a text field of

[PHP] Re: Session, error occurs

2002-08-14 Thread David Robley
t, you may have problems. > Im not to sure why this is all ways happening. If anyone haas a solution or > knows why this might occur could you please respond or email me at > [EMAIL PROTECTED] > > Much appreaciated > > Daniel > > > -- David Robley Temporary Kiw

[PHP] Re: newbie PHP/HTML pull down menu problem

2002-08-14 Thread David Robley
s, > > Brian Just the pseudocode to give you an idea... query = Select color, colorid from table run dbquery loop through dbresults end loop See the mysql functions for exampls of how to submit a query and use the results in a while loop. Cheers -- David Robley Temporary Ki

[PHP] Re: wanto uninstall php manual

2002-08-14 Thread David Robley
ried 'man up2date' to find out how to determine 1) what was installed where and 2) how to uninstall it. As a Slackware user I am unfamiliar with up2date. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Session, error occurs

2002-08-15 Thread David Robley
re error log and there wasn't any help in that. > > ??? It's possible you have more than one php.ini and the one you are editing is not the one php is reading? Again, look in phpinfo() for where php expects to find php.ini. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Got another ripper for you all ;-)

2002-08-15 Thread David Robley
> Note the new line at the end. > > Is there a way to get rid of any new lines in a string? > Because this is making my directory listing go whacko. > > > Cheers, > Liam trim() Liam is an Irish name, is it not :-) -- David Robley Temporary Kiwi! Quod subigo farinam --

[PHP] Re: Help please

2002-08-15 Thread David Robley
ation/x-httpd-php .php .php3 .html AddType application/x-httpd-php-source .phps This will cause .php .php3 and .html files to be parsed by php and will cause .phps files to be shown as highlighted source code. Modify to suit your needs and remember to restart apache after making changed

[PHP] Re: A Question about PHP upload file

2002-08-15 Thread David Robley
DQo= > If you can set Outhouse to send just text, those of us _not_ using ita might have a better chance of responding to your queries. Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How retrieve database data from email?

2002-08-15 Thread David Robley
l you have, have mail to a nominated address piped to a php script which parses the mail and responds accordingly. This would need php compiled as an executable to run the script as mail is received. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Search Engine

2002-08-15 Thread David Robley
27;referenzen_tbl.text'].""; >echo $arrResult['referenzen_tbl.technik'].""; >echo $arrResult['referenzen_tbl.year'].""; >echo ''; > } > } > ?> > > I know that there is a result comming out of the string i entered, but these failure > messages are comming up when i load the page: I think you may be in error here and in fact there is no result, which is what is triggering the error messages :-) Try this, which will return a useful error string if there is a problem with your query: $Result = mysql_query($Query, $connect) or exit("Error: ".mysql_error()); -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Apache

2002-08-20 Thread David Robley
test.pl) and if in www expoler write > http://server/test.pl result is source code of script. But I need result of > this script. You probably should be asking this in an Apache newsgroup or mailing list. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List

[PHP] Re: Dumb question

2002-08-21 Thread David Robley
make that function return the variable? > > > Thanks, > Liam Strangely, by using return. function getvar() { $vari = "bollocks"; return $vari; } $answer = getvar(); echo $answer; ?> -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Blank db entry??

2002-08-26 Thread David Robley
g else that you can use to return true if a db row is > completly empty?? > > Thanks - JohnP Perhaps if you can show the code that doesn't work? -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Virtual includes

2002-08-26 Thread David Robley
from the local file system, you need to use the full pathname, not the URI. Assuming www is really /www, you would need include '/www/forum/include/test.php' -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Date conversion problems

2002-08-26 Thread David Robley
mp it'll be constrained by that; currently the unix timestamp covers a range from 1 Jan 1970 to (mumble) January 2038. However, if your date is stored using one of the mysql date or time formats, why not try using mysql's DATE_FORMAT to pretty it up as you select from the db? IIRC s

[PHP] Re: time stamp

2002-08-28 Thread David Robley
field in your select statement, and use LIMIT to restrict the number of rows you retrieve (if you want a subset of rows). -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Building a query on multiple variables, how to test for which variables are valid?

2002-08-28 Thread David Robley
unt the array elements if 0 elemet - error handling build basic query // $query = "Select foo from bar WHERE x = $element[0]" if >1 element, add additional AND by looping through balance of array Code is left as an exercise for the student :-) Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Where is my REMOTE_USER?

2002-08-29 Thread David Robley
> > Well, probably I should drop using Apache's old auth-sceme and run all in > PHP anyway. > > Thank you for the input. > > Best > > Frank > U5com Is this snippet from the docs possibly relevant? Chapter 17. HTTP authentication with PHP The HTTP Authentic

[PHP] Re: date from mysql

2002-08-29 Thread David Robley
"$date"; > if ($i%2 == 0){ > echo "$date"; > } > $i++; > ENDWHILE; If the date is stored in one of MySql's date type fields, you could use the mysql DATE_FORMAT function to format your date. I think the logic of your looping above is a bit suspect??

[PHP] Re: eregi_replace() problems

2002-08-29 Thread David Robley
fetch_row($emotes); > eregi_replace($emotes_array[0], " alt=\"$emotes_array[0]\">", $message); > } > > ?> Shouldn't you be assigning the result of your eregi_replace to a variable, then do something with it? -- David Robley Temporary Kiwi! Quod subigo

Re: [PHP] Average Number For Math Functions

2002-09-01 Thread David Robley
which has an example of how to connect to mysql, issue a query and display the results of the query. Also, you might find http://www.php.net/extract useful in future. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Mail problem

2002-09-01 Thread David Robley
s for whatever reason; a check of the relevant mailboxes (postmaster, admin etc) may turn up more info. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Why doesn't the second instance work?

2002-09-02 Thread David Robley
reposition the pointer at the first row so you can again cycle through the records you have selected. For future reference, the same principle applies when looping through an array with some of the array handling tools. And just to make your code a bit more 'readable', you might find the extract() function handy for grabbing variable values from a result set. Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Pass array in HTTP_POST_VARS question

2002-09-03 Thread David Robley
create a simple variable that can be passed, then at the other end, use unserialize to restore it. http://www.php.net/serialize for more info -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: E-mail a submit

2002-09-10 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Chuck \"Pup\" Payne) says... > Hi, > > Is there a way that when someone add a submit or edits a record that I can > have my php page e-mail that record? And is hard to do? > > Chuck Payne Yes. No. See mail(

[PHP] Re: mysql_insert_id

2002-09-11 Thread David Robley
ld show the list your code someone might be able to see if you have a problem there. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail() function problem

2002-09-11 Thread David Robley
rs are configured so that they send mail only if the sender > > receives mail at the same time. One other possible pitfall is that reverse > > IP lookup is not working correctly and your server rejects the mail as it > > cannot verify the sender host. Also, many (well configured)

[PHP] Re: How do I upgrade my version of PHP?

2002-09-12 Thread David Robley
not sure what to do with this file. I have a Linux 7.x server. Can anyone > >> tell me how to patch my version of PHP or point me to a source that > > explains > >> how this is done? > >> > >> Thanks! patch is a *nix program to apply patches such as the one yo

[PHP] Re: what is wrong?

2002-09-12 Thread David Robley
($_POST[new_password1] == " ") > > echo "empty input"; > > > > thanks.. > > meltem Well, you are comparing it to a non-empty string of three spaces rather than an empty value "". -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General M

[PHP] Re: curl_init() ??

2002-09-12 Thread David Robley
s section of yor php.ini > -- > Geoff Hill > Information Technology Training & Solutions > A.B.N. 28 712 665 728 So I don't need to withold tax on this reply:-) Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: headers already sent

2002-09-12 Thread David Robley
Check that you don't have _any_ whitespace before the tags, and of course don't send any other output before the header function. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Regex for split() to split by , which is not in ()s?

2002-09-17 Thread David Robley
! Well, as it happens I'm too lazy to write it for you :-) -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Join in MySQL-select doesn't work

2002-09-18 Thread David Robley
t it does (possible register_globals problem?) > while(list($cpr, $fornavn, $efternavn, $gade, $postnummer, $postbynavn) = > mysql_fetch_row($result)) > > What is going on? > The select is ok if I do not join, but then I'm not able to get the > field "postbynavn&qu

[PHP] Re: Loop through POST-result

2002-09-18 Thread David Robley
d:\n"; reset ($_POST); while (list ($key, $val) = each ($_POST)) { echo "$key => $val\n"; } After each() has executed, the array cursor will be left on the next element of the array, or on the last element if it hits the end of the array. You have to use reset() if you wan

[PHP] Re: MySQL > Access

2002-09-20 Thread David Robley
the > logistics. Google is your friend. Try http://www.google.co.nz/search?q=convert+access+to+mysql -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: auto_prepend: *Exactly* like include()?

2002-09-29 Thread David Robley
he file in memory for quick retrival? > > Jc Whether a document is kept in memory cache or not is not something that php has any control over, I think; your operating system is generally what looks after that. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing Li

[PHP] Re: Can I pass the ftp transfer mode in a string?

2002-10-02 Thread David Robley
g: ftp_fput() expects parameter 4 to be long, string given > > > > If I replace $filetype with the text FTP_ASCII or FTP_BINARY it works > fine. Quick explanation: FTP_ASCII is a symbolic constant, "FTP_ASCII" is a string. -- David Robley A: Because it messes up the orde

Re: [PHP] Works from the command line but NOT from PHP

2002-10-02 Thread David Robley
"); > > > I don't see what is wrong but try echoing the text of the query itself > and see if it contains what you think it does around the $desription area. > > HTH > Chris Two bob says this is a register_globals problem -- David Robley Temporary Kiwi! Quod su

[PHP] Re: mail function problems

2002-10-02 Thread David Robley
a From: field? It may be that the from address as sent by the provider won't resolve, which may cause problems. -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: quotes in text strings

2002-10-02 Thread David Robley
tried > htmlspecialchars($string, ENT_QUOTES); > and > htmlentities($string, ENT_QUOTES); > > but these don't seem to work (maybe its me). stripslashes() is the immediate solution, but you might also want to consider the various 'magic_quotes' settings in your php.i

[PHP] Re: Database help

2002-10-08 Thread David Robley
for your circumstance: $fSql = mysql_query($fSelect, $db) or DIE("Unable to retrieve data" . mysql_error() ); //Add debugging aid while($usefields = mysql_fetch_array($fSql, MYSQL_ASSOC) { extract($usefields); //Read the docs for extract() // do whatever here } Cheers -- David Robley Tem

[PHP] Re: MySQL back up

2002-10-08 Thread David Robley
I think there is an easy way to > do it, just not sure how to code it. > > Thanks in advance! passthru and mysqldump should be able to do that for you - perhaps if you were to show the code you tried, someone might be able to suggest improvements. -- David Robley Temporary Kiwi! Quo

[PHP] Re: =Next to last record in a file=

2002-10-08 Thread David Robley
ibution [NB untested]: http://waterdata.usgs.gov/ny/nwis/uv?format=rdb&period=1&site_no=01420500 '); $current = $content{count($content)-2}; Use count to find the number of elements and use count-2 to select the second-to-last element. Recall that the first element is [0]. Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Installing both static and dynamic modules

2002-10-08 Thread David Robley
nt? > > Thanks, > Jonathan Duncan You seem to be confusing the static (Apache) module with the standalone php binary, sometimes referred to as the CGI version and which is what I think you mean by 'static cgi module'. Cheers -- David Robley Temporary Kiwi! Quod subigo farinam

[PHP] Re: mysql_num_rows error

2002-10-08 Thread David Robley
ent is not a valid MySQL result > resource in /home/olimpiad/public_html/base/alta1.php on line 34 > > I'm running the script on a linux server. > could someone help me. > Thank you. And when you get the error message, you will have the actual query to check. Cheers -

[PHP] Re: how to setup mysql logging from php scripts

2002-10-17 Thread David Robley
some cases switch to a new log) by executing FLUSH LOGS. See FLUSH. Error log The Error Log Query log The General Query Log Update log The Update Log Binary log The Binary Update Log Slow query log The Slow Query Log Log file maintenanceLog File Maintenance Sorry a

[PHP] Re: File Upload Problem

2002-10-30 Thread David Robley
ve a look at the two versions in a hex viewer and see if that is the case? Not a solution, but maybe a further step in the debugging process? Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: File Random Access

2002-10-30 Thread David Robley
of a specific file_ without the need to read/rewrite the entire file. Is there in fact any file system that allows this? Now I shall don my Nomex gear and await responses from those more knowledgeable :-) Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   5   6   7   8   9   10   >