[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] Storing script in database??

2002-08-01 Thread David Pratt
I am creating an application where it would be useful to write and store script in a field in a MySQL database and create a loop to process the array of the code contained in the field. Conceptually, I think it sounds reasonable but I am uncertain of what kind of process I could use to have the c

[PHP] Example safe use of eval()

2002-08-01 Thread David Pratt
I am trying to get code that I have saved as a string in a database to evaluate as code within a larger script with a loop. There are obvious security concerns with allowing users to input code into the field if it is not preprocessed before it is evaluated. The eval function appears to be the t

Re: [PHP] Example safe use of eval()

2002-08-01 Thread David Pratt
Thanks, Justin. I am really trying to figure something else out instead of eval. It is really too much of a security hole. I really appreciate the community to bounce ideas. Regards, Dave -- >From: Justin French <[EMAIL PROTECTED]> >To: David Pratt <[EMAIL PROTE

RE: [PHP] Vars passed via URL disappearing

2002-08-02 Thread David Freeman
> I just upgraded to PHP 4.2.2 and am trying to make my sites work with > register_globals turned OFF. I notice, however, that with > register_globals turned off any variables I pass via the URL don't seem to be > recognized by the script it was passed to. > I thought register_globals onl

RE: [PHP] Re: Protect PHP coding

2002-08-04 Thread David Freeman
I know I shouldn't do more to keep this going but I'll make this one, and only, post. > this all started when rasmus had a problem with the "click" > in my original post >From what I read, Rasmus made a correction to your opinion. You are entitled to your opinion, but perhaps you should lear

[PHP] $http_host use case

2002-08-08 Thread David D
Hi all, I make 2 sites with 2 domain names that use same scripts, Each has got its html templates in a special dir selected judgging from $HTTP_HOST values. I was wondering me how a web crawler (search engine robot) could refer those pages. Would crawler bring that parameter in order to refer we

Re: [PHP] $http_host use case

2002-08-09 Thread David D
You re right i will make a if statement ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Advogato metric

2002-08-09 Thread David Norman
Has anyone written or seen the Advogato.org trust metric implemented in PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Converting datestamp to text?

2002-08-10 Thread David Freeman
> In my MySQL db I have a date-field on every entry looking like this : > 2002-08-10 > When presented on a PHP page, I want it converted to > "Saturday, Augusth > 10th, 2002". > > How do I achieve that? I've been playing around with the > date-command and > strtotime-command but haven

RE: [PHP] Tried that..

2002-08-10 Thread David Freeman
> I've tried that, but as usual rtfm doesn't help me. I need > concise examples > :( > > How would I write this basic select query to get the date in > my format > (Saturday, August 10th, 2002)? > SELECT datum FROM news_items > (where "datum" is the date-stamp in "-MM-DD" format)

[PHP] creating files in OS X

2002-08-11 Thread David Rice
nable to create file test.text because Permission denied in /Library/WebServer/Documents/dev/testcreate.php on line 10 It's obviously a permissions problem but do not know what exactly to change nor where/how to change it. Thanks for any help. David -- PHP General Mailing List (http://www.ph

RE: [PHP] Re: Pictures and sound in MySQL and access via PHP

2002-08-11 Thread David Freeman
> How do you make a link in MySQL? > > I tried following code were the field "geluid" contains a > link to a mp3 > while ($row=mysql_fetch_array($result)) > { > echo ""; > echo $row[woord_nl]. "" > . $row[woord_ost]. "" > . $row[betekenis_nl]. "" > . $row[geluid]; > echo ""; > }

Re: [PHP] creating files in OS X

2002-08-11 Thread David Rice
Hi Paul: Thanks, that worked. Cheers, David On Sunday, August 11, 2002, at 07:11 PM, Paul Colcutt wrote: > Hi, > > you need to set the permissions for the directory youre creating the > file in. > Try typing (or copy and paste): > > chmod 777 /Library/WebServer/Document

[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

RE: [PHP] Whois...

2002-08-12 Thread David Freeman
> I'd like to implement on my web site an "whois" to know the > information about a domain name (.com, org, ) There's an article about doing exactly this on devshed (www.devshed.com/Server_Side/PHP/) that you could have a look at. Looked like a pretty complete solution when I went looking

[PHP] Help with output from system() or backticks

2002-08-13 Thread David Drewelow
here is something in the PHP interpreter that thinks the app has finished before it has (there's no discernable lag-time), or if there's some trick to getting output using these functions. Any help would be appreciated. Thanks, -David -- PHP General Mailing List (http://www.php.net

[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

Re: [PHP] Automatically send email on special day

2002-08-14 Thread David Buerer
\myscripts\gobirthday.php then every day at 6:00am the batch file gobirthday.bat would be ran which executes the gobirthday.php script. now it doesn't matter whehter you have visitors at all to your site. Every morning the birthday emails will get sent. David - Original Message -

[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

RE: [PHP] Automatically send email on special day

2002-08-15 Thread David Buerer
. I guess I was keying off of NoWhErMan's statment "Since my server in on my local windows machine" which I interpreted to mean that he had control of the the machine. Maybe I was wrong. DAvid -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Thursd

[PHP] Keyword & exact phrase search

2002-08-15 Thread David Buerer
2GB. The first field I'm searching in is a CHAR(255) field. The second field is a small blob and usually is only about 1 paragraph of text. The thrid field is an entire HTML document and can be many many pages long. Any help is appreciated, David

RE: [PHP] Keyword & exact phrase search

2002-08-15 Thread David Buerer
doesn't work on BLOB fields. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 8:37 AM To: David Buerer; '[EMAIL PROTECTED]' Subject: Re: [PHP] Keyword & exact phrase search I only just started getting into this, but it se

RE: [PHP] Keyword & exact phrase search

2002-08-15 Thread David Buerer
[mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 9:08 AM To: David Buerer Subject: Re: [PHP] Keyword & exact phrase search Why would you have text in blob fields? Justin French on 16/08/02 1:25 AM, David Buerer ([EMAIL PROTECTED]) wrote: > I'd like to agr

RE: [PHP] so nobody knows how do get rid of everything outside or certain tags?

2002-08-15 Thread David Buerer
Try this, it should work great. $starttag='' $endtag='' $pos_starttag=strpos(strtoupper($origstring),$starttag); $pos_endtag=strrpos(strtoupper($origstring),$endtag)+strlen($endtag); if($pos_starttag===False OR $pos_endtag===False) return 0; $newstring = substr(origstring,$pos_starttag,$pos_endt

RE: [PHP] Getting PHP to submit a form to google

2002-08-15 Thread David Piasecki
Use the google API... http://www.google.com/apis/ - David -Original Message- From: Henry [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 12:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting PHP to submit a form to google Hi all I would like to be able to get the result

RE: [PHP] assoc array question

2002-08-15 Thread David Freeman
> while (list ($key, $val) = each ($info)) > { >do stuff > } $count = 0; $last = sizeof($info); While (list($key, $val) = each($info)) { if ($count == 0) { // first time through } if ($count == $last) { // last time through } // do stuff $count++; } -- P

RE: [PHP] Undefined variable: PHP_SELF

2002-08-15 Thread David Freeman
> I keep getting "Undefined variable: PHP_SELF" when using the > following: > > > > Global variables are off... What am I doing wrong? In current versions of PHP, $PHP_SELF is available if globals are on. You'll need $_SERVER['PHP_SELF'] instead if you're keeping globals off. CYA, Dav

[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] Protocol on handling empty checkbox values

2002-08-16 Thread David Yee
dden input on the form. Then in the page that handles the POST I unserialize the array to determine if checkbox fields were passed and then handle accordingly. But I'm wondering is there a better way (or at least a standard way) of doing this? David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] secure files acess

2002-08-16 Thread David Buerer
I have a bunch of files which need to be kept secure. I need to allow a user access to them them based on a criteria which I can programmatically determine. My question, is how can I allow the user to download or view only one file on my computer without allowthem to just enter the URL into their

RE: [PHP] secure files acess

2002-08-16 Thread David Buerer
Thankyou Robert, THat is a great and easy way to do it. What if I need to initiate a download to the user? -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 2:06 PM To: David Buerer Cc: '[EMAIL PROTECTED]' Subject: Re: [PHP] se

Re: [PHP] Protocol on handling empty checkbox values

2002-08-16 Thread David Yee
x27;, and > those you do will be 'Y'. Great idea! Actually after I posted the question I thought of the same thing :-). This is probably the most elegant way. I am curious though why PHP doesn't just create the variable anyways and just assign it a null value if the box is not checked. David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Protocol on handling empty checkbox values

2002-08-17 Thread David Yee
27;t chose to I wonder why the CGI/POST specs are like that- there's probably a good reason? David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTML - iframe

2002-08-19 Thread David Buerer
Yes I know it's a PHP list, but I thought someone might have an idea on how to fixt this problem anyway. I have a page with (2) iframes. While the source file for the iframes is being loaded, the iframe shows up as a big white area, similar to a . How do I make it so this doesn't happen?

RE: [PHP] php/shell/permissions problems....

2002-08-19 Thread David Freeman
> I've got a php form, that gathers certain information, and > then passes that info on to a couple of shell scripts to > move files around, create links, import data into some mysql > databases via sql files, etc. > > The two shell scripts work fine when I'm logged in as root > via t

Re: [PHP] installing php with register globals off and on?

2002-08-19 Thread David Rice
"register_globals on" is a bad thing. Seems to me that code is much cleaner with them on. What's the down side? Cheers, David On Monday, August 19, 2002, at 05:05 PM, Rasmus Lerdorf wrote: > Sure, turn register_globals on only for the oasis directory. In you

Re: [PHP] installing php with register globals off and on?

2002-08-19 Thread David Rice
Hi Rasmus: Now turning register_globals back on and exploring "E_ALL". Thanks :) David On Monday, August 19, 2002, at 07:36 PM, Rasmus Lerdorf wrote: > If you forget to initialize your internal script variables, then people > could potentially inject bogus values for the

RE: [PHP] database value count retrieval

2002-08-19 Thread David Freeman
> >SELECT COUNT(x) FROM table; > > > >Make 'x' equal to any column name in the table and add WHERE to the > >clause as needed. > > err...all very well, but how do i retrieve the > value afterwards? > $sqlcom="select count(codigo) from comments where > codigo=$id";

[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] Unexplained Socket Error

2002-08-20 Thread David Buerer
Anyone know why I might get this error? I was working on development of a socket server several weeks ago and it was working fine. When I returned to it this morning, I am getting this error: Listening on port 1482 (sucess message from socket_create) Warning: socket_bind() unable to lookup host

Re: [PHP] Protocol on handling empty checkbox values

2002-08-20 Thread David Yee
Doh- just discovered that this won't work for updates (e.g. if value is already = 'Y' and you uncheck the box it'll stay as 'Y'). David > To throw in a curve-ball, you can set the default value for your MySQL > column to 'N', which means that any

[PHP] unable to lookup host [1001] error

2002-08-21 Thread David Buerer
Anyone ever seen this error before? What causes it? It happens on a call to socket_bind after a successful call to socket_listen. Any ideas would be appreciated. Warning: socket_bind() unable to lookup host [1001]: Recursion too deep, stack overflowed. in f:\public\www\josiah\josiah2\consultat

RE: [PHP] unable to lookup host [1001] error

2002-08-21 Thread David Buerer
Here is the code per your request mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 9:42 AM To: David Buerer Subject: Re: [PHP] unable to lookup host [1001] error Show the code and we might be able to help better... maybe line 20-35 ish, or anything you feel useful thx Andrew

[PHP] Help w/IMAP

2002-08-21 Thread David Christensen
I'm having a weird problem with the certain "date" fields using the imap_head() object in PHP4. Sorry about the long lines, but I wanted to get all the fields for imap_header() in so you could see what I mean. Index Size udate dateDate

Re: [PHP] Help w/IMAP

2002-08-21 Thread David Christensen
;; print "" . $msg_header->date . "\n"; print "" . $msg_header->Date . "\n"; print "" . $msg_header->MailDate . "\n"; print "\n"; } << SNIP On Wed, 2002-08-21 at 20:42,

[Fwd: Re: [PHP] Dumb question]

2002-08-21 Thread David Christensen
--- Begin Message --- On Wed, 2002-08-21 at 20:35, Bob Irwin wrote: > You need to declare $vari as a global variable. > > > eg; > > function getvar() > { > global $vari; > > $vari = "bollocks"; > } > > getvar(); > echo $vari; > ?> > > Best Regards > Bob Irwin > Server Admin & Web P

[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

RE: [PHP] Can someone - anyone see my error?

2002-08-25 Thread David Freeman
> And here is the error I get: > - > Warning: Unable to create > '/home/thehobby/public_html/php/phpforums/uploads/': Is a Does this directory exist? Does the user that your web server is running as have permission to write files in this directory? >

[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

RE: [PHP] Date conversion problems

2002-08-26 Thread David Freeman
> I have, in my database, a bunch of dates stored like this: > -M. Month is obviously the number of the month (5), not > the name (May). > > I want to convert the format to MMM, (ex: May, 2002), Do the conversion in MySQL - it'll save you grief in the long run... SELECT DATE_F

[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] imagecreatefrompng...fails

2002-08-27 Thread David Herring
Trying to install apache 1.3.26 plus PHP 4.2.2 installed and cannot get the libpng stuff to work with GD in the apache error log I get:- [Tue Aug 27 09:31:10 2002] [notice] child pid 6825 exit signal Segmentation fault (11) [Tue Aug 27 09:31:10 2002] [notice] child pid 6824 exit signal

[PHP] move_uploaded_file problem

2002-08-27 Thread David Rothe
should still work despite safe mode but maybe I am misunderstanding something). Any thoughts gratefully received. David Rothe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Fun with Binary Numbers

2002-08-28 Thread David Buerer
ld be 0100 Likewise, given the number: 1101 0100 0110 0110 and the mask the result 0110 I suppose this is the same algorithm used to separate the host from the node address given an IP address and a subnet mask. I just need to know what the algorithm is. Thanks David

[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

[PHP] Change user agent when using file() or fopen()

2002-08-29 Thread David Yee
TP/1.0" 404 45 "-" "PHP/4.2.2" I want to change "PHP/4.2.2" to something like "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)". I looked in php.ini but couldn't find a setting for this. Anyone know where to set this? Thanks. David -- P

[PHP] Reading from a file using fgets()

2002-08-29 Thread David Christensen
When PHP reads from a file using fgets(), does it do it in order? Meaning, when reading STDIN from a file, does it read line1, then line2, line3, and so on until EOF? My purpose is to read each line of file and push it into an array. Thanks for your help, Dave -- PHP General Mailing List

RE: [PHP] Average Number For Math Functions

2002-08-29 Thread David Freeman
> Ok so how do I sum up an entire column in my db? > For example if one row is : 1 , the next is 2, and the next > is 1 - I need to > have a total of 4 and the be able to divide by the num_rows > > The problem I ma having is the "inside" row addition If you're doing it on values from a d

Re: [PHP] Where is my REMOTE_USER?

2002-08-29 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > At 06:03 29/8/2002 -0400, David T-G wrote: > > > Frank, et al -- > > ..and then Frank said... > > % > > % Hi, > > % > > % when logging in with username and password with the good ol

[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] Re: Reading from a file using fgets()

2002-08-29 Thread David Christensen
Interesting. It's not documented. On Thu, 2002-08-29 at 14:44, Dallas Thunder wrote: > Well, this is exactly what function file() does. > > "David Christensen" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... &

Re: [PHP] Re: Reading from a file using fgets()

2002-08-29 Thread David Christensen
w.php.net/manual/en/function.file.php > > - E > > > > >Interesting. It's not documented. > > > > > >On Thu, 2002-08-29 at 14:44, Dallas Thunder wrote: > > > Well, this is exactly what function file() does. > > > > > > &qu

[PHP] fopen() and flock()

2002-09-01 Thread David McInnis
e ($fd); Doing this I get the contents of the file read into the $PAGE_CONTENT variable. I never use fopen() to write to files. Only read with the "r" directive. So what could be causing my conflicts? Do I need to flock the file to shared? I am running Linux PHP, Apache and L

[PHP] Still cannot get gd graphics to work....

2002-09-01 Thread David Herring
Help I want to install apache 1.3.26 with php 4.2.2 (plus png support) on a suse 8.0 machine. I constantly get segV errors when using imagecreatefrompng. Have tried gd 1.8.4 / and the gd beta 2.0.1, have also tried installed the latest libpng 1.2.4. The php INSTALL file makes it see

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

Re: [PHP] empty php.ini

2002-09-02 Thread David Rice
sr/local/lib/php.ini HTH Cheers, David On Monday, September 2, 2002, at 12:15 PM, timo stamm wrote: > Hi, > > > I am new to PHP. I am running the module version 4.2.2 from Marc > Lyanage (entropy.ch) on OS X 10.1 and noticed that my > /usr/local/lib/php.ini is empty!? &

[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] mysql string comparison not working

2002-09-02 Thread David Banning
if I set test = "Y"; then if ($test == "Y") {echo ("it matches");} seems to work while if ($row[24] == "Y") {echo ("it matches");} does not. The row[24] mysql variable is char type and 1 char long. any idea why it is not doing the comparison? -- PHP General Mailing List (http://www.php.net/

[PHP] Question about correct PHP/MySQL configuration

2002-09-03 Thread David Berlind
d how would I correct that? Also, what's the "shared" part of the "with" statement? Why do I need or not need that? Thanks in advance for any help. David * * * * * * * Hackers. Thieves. Cyberterrorists. Are you prepared? Take the Digital Defense Test! A ZDNet Special Report. Coming Sept. 25. http://Defense.zdnet.com <http://Defense.zdnet.com>

[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

RE: [PHP] question

2002-09-04 Thread David Buerer
while($a) { [statments] } while($b) { [statments] } while($c) { [statments] } or while(isset($a)) { [statments] } while(isset($b)) { [statments] } while(isset($c)) { [statments] } would both work well depending on your particular situation -Original Message- From: Richard Black [m

RE: [PHP] Returning Rows Question

2002-09-04 Thread David Freeman
> How do you alternate colors of the rows in a table inside a > while statement > when dealing with the output of data from a DB. I am sure > it's something > simple but I keep getting into some really long math thing... For two alternating colours I normally do something like this: $use

Re: [PHP] Help, Convincing upgrade of PHP

2002-09-04 Thread David Rice
You may also want to look at: http://www.entropy.ch/software/macosx/php/ A build for Mac OS X based on PHP 4.4.2 with simple download and install instructions. HTH David On Wednesday, September 4, 2002, at 11:46 PM, Michael Geary wrote: > Perhaps the best thing to do would be to wait

[PHP] file download/open and ie bug

2002-09-05 Thread David Buerer
I'm using version 6 of IE and Netscape I'm allowing the user to open/dowload a file from a secure locaiton on our server. Under Netscape it works great! Under IE, it doesn't work at all. IE complains about not being able to read from the server. Anyone know of any workarounds? here's the comm

RE: [PHP] sort dinamic generated table

2002-09-05 Thread David Buerer
stick the values in an array and use asort() to sort it. -Original Message- From: Rodrigo Peres [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 8:30 AM To: PHP Subject: [PHP] sort dinamic generated table Hi, I have a resume system that put a rank in it resume at runtime.

[PHP] precision using pow()

2002-09-05 Thread David Rice
build that I am using. So is it some boneheaded coding error on my part or am I asking for too much of pow()? Thanks David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Web based FTP client

2002-09-06 Thread David Buerer
Reading the users hard drive is impossible from php, but it's really easy with Java. -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: Friday, September 06, 2002 7:49 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Web based FTP client Hi Mark, > I am trying to buil

IRE: [PHP] Web based FTP client

2002-09-06 Thread David Buerer
uages which can open up direct socket connections and maybe you can even find some libraries with pre-built in ftp functions. Do some searching on the web and see what shows up. David -Original Message- From: Mark McCulligh [mailto:[EMAIL PROTECTED]] Sent: Friday, September 06, 2002 9:

RE: [PHP] Web based FTP client

2002-09-06 Thread David Buerer
se of our obsession with security we've failed. -Original Message- From: Chris Hewitt [mailto:[EMAIL PROTECTED]] Sent: Friday, September 06, 2002 11:11 AM To: Mark McCulligh Cc: David Buerer; [EMAIL PROTECTED] Subject: Re: [PHP] Web based FTP client Mark McCulligh wrote: > >I kn

[PHP] Upgrading PHP on Redhat

2002-09-08 Thread David Yee
x27;m probably doing something completely wrong??? David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: Session seams to be clearing randomly

2002-09-09 Thread David Cramblett
f PHP that can be worked around.) Session Lifetime is set to 0 and Session Garbage Collection is set to 24 minutes in the php.ini file. Thanks, David -- David Cramblett Multnomah Education Service Dist. Network and Information Services 503-257-1535 fax 503-257-1538 -- PHP General Mailing

Re: [PHP] RE: Session seams to be clearing randomly

2002-09-09 Thread David Cramblett
Additionally, I forgot to mention that the session file is still viewable in the tmp directory after the session clears. David David Cramblett wrote: > Hello, > > I am having trouble with my session clearing after a few clicks around > the application. The session is started

RE: [PHP] Upload Progress

2002-09-09 Thread David Buerer
Ya' know guys i'm sitting here thinking about this problem because I have the same problem on one of my sites. A bunch of inpatient stupid users whom are click happy when they get impatient. Event a 100K upload can take to long! I don't like the ASP idea. It's really not a good solution. I'm a

RE: [PHP] RE: Session seams to be clearing randomly

2002-09-09 Thread David Buerer
et to http://site/file.php instead of just /file.php it resets the session. -Original Message----- From: David Cramblett [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 11:38 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] RE: Session seams to be clearing randomly Additionally, I

[Fwd: Re: [PHP] RE: Session seams to be clearing randomly]

2002-09-09 Thread David Cramblett
David B, Thanks for suggestions, but this is a very basic app, again it has only three php scripts which it runs and all three load (include) the exact same header file which starts the session. Also, again, when clicking on the links, which basically just switch between the three php

RE: [PHP] QUery success, but blank results/variables

2002-09-09 Thread David Freeman
If you've typed your code in accurately then... > $detailqry = "SELECT id, parentitemid, itemtypeid, itemstatusid, [etc] > $result = mysql_query($detailqry) or die("Failed finding > task details"); somewhere in about here you want to have something like: $sqldata = mysql_fetch_array($res

Re: [PHP] random array sort

2002-09-10 Thread David Rice
the returned array of keys. i.e. array_rand ( array , array_size) I have no idea what this would produce... -David On Tuesday, September 10, 2002, at 10:33 AM, Mike At Spy wrote: > > You could use array_rand() to take stuff out of the array at random and > then > stuff it all back

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