RE: [PHP] Re: File Upload Problem

2002-10-31 Thread David Robley
g useful from http://www.google.com/search?q=upload+file+content+type+form+multipart+ima ge+php&sourceid=opera&num=0&ie=utf-8&oe=utf-8 (unwrap that). As I understand it, upload by form has nothing to do with ftp - it's part of http - and I assume that it is intended to do an

[PHP] Re: confirm subscribe to php-general@lists.php.net

2002-11-04 Thread David Robley
6207596.kehogdkeclpnffkcijba-bryanc2000=insightbb.com@;lists.php.net Brian Read the instructions above carefully, particularly the bit where it tells you what address to send to, and try again. -- 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: Works in html, not when echoed in PHP

2002-11-13 Thread David Robley
f and can't get rid of the Error. > > The function is thus: > > function onoff (elemparent,elem,state) { > if (loaded) { > newstate = eval(elem+"_"+state); > if (n4) { > menuObj = eval (doc + elemparent + doc2 + elem); > } > else if (ie || n6) { > menuOb

[PHP] Re: PHP's mail() function doesn't work on my server

2002-11-13 Thread David Robley
cessfully and you need to check your sendmail logs to try and track the problem. Also check the mail address on your system that would receive error mails (not delivered, etc). Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To un

RE: [PHP] Why $ on variable names?

2002-11-13 Thread David Robley
PERL" mean? If I may be permitted a moment of mindreading, I think he meant 'precedent'. Its possible he is an American and has English as a second language :-) 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/mysql not mutually connected

2002-11-13 Thread David Robley
ry a >database in the mysql server? > Thanks for any help > > Alberto Brea > Your installation probably has mysql support enabled - use phpinfo() to check. Then see http://www.php.net/manual/en/ref.mysql.php for all the mysql functions which will do what you want. Cheers -

[PHP] Re: Thumbnail pages - alot of them

2002-06-07 Thread David Robley
gt; what would be the most efficient method to code that with PHP? any help > is appreciated! > > Thanks, > > Rory > > Look into mysql's LIMIT which permits you to define the number of records returned from a query -- David Robley Temporary Kiwi! Quod sub

[PHP] Re: Date functions & Unic Epoch

2002-06-09 Thread David Robley
tions for this - you may need to recompile your php to include them. -- 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/oracle/php

2002-06-11 Thread David Robley
if i run apache as oracle/dba. Does oracle not require you to pass appropriate user/pass when you accces it? -- 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: Email with PHP.

2002-06-11 Thread David Robley
d to do anything else.?? > > > Thanks in advance.. If you didn't have sendmail or equivalent installed when you compiled php, you'll have to reconfigure and recompile php after the mail package is installed. The configure process goes looking for sendmail and if it doesn

Re: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread David Robley
but takes more typing. > Hope this helps. > Hugh What you have described is more like a gosub. Goto jumps execution to the specified point in the code and continues from there. It does not automatically return to the line after the goto call. -- David Robley Temporary Kiwi! Quod su

[PHP] Re: POST/GET var problem

2002-06-12 Thread David Robley
$HTTP_POST_VARS['myimg.x'] seems to be an object as I can't do the following > $x=$HTTP_POST_VARS['myimg.x']; > > Anyone know how I can get this value into a variable I can use? PHP will replace the dot with an underscore as dot is normally concatention operat

[PHP] Re: converting C to PHP

2002-06-12 Thread David Robley
and I don't quite understand exactly what it does. But I wonder if intval would be a starting point to try and get the result I think you want? -- 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] netscape wont show form result

2002-06-13 Thread David Robley
sure has been pointed out previously on this list, Netscape handled poorly formatted tables differently from IE. If the exit() caused a malformed table to be sent to Netscape, NS would not render the table, whereas IE will make an attempt to render based on the information received. You can de

[PHP] Re: UPDATE mysql

2002-06-23 Thread David Robley
this syntax > correct? > if id is an int type, no. You only need to quote values being passed to [var]char or text type fields. -- 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: MySQL Problem with PHP

2002-06-26 Thread David Robley
h mark '+CHAR(39)+' blah blah blah') > > Instead of inserting: 'blah blah blah character 39 is a single speach mark ' > blah blah blah > It inserts 0 > All variations work fine when there is no single speachies > > help? Look into addslashes and the va

[PHP] Re: Weird error!!

2002-06-26 Thread David Robley
this is more likely the problem -- 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: Testing PHP on a local machine

2002-06-26 Thread David Robley
xtracting? If so, you will also need some sort of web server to be able ot develop php web based stuff. > Can all this be also done on a laptop? Works on mine. -- 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: Help and advice sought - search/replace

2002-07-02 Thread David Robley
tually > separate and rewrite each $name. I'm assuming I'll have to create a while() > or for() loop and use a regular expression for this? I'm not sure where to > look. Any help would be great - just so I won't have to go in and manually > separate first and la

Re: [PHP] HTTP_USER_AGENT?

2002-07-11 Thread David Robley
om older versions would continue operative in the new. FORTRAN 77 > to FORTRAN 90. I think the developers of PHP ought to consider why the > developers of FORTRAN thought that might be a good thing to do. It is still > used to this day. Write a FORTRAN 77 prog and it will compile and run

[PHP] Re: compiling with mysql

2002-07-14 Thread David Robley
include should give you the 'parent' directory under which both the include files and lib files can be found. 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: Question 1

2002-07-14 Thread David Robley
way would be to do this... > > Thanks in advance.. Does rdtool allow you to export in commma/tab/whatever delimited format? Then just use mysql's LOAD DATA INFILE Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To uns

RE: [PHP] Re: Question 1

2002-07-14 Thread David Robley
e: 1300 88 111 > 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW > 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for > Business > > --- > > > > >

RE: [PHP] Re: Question 1

2002-07-14 Thread David Robley
as > I am not sure how to do it,... > > > -Original Message- > From: David Robley [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 15, 2002 2:49 PM > To: Chris Kay; [EMAIL PROTECTED] > Subject: RE: [PHP] Re: Question 1 > > > On 15 Jul 2002 at 14:

Re: [PHP] Someone Help please

2002-07-17 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Chris: > > Geez, this is your third thread on this today... Lame. > > --Dan > > There is none deafer than (s)he who won't listen :-) -- David Robley Temporary Kiwi! Quod subigo farinam --

Re: [PHP] ErrorDocument 404 & Form

2002-07-17 Thread David Robley
> all. So should this work, if not why, and is there a way to fix it ? I seem to remember some discussion about this ages ago - there was some difference between how ErrorDocument works in httpd.conf and .htaccess - you might try the latter and see if there is a different result. Then again, I

[PHP] Re: snmp / php / linux /error

2002-07-18 Thread David Robley
06.1.2.11.0"); > echo $bat; > ?> > > Then I start it with php snmp_guard.php > > All I get is > > Call to undefeind funcion snmpget() > > WHY?? That error is usually an indication that the particular resource hasn't been included when php was compiled. Us

[PHP] Re: Searching...

2002-07-18 Thread David Robley
s to determine how many were returned -- 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: Searching...

2002-07-19 Thread David Robley
In article <[EMAIL PROTECTED]>, php- [EMAIL PROTECTED] says... > On Friday 19 July 2002 14:08, David Robley wrote: > > > You might consider running the first query just to get a COUNT(), rather > > than extracting all the resulting rows and using mysql_numrows to >

RE: [PHP] email

2002-07-21 Thread David Robley
"; > >echo $mail; > > > >and see if that is setting the variables...if $mail = 1 then on php's side mail is >sent if it's 0 then u have an error > > How can I see what the error is? > Check the logs for your MTA (sendmail, qmail whatever) for errors

[PHP] Re: can pdf forms be used to submit data into a db?

2003-08-28 Thread David Robley
In article , [EMAIL PROTECTED] says... > hi guys and gals, aloha from hawaii, > > Not sure if this is the right place to ask, but i just need to know if it > is technically possible to have a pdf form be filled out online and then > once the user hits submit, php takes the data and puts it into a

[PHP] Re: Lack of info

2003-09-01 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > IM not ranting, IM pointing out that I have looked on the website and the > FAQ is a joke and help from other sources is either buy something or as the > case of IRC, no channel of that description was turned up in the search. Somewher

[PHP] Re: how to include() N lines?

2003-09-04 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > hello! > > i need to include() only a given amount of lines (the first 10 for example) > instead of a whole file. > > does someone know how this has to be done? > > > thanks a lot for your effort, > best regards include and friends on

Re: [PHP] Re: URGENT: how to make a global "server temporarily down" page?

2003-09-05 Thread David Robley
In article <[EMAIL PROTECTED]>, davidtg- [EMAIL PROTECTED] says... > Bogdan -- > > ...and then Bogdan Stancescu said... > % > % Typing "Apache custom 404" and clicking on "I feel lucky" would get you > % to this information: > > Ah! That's a good point; just make everything on the site a 404.

Re: [PHP] Passing query parameter which has value "###"

2003-09-08 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Not at all. I tried it. > When I see the properties of that page it is showing me > http://172.16.1.193/main.php?name=murugesh&id=#&[EMAIL PROTECTED] > > but the actual value for id is ### > > -Murugesan > > - Original Message

[PHP] Re: php generate thumbnails

2003-09-15 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Sir, I read in a thread that you mailed some code to generate thumbnails > Might I also have a copy ? > It's been driving me crazy, all week. > Thanks > Cheers > Russell Russell - you might try this google link if you don't get a mo

[PHP] Re: Verifying E-mail Addresses

2003-09-15 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I'm having a problem with e-mail addresses entered by users that are > invalid (i.e. $email == "some person at somewhere.com"). Is there a > function I could call like: > > > if (email_is_valid($email)) >{ mail_out_newsletter($e

Re: [PHP] Control Structure problem

2003-09-17 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > yeah, i really like using cases they work well and especially if you want to > do something different for different values, i forgot about that, its a good > way to do it, > > does php have case else? cuz that is a really handy thing in

[PHP] Re: template problems

2003-09-18 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > hi, > > I've got this problem when using templates on my localhost. The code works > on my web server which i rent so the code is fine. I have ran php code for > mysql functions and other for testing purposes. > > Below is the code i us

[PHP] Re: MySQL timestamp to desired date function

2003-09-18 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi all, > > I have a a timestamp in a DB (14 digits) that I want to display like I > want in my pages. I tried to use strtotime, mktime and date functions > with no success... it always return the current timestamp instead of the > one I

[PHP] Re: program_root in phpdoc

2003-09-18 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi there any phpdoc heads out there know how to set the program_root to > show the exact path to the files, there is no setting for this in the > config files, let me know cheers. > Not sure if this is what you mean - from php.ini: ; Th

[PHP] Re: PHP and SAP

2003-09-18 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > > I had a request if it is possible to access SAP data from PHP. > > If it is, where can I get more info? > > Thanks > > Nico > This google search _may_ be what you are looking for - if SAP is a database http://www.google.com/

[PHP] Re: breaking a string into chunks

2003-09-19 Thread David Robley
In article <[EMAIL PROTECTED]>, davidtg- [EMAIL PROTECTED] says... > Hi, all -- > > Now it's my turn to ask a simple question, or one that sure sounds like > it should be... > > I have a 14-char date string like "20030917181909" and I need to break it > into its component parts for a more readabl

[PHP] Re: SQL statement

2003-09-23 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hello, > > Im having a bit of trouble with the DATE_FORMAT function in mysql. > > $query = ('SELECT username, password, DATE_FORMAT(timestamp, '%d%m%y') FROM > custlogon'); > > I know its failing because php doesnt like the quotatio

[PHP] Re: Accepting data from URL Parameters

2003-09-24 Thread David Robley
In article , [EMAIL PROTECTED] says... > I appologize for what may be a newbie-like request, but I have not been > able to find this information in the PHP documentation. > > If I were to have a link on an HTML page such as the following: > > http://www.foo.com/myscripts/myscript.php?Value1=value

[PHP] Re: Limits and php...

2003-10-09 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > > I have been trying to understand how to write a simple code that will > let me limit the number of files view to 10 records, but I need to > under how php can look at a number of records and then caculates how > many pages it

[PHP] Re: limit to elements in an array?

2003-10-24 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Is there an upper limit to the number of elements that can be in an > array? If so, what is that limit? That rather depends on available memory. How big is each array element? -- Quod subigo farinam A: Because it messes up the order

[PHP] Re: mysql_field_type() ...

2003-11-07 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > ...will say if a field is of type "ENUM", but not its possible values > (including default). Does anyone know how I can fetch possible values > of a field type of ENUM? > > Thanks. > > ...Rene > Try this little function which I use a

Re: [PHP] [Stats] PHP Net List: October 2003

2003-11-07 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Probably because nobody wants to risk offending John--or (more likely) > because no one will admit knowing who the "other" John Holmes is ;-) > > Cheers, > > > Marco > > -- > > php|architect - The Magazine for

Re: [PHP] Important notice

2003-12-01 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Chris W. Parker wrote: > > [EMAIL PROTECTED] > > on Wednesday, November 26, 2003 9:30 PM said: > > > >>If you feel this transaction was made > >>by our mistake, please press "No". > > > > I keep clicking "N

[PHP] Re: forms and mysql

2003-12-02 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi i am very new to PHP so need some help ! > > i have a form which allows the user to put in 2 team names and then displays > them, at the moment it displays them side by side but i need to insert V > (versus) in the middle--how can i d

[PHP] Re: preserving blank space padding when using fgetcsv

2003-12-04 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hello, > > I've been researching this for most of the day and am unable to find an > answer. > > I'm using fgetcsv to read a comma delimited file (Microsoft Excel CSV). > I'm trying to create a PHP application which will read a csv fi

[PHP] Re: problem with INSERT query

2003-12-09 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > > Hi all, > I am trying to do a simple INSERT data into the database using the following > php script but the problem here is that whenever I click "submit", the script > only insert a "NULL" value into the columns into the datada

[PHP] Re: Reading email from sendmail

2003-12-09 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Good afternoon, all!! > > Is there a function or series of functions in PHP that will allow a PHP > package to read email from a sendmail account, look for a specific > information in the subject line, then be able to resend that e

[PHP] Re: treu type fonts

2003-12-11 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > G'day all > I was wandering I have php installed with GD with freetype fonts compiled in > I ran this php script >header("Content-type: image/gif"); > $im = imagecreate(400,30); > $white = imagecolorallocate($im, 255,255,255); >

[PHP] Re: need help getting one variable

2003-12-23 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > hello all i need help to enter one variable in a cookie and then retreive it back > later, i know this probably sounds dumb to most but this is really the first time > ive tried working with cookies so please bear with me, thanks for an

[PHP] Re: Error/ Warning messages in log files (OS 121) and (OS 64)

2004-01-07 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > (Relisted as no response from over Xmas period) > > Hi, > > I am having a real problem with error messages posted in the error.log file > > in the Apache directory. I have been doing lots of searches to find a > > solution and it seems

[PHP] Re: Help parsing text file?

2004-01-08 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I'm very new to PHP. > I want to display /var/log/lastlog with php on a webpage, but I need > some help. How do I do that? > Looking at the docs it looks like file() would work, but I couldn't get > it to display the file. > Carlton. >

[PHP] Re: Function Problem (Long-ish)

2004-01-13 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi List, > > I have a self-made function that uses a MySql statement something like this: > > Function MyFunc(){ > sql = mysql_query("select * from table where somefield=\"somevar\""){ > while(blah blah){ > $var ="blah blah"; >

[PHP] Re: class limitations brought by PEAR

2004-01-14 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I don't want to rely on PEAR, mainly because I don't know it too well to > use it fully. But most PHP installs come with base PEAR classes, so does > that take away my ability to name classes that PEAR already made? (ie. > class DB). >

[PHP] Re: Adding Text to .txt file

2004-01-20 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > And this function was differs from fopen("myFile.txt", "a"); > That would possibly be fwrite() after you do an fopen as above Cheers -- Quod subigo farinam A: Because it messes up the order in which people normally read text. Q: Why i

[PHP] Re: Sorry the attachement was not received!! I put the codes here.

2004-01-20 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Just before a minute I sent a message with an attachement.. but the attachement was > canceled by the list!! > > Any way.. these are the codes of the pages : > > > Login.php : > > > $link = mysql_connect("localhost", "Database user

Re: [PHP] How to get information from

2001-02-21 Thread David Robley
On Thu, 22 Feb 2001 04:20, Zenith wrote: > Hello everbody, if a have HTML document lik this: > > > > > > How can know whether the user is pressed on the "action1" or "action2" > image button?? http://au.php.net:81/FAQ.php#7.1

Re: [PHP] Why Arrays in Forms? ( Was "Accessing variables from a form" )

2001-02-21 Thread David Robley
& HTML Consultancy > Phone: +612-93197901 > Web: http://www.steptwo.com.au/ > Email: [EMAIL PROTECTED] Because otherwise you have one variable name, and it will contain the last value which was assigned to it. I don't know any languages where you can do: $value = 'A

Re: [PHP] array headaches

2001-02-21 Thread David Robley
enu) ) > > > echo " href=\"".$subarray["url"]."\">".$subarray["name"]."\n"; > > } > > is there any better way of doing this?? > >

Re: [PHP] Adding new data at beginning.

2001-02-22 Thread David Robley
ray to file close file You could perhaps enhance this by writing to say a temp file and once you are satisfied the write is complete, rename the temp file to the original. The 'while condition not met' is the test you use to determine when you get to the part of the file where you want

Re: [PHP] Obtaining a value from dynamic list box

2001-02-22 Thread David Robley
query, $mysql_link); IIRC the relevant standards require that values in tags be enclosed in quotes if they [are likely to] contain spaces. So at minimum your OPTION tags should look like: echo "$myrow[course_name]\n"; Having said that, you could handle this better if you have an autoi

Re: [PHP]

2001-02-22 Thread David Robley
the page loads it shows which ever option is in the Data > base? > Peter Houchin > Sun Rentals > [EMAIL PROTECTED] > I think you are asking how to show the selected value? Something like ACT -- David Robley| WEBMASTER & Mail List Admin RESEARCH

Re: [PHP] mail prob

2001-02-22 Thread David Robley
se a variable from _anywhere_ Simon's example uses a variable set locally just so you can see exactly what is going on. But if you had a form element called, say, reply_address in which the user types an email address, you could pass that as the fourth argument to mail(). Of course,

Re: [PHP] mail prob

2001-02-22 Thread David Robley
available is first and last names! And then, you need a check to see what action should be taken when you call this script - at the moment every time you open the script you send, or try to send, an empty mail. Perhaps assigning a name and value to your submit button and testing for that? --

Re: [PHP] Can't connect php to mysql on linux

2001-02-25 Thread David Robley
ot;,"root","mypassword") command. > > Please help me asap. > Regards, > George Use mysql_error() after your unsuccessful call to mysql_connect to return a mysql error string -- David Robley| WEBMASTER & Mail List Admin RESEARCH

Re: [PHP] php.ini

2001-02-25 Thread David Robley
from PHP under Windows. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA -

Re: [PHP] switch statement

2001-02-25 Thread David Robley
h has some user notes which are possibly useful over and above the actual documentation. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu

Re: [PHP] switch statement

2001-02-25 Thread David Robley
sert': // Your insert stuff here break; //So it doesn't fall through to the next case case 'update: // Your update stuff here break; case default: // The page has somehow been called without a value (or an // inappropriate value) for submit // Error handling or whateve

Re: [PHP] include file

2001-02-25 Thread David Robley
ide the file config.php3. > However, I don't know why all the variable cannot display in the > function.php3. > > would anyone please to tell me what is the reason and how I can solve > it? You may need to declare the variables global within the function, or pass them as arguments to

Re: [PHP] PHP4 directives in httpd.conf not working

2001-02-25 Thread David Robley
; place. "/my/phpinc/path" definitely exists. > > What am I doing wrong? > > Regs > > Brian White PHP4 uses different Apache configuration directives (see http://au.php.net:81/manual/en/configuration.php ) I think the one you want is probably php_value so php_value

Re: [PHP] installation problem

2001-02-26 Thread David Robley
ay need to seek assistance from someone familiar with Mandrake to determine how to add the necessary stuff. I can tell you how with slackware -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/

Re: [PHP] archive location

2001-02-26 Thread David Robley
.pacifier.com nearly - marc.theaimsgroup.com or check /support.php at your local PHP mirror for direct links to all the mail list archives. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet

Re: [PHP] Walking Through Mail Headers

2001-02-26 Thread David Robley
line until you find the one beginning with Subject and do the necessary. If the latter, you'll need to check the relevant RFCs to determine how messages are separated in the spool, and how the body of the message is separated from the headers - I'm fairly sure that&#x

Re: [PHP] PERL to PHP

2001-02-26 Thread David Robley
your solution boils down to this: Set toggle = 0 open file for read while not EOF Read file line by line if(line has dashes) toggle = not(toggle) // flip the toggle endif if (toggle) print line endif endwhile close file The code is left as an exercise for the studen

Re: [PHP] Weird Problem

2001-02-26 Thread David Robley
completely flabberghasted and nearly insane. > Can anyone shed any light on this before I have to commit to bringing > down the webserver while I reinstall php4. (oh, btw I am running > Apache/1.3.14 (Unix) PHP/4.0.4pl1 on Red Hat 6.2 (I hate redhat, but > the bossman says its better supp

Re: [PHP] redirect pages

2001-02-26 Thread David Robley
having using > > if ($update) { > $result=foo; > echo ""; > } > > but to no avail .. > > any suggestions ? > > Peter Houchin if ($update) { $result=foo; header("page.php"); } and make _absolutely_ sure that your script doesn

Re: [PHP] redirect pages

2001-02-26 Thread David Robley
On Tue, 27 Feb 2001 15:15, David Robley wrote: > On Tue, 27 Feb 2001 14:58, Peter Houchin wrote: > > > can some one offer a suggestion please ... i have a > > > > if ($update) { > > $result=foo; > > } > > > > in that if statement i want to redirect

Re: [PHP] Change the Input to st different..

2001-03-04 Thread David Robley
gt; erdinc.. Have a look in the String Functions section of the manual. In particular, substr_replace, str_replace or strtr. Also the Regular Expressions section if you want more complex replacement capabilities. -- David Robley| WEBMASTER & Mail List Admin

Re: [PHP] mail problem

2001-03-04 Thread David Robley
lain; charset=iso-8859-1\nContent-Transfer-Encoding: 64bit" ); > <--- end of snip---> > > > any help would be greatful :) > Peter Houchin > Sun Rentals > [EMAIL PROTECTED] > Two things that may or may not be part of your problem; first, if there is already

Re: [PHP] dealing with no record

2001-03-04 Thread David Robley
uff...to display record found > ... > *** > what am I suppose to do if I also want the code to be able to deal with > the case that no record found and redirect user to other page? Jack $query="select name from foo"; $result= mysql_query($query); if(mysql_num_row

Re: [PHP] comparing values

2001-03-05 Thread David Robley
> > check_hackers($sourcefile, $filelist); > > Can somebody tell me why this is not return $sourcefile = "source.inc" > what am I doing wrong. > Can you please reply to [EMAIL PROTECTED] PLEASE PLEASE PLEASE Um, you aren't assigning the result of the function t

Re: [PHP] config question

2001-03-05 Thread David Robley
to displays the PHP config options so i can show > this mofo that they are off > > - Peter phpinfo() -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet

Re: [PHP] removing characters

2001-03-05 Thread David Robley
ate. > > Thanks, > Robert > p.s.-- I have ordered the Friedl book on Regular Expressions. Hoping it > will enlighten me for the future My suggestion would be to not create the empty reference in the firast place :-) Before starting your loop (but after checking there is somethin

Re: [PHP] MIME and headers

2001-03-06 Thread David Robley
s URL is an index of all the RFCs (big document ~400Kb) http://mirror.aarnet.edu.au/pub/rfc/rfc-index.txt -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| htt

Re: [PHP] MySQL help URGENT

2001-03-06 Thread David Robley
files in the particular directory or -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH

Re: [PHP] Installation on RH6.2: help!

2001-03-06 Thread David Robley
at you don't get that stuff by default - there is another RPM with mysql source and library stuff in it. If you don't need any other mysql related stuff you could try using the php builtin mysql support by using just --with-mysql and not specifying a path. -- David Robley

Re: [PHP] populate select box with contents of a file?

2001-03-07 Thread David Robley
o > to figure this one out? The directory functions - there are some simple samples in readdir() - and is_file and is_dir may be useful -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.

Re: [PHP] mysql_fetch_array()

2001-03-07 Thread David Robley
variables. while ($row=mysql_fetch_array($sql_result)) { extract($row); echo ""; echo "$field"; \\ or whatever the field is called echo ""; echo "Get it"; echo ""; echo ""; } -- David Robley| WEBMASTE

Re: [PHP] News Server (news.php.net)

2001-03-07 Thread David Robley
appropriate places. > > Yasuo Ohgaki It _is_ mentioned on the support page, just below the mailing list information - at least on the new site and I'm sure it was there before. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES

Re: [PHP] test - can someone please reply?

2001-03-07 Thread David Robley
On Thu, 8 Mar 2001 16:32, [EMAIL PROTECTED] wrote: > this is a test for echo. this is a test for echo. .ohce rof tset a si siht -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ A

Re: [PHP] test - can someone please reply?

2001-03-07 Thread David Robley
the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <[EMAIL PROTECTED]>: Sorry, no mailbox here by that name. (#5.1.1) -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://w

Re: [PHP] Qmail problem

2001-03-08 Thread David Robley
$ ls -l /usr/sbin/sendmail lrwxrwxrwx 1 root root 23 Aug 28 2000 /usr/sbin/sendmail -> /var/qmail/bin/sendmail* ~$ ls -l /usr/lib/sendmail lrwxrwxrwx 1 root root 18 Jul 12 2000 /usr/lib/sendmail -> /usr/sbin/sendmail* sendmail_path = /usr/sbin/sendmai

Re: [PHP] Mailing List

2001-03-11 Thread David Robley
the list: To contact the list administrators, e-mail: [EMAIL PROTECTED] -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu.au/

Re: [PHP] RegExp help..

2001-03-11 Thread David Robley
o: $month = substr($filename,0,2); $year = substr($filename,4,2); Then you have the string values for month and year in the respective variables. -- David Robley| WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://w

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