[PHP] Headers not working

2002-04-05 Thread Sheridan Saint-Michel
.phps http://www.foxjet.com/test2.php http://www.foxjet.com/test2.phps http://www.foxjet.com/test3.php http://www.foxjet.com/test3.phps Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] Re: [PHP-DB] Auto_increment field size (was: Howto make a double LEFT JOIN)

2001-10-05 Thread Sheridan Saint-Michel
numbers so you can't use @variable+1 here. Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "Andrey Hristov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 05, 2001 11:04 AM

Re: [PHP] File extension inc?

2001-10-03 Thread Sheridan Saint-Michel
Remembering, of course, to check and make sure your include statements are of the form include("/path/file.inc") rather than include("http://mysite.com/path/file.inc";) BEFORE adding the below directive (one mistake I won't ever make again =P ) Sheridan Saint-Michel Web

Re: [PHP] Re: MySQL - Selecting Unique Entries

2001-10-03 Thread Sheridan Saint-Michel
different things. The first will combine only those rows who has the same value in both id and name, the second will combine any rows with the same value in name. Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com "Tom Churm" <[EMAIL PROTECTED]>

Re: [PHP] A powerful editor!

2001-10-03 Thread Sheridan Saint-Michel
rs from a 16.7M palette. Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "Maxim Maletsky (PHPBeginner.com)" <[EMAIL PROTECTED]> To: "'Sheridan Saint-Michel'" <[EMAIL PROTECTED]>; "&#x

Re: [PHP] A powerful editor!

2001-10-02 Thread Sheridan Saint-Michel
I just have to ask what EXACTLY you mean by nicer colors as Textpad Allows you to set any element of a Syntax Definition to any color between (0,0,0) and (255,255,255). Last I checked 16.7M colors was plenty =P Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com

Re: [PHP] Recursion

2001-10-01 Thread Sheridan Saint-Michel
$directory (the initial value of $directory). Here the base case is when you reach a directory without any subdirectories (every $file fails the if statement). Anyway, I hope this helps. If you have any specific questions about recursion feel free to drop me a line =P Sheridan Saint-Michel Web

Re: [PHP] updating a database (mysql)

2001-09-26 Thread Sheridan Saint-Michel
I think this is what you are looking for http://www.php.net/manual/en/function.mysql-affected-rows.php Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "Joseph Bannon" <[EMAIL PROTECTED]> To: "PHP (E-mai

Re: [PHP] select based on time/date

2001-09-26 Thread Sheridan Saint-Michel
Timestamp only sets itself to Now() if it isn't explicitly set (or set to NULL). So try this: $out = "UPDATE logged_in SET session='',time_in=time_in WHERE (logged_in.userid='$aid') AND (logged_in.session='$sessid')"; Sheridan Saint-Michel

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread Sheridan Saint-Michel
uery ($query) into: if( !($result = mysql_query ($query)) ) echo "Error: " . mysql_error() . ""; as I find that most of my errors in something this simple are in something fairly simple with the query itself (misspelled table or something). also make sure that if you copy

Re: [PHP] fopen // eregi question

2001-09-26 Thread Sheridan Saint-Michel
that helps Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "Brian V Bonini" <[EMAIL PROTECTED]> To: "PHP Lists" <[EMAIL PROTECTED]> Sent: Wednesday, September 26, 2001 9:21 AM Subject: [PHP] fopen

Re: [PHP] How can I fetch a table from html file using php?

2001-09-26 Thread Sheridan Saint-Michel
You just need a simple Regex. This should do it http://demo.ina-finland.fi/sample.html","r";); $buffer = fread ($fp, 100); preg_match("|]*ruudukko[^>]*>.+|is", $buffer, $regs ); $table = $regs[0]; echo $table; ?> Sheridan Saint-Michel Website Ad

Re: [PHP] select based on time/date

2001-09-26 Thread Sheridan Saint-Michel
f the date types. Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "Jason Dulberg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, September 25, 2001 6:24 PM Subject: RE

Re: [PHP] select based on time/date

2001-09-26 Thread Sheridan Saint-Michel
will automatically set time_in to Now(). This will avoid a lot of headache for you =) Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "Jason Dulberg" <[EMAIL PROTECTED]> To: "Sheridan Saint-Michel" <[EMAIL PRO

Re: [PHP] select based on time/date

2001-09-25 Thread Sheridan Saint-Michel
__ > Jason Dulberg > Extreme MTB > http://extreme.nas.net No Problem... hope that helps Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] How to obtain all the fields' names of a MySQL table?

2001-09-25 Thread Sheridan Saint-Michel
Depending on what exactly you are doing you should probably use http://www.php.net/manual/en/function.mysql-list-fields.php or http://www.php.net/manual/en/function.mysql-fetch-field.php Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message

Re: [PHP] Site Search

2001-09-24 Thread Sheridan Saint-Michel
I posted an example Site Search program to zend. You can view it here http://www.zend.com/codex.php?id=452&single=1 Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "vishal khialani" <[EMAIL PROTECTED]> T

Re: [PHP] Is anyone else seeing this everytime they mail to the list?

2001-09-21 Thread Sheridan Saint-Michel
Hmmm... I got the same bounce message when I sent this message. - Original Message - From: "Sheridan Saint-Michel" <[EMAIL PROTECTED]> To: "Jason Bell" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, September 21, 2001 1:24 PM Subject

Re: [PHP] Is anyone else seeing this everytime they mail to the list?

2001-09-21 Thread Sheridan Saint-Michel
here. (Unless you got this message when CC'ing Wee Chua) Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "Jason Bell" <[EMAIL PROTECTED]> To: "PHP Users" <[EMAIL PROTECTED]> Sent: Friday, Septemb

Re: [PHP] Codes in PHP

2001-09-20 Thread Sheridan Saint-Michel
This has been discussed in depth on this list many times. Read through some of the list archives and also read the sessions section of the manual. http://www.php.net/manual/en/ref.session.php If this is not your problem, then please give a better description of the actual problem. Sheridan

Re: [PHP] Please help!!! Trying to write some chat script!

2001-09-20 Thread Sheridan Saint-Michel
You can use a flat file and work around problems like you described by using flock, for example. I do agree a DB is the best way to go 99.9% of the time though. I just wanted to give an overview of that covered most of the possible ways to write a chat room. Sheridan Saint-Michel Website

Re: [PHP] Weird results from Left Shift

2001-09-19 Thread Sheridan Saint-Michel
I already tried that before posting the question. "; $num = $num << 1; echo "Shifted Number is $num"; ?> Gives me the output: Number is 1000 Shifted Number is 2000 Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Mess

[PHP] Weird results from Left Shift

2001-09-19 Thread Sheridan Saint-Michel
Okay, from the manual I have $a << $b - Shift the bits of $a $b steps to the left When I run the code "; $num = $num << 1; echo "Shifted Number is $num"; ?> I get the output Number is 0001000 Shifted Number is 2000 What am I missing?!? Sheridan Saint-Michel We

Re: [PHP] Please help!!! Trying to write some chat script!

2001-09-19 Thread Sheridan Saint-Michel
eople can use the chat too. You probably also want to put the form for entering new messages in its own frame so that someone isn't halfway through writing a message when the whole thing refreshes. That's pretty much it. If you have any specific questions let me know. Sheridan Saint

Re: [PHP] Problem with dropdownboxes allways ontop of layers!!!!! Please Help!!!!!

2001-09-19 Thread Sheridan Saint-Michel
This is a known bug in both IE and Netscape. You can read more about it here http://www.webreference.com/dhtml/diner/seethru/ Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "Coenraad Steenkamp" <[EMAIL P

Re: [PHP] ...::: Vacation on us! :::...

2001-09-19 Thread Sheridan Saint-Michel
What do you mean decide who gets to go? You is proper english when addressing an entire group. Can anyone say PHPCon 2001? =P Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "Jason Bell" <[EMAIL PROTECTED]

Re: [PHP] php java script

2001-09-14 Thread Sheridan Saint-Michel
cho's each element into a JavaScript Array Statement Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "AJDIN BRANDIC" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 14, 2001 10:07 A

Re: [PHP] Re: is PHP crazy, or am I?

2001-09-14 Thread Sheridan Saint-Michel
Loop Third time: $j=2; $i=2; $tam-$i=2 Continue Past Loop So out of 4 elements, you looked at 2. Hope that helps Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "Christian Dechery" <[EMAIL PROTECTED]> To: &

Re: [PHP] MySQL query help

2001-09-10 Thread Sheridan Saint-Michel
tableName"; (I also realized that simply having @count as the test value should work as it should default to NULL) If I don't set it, it just returns 1 on every row. Anyone know why it is doing this? (I am Running MySQL 3.23.36) Sheridan Saint-Michel Website Administrator Fo

Re: [PHP] MySQL query help

2001-09-10 Thread Sheridan Saint-Michel
ent like: set @count=Null; between the selects =P Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "Michael George" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 10, 2001 2:20 PM S

Re: [PHP] Expire page...

2001-09-10 Thread Sheridan Saint-Michel
che-Control: no-cache, must-revalidate"); // HTTP/1.1 header ("Pragma: no-cache"); // HTTP/1.0 Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "Dhaval Desai" <[EMAIL PROTECT

Re: [PHP] randomly picking a variable from an array

2001-09-07 Thread Sheridan Saint-Michel
Actually, the difference in speed between generating a random number in either MySQL or PHP is pretty much negligable. If you can have MySQL return just a single row, however, instead of an entire set of rows then there will be a notable difference =) Sheridan Saint-Michel Website

Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-05 Thread Sheridan Saint-Michel
- Original Message - From: "Ryan Fischer" <[EMAIL PROTECTED]> To: "Mark Maggelet" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 05, 2001 1:35 PM Subject: Re: [PHP] Assign multiple variables from mysql_fetch_row() call > You wrote: > > >I use list context a lot in PH

Re: [PHP] FW: correction to JOIN

2001-08-30 Thread Sheridan Saint-Michel
cription of what you are trying to accomplish. > Thank You. No Problem. Hope that helps. Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] What does PHP stand for?

2001-08-29 Thread Sheridan Saint-Michel
ase/ref_sh/foldoc/30/91.htm) Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "Martín Marqués" <[EMAIL PROTECTED]> To: "John Meyer" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, Augu

Re: [PHP] LONGINT... ? to be or not to be?...

2001-08-28 Thread Sheridan Saint-Michel
but it forces both $x and $y to be compared as binary numbers, which is what you want =) Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: "Alexey Prohorenko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: T

Re: [PHP] comparing 2 mysql tables

2001-08-24 Thread Sheridan Saint-Michel
I would use: $query = "select table.user from table LEFT JOIN table2 ON table.user=table2.user where table2.user is NULL"; This will return every member of user which is present in table but not in table2. >From there you can do pretty much whatever you want with it in PHP S

Re: [PHP] help needed

2001-08-24 Thread Sheridan Saint-Michel
d, so the above if should always fail. try $sql= "select id,article from travel where id < '$id' and visible = 'checked' order by id desc"; and see if that works. If not, let me know what kind of error you are getting. Sheridan Saint-Michel Website Administrator F

Re: [PHP] File upload problem

2001-08-23 Thread Sheridan Saint-Michel
Change To: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 4:31 AM Subject: [PHP] File upload problem > Hello there, > > I am trying to create a form for uploading files to the local intranet. > Therefore I created a form for uploading files as mentioned in the PHP > manual. After submittin

Re: [PHP] php-counter

2001-08-22 Thread Sheridan Saint-Michel
times!"; $query = "Update counter set count = count + 1"; if( !($dbq = mysql_query($query,$dblink))) { echo "Error updating database. Please Contact mailto:[EMAIL PROTECTED]\";>Administrator"; exit; } ?> Sheridan Saint-Michel Websi

Re: [PHP] Re: PHP based auth -----------------

2001-08-21 Thread Sheridan Saint-Michel
erver response of 401. This can effectively "log out" a user, forcing them to re-enter their username and password. Some people use this to "time out" logins, or provide a "log-out" button. All the details of this are in the manual. Sheridan Saint-Michel Website A

Re: SV: [PHP] Sending alots of mail

2001-08-16 Thread Sheridan Saint-Michel
Doesn't that make your script take A REALLY LONG TIME to run? If you do sleep(1) after each call to mail() and send out 1000 e-mails that would be a little over 16 and a half minutes of sleep. At 5000 you are up to over 80 minutes. Isn't this a problem? Sheridan Saint-Mich

Re: [PHP] Sort a an array?

2001-08-16 Thread Sheridan Saint-Michel
Change $query = "select * from $table"; to $query = "select * from $table order by Jobtitle"; Assuming (from your code) you want them alphabatized by Jobtitle of course =P Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original

Re: [PHP] PHP on client-side

2001-08-16 Thread Sheridan Saint-Michel
soon. In addition, can you imagine having to learn to write PHP with browser incompatibilities as bad as JavaScript has? I shudder at the thought. Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: Tom Malone <[EMAIL PROTEC

Re: [PHP] Creating a javascript array from database data (Off-List)

2001-08-15 Thread Sheridan Saint-Michel
[third time] */ print ")\n"; } /* */ echo "\n"; } So if you can follow that (just walk all the way through the loop for each of the three passes) you can see that no part of the code (including the print "\"$text\"";) is unnecessary Hope this

Re: [PHP] Creating a javascript array from database data

2001-08-15 Thread Sheridan Saint-Michel
quot;; else print ")\n"; } echo "\n"; } } Note: This is my quick *untested* fix done by modifying your code as little as possible. I would suggest you use mysql_fetch_row and use your loop to parse it rather than making several calls to mysql_result (esp

Re: [PHP] smart table construction from array

2001-08-14 Thread Sheridan Saint-Michel
[] = chop($linearr[$j]); } } if ($colspan == 0) { echo "$outarr[0]\n"; } else { if(count($outarr) == 0) echo "\n"; else echo "$outarr[0]\n"; } for($j=1; $j < count($outarr); $j++) { echo "$outa

Re: [PHP] PHP in corporate settings?

2001-08-09 Thread Sheridan Saint-Michel
week/stories/general/0,11011,1013904,00.html Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: Mark Maggelet <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 09, 2001 2:42

Re: [PHP] PHP in corporate settings?

2001-08-09 Thread Sheridan Saint-Michel
Bzzzt...Wrong! But thank you for playing. If you read the FAQ on Sun's "Open Source" website not only do they admit Java is not open source, but they sort of tip toe around whether or not it ever will be. http://www.sunsource.net/faq.html#Java Sheridan Saint-Michel Websit

Re: [PHP] How can i make it so....

2001-08-01 Thread Sheridan Saint-Michel
That way people can type in www.yoursite.com/loggedin.php and bypass the Authentication completely. Great! =P Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: Chris Fry <[EMAIL PROTECTED]> To: Steve Wright <[EMAIL

Re: [PHP] How can i make it so....

2001-08-01 Thread Sheridan Saint-Michel
!'; $auth = true; } else { echo 'Sign In Required.'; } } if ( ! $auth ) ?> " METHOD="POST"> Hope that helps. Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: Steve Wri

Re: [PHP] Sorry... but a good PHP editor for Linux/Unix

2001-08-01 Thread Sheridan Saint-Michel
If you are working by SSH I would suggest going ahead and taking the time to read the manual and use vim. There is more documentation on vim then you will probably ever need here http://www.vim.org/docs.html Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com

Re: [PHP] Newbie: Simple site search >> To bit more Complex...

2001-07-30 Thread Sheridan Saint-Michel
ree($directory); $dirs will then be an array filled with all of the subdirectories of the directory you handed it (Probably something like $directory = dirname($SCRIPT_FILENAME); ) You should be able to then do your grep statement on the $dirs array in a simple for loop. Let me know if you

Re: [PHP] flat file from ?

2001-07-27 Thread Sheridan Saint-Michel
Check the fwrite function. There are a couple of examples of writing flat files there. http://www.php.net/manual/en/function.fwrite.php Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: Gary <[EMAIL PROTECTED]> To: &

Re: [PHP] php and javascript

2001-07-27 Thread Sheridan Saint-Michel
ho "$foo"; ?>"; document.writeln(foo); If you need something more specific post some code. Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: Karl Phillipson <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Frida

Re: [PHP] Dynamically generate variable names?

2001-07-26 Thread Sheridan Saint-Michel
o"; } Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: Ian Marlier <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 26, 2001 2:55 PM Subject: [PHP] Dynamically generate variable names? > (please

Re: [PHP] Open window2 (javascript), enter info in a form, then close window2 and refresh window1. help.

2001-07-26 Thread Sheridan Saint-Michel
: opener.location.reload() You can reference the entire DOM of the original window from the new window. Just put opener where you would normally put window =P Let me know if this helps. Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: Matthew

Re: [PHP] Example high-profile PHP sites

2001-07-26 Thread Sheridan Saint-Michel
Let's not forget http://www.foxjet.com and http://www.onlychildclub.com (My Work and Personal Domains... both using a combination of HTML, PHP, and MySQL) Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com - Original Message - From: Unni &l

Re: [PHP] IE -> View Source

2001-07-26 Thread Sheridan Saint-Michel
th a built in JScript > function... If you view source they will only see lots of /0D looking > things, but the page will display like normal (but maybe a bit slower) > > Andrew > - Original Message - > From: "Sheridan Saint-Michel" <[EMAIL PROTECTED]> > To

Re: [PHP] IE -> View Source

2001-07-26 Thread Sheridan Saint-Michel
Even if they open a new window without a menu bar, and disable right clicking you can still see their source by opening a new browser window and typing "view-source:http://www.sitename.com"; =P Sheridan - Original Message - From: Jack <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: T

Re: [PHP] Propably easy regex question

2001-07-25 Thread Sheridan Saint-Michel
I would just do something like if(substring($text, 0, 1) == ">") { $text = ">" . $text; } else { $text = "> " . $text; } Where $text is a line of text from your message. Hope that helps Sheridan - Original Message - From: Nicklas af Ekenstam <[EMAIL PROTECTED]> To: <[EMAIL PROTECTE

[PHP] $REMOTE_USER vs $PHP_AUTH_USER

2001-07-24 Thread Sheridan Saint-Michel
After replying to a .htaccess thread I read another reply which suggested they user $REMOTE_USER. I read the HTTP Authentication section and found "In order to prevent someone from writing a script which reveals the password for a page that was authenticated through a traditional external mech

Re: [PHP] .htaccess

2001-07-24 Thread Sheridan Saint-Michel
Whatever they put in the name field of the .htaccess prompt is stored in $PHP_AUTH_USER and what they put in the password field is stored in $PHP_AUTH_PW You can read more about this here http://www.php.net/manual/en/features.http-auth.php Sheridan - Original Message - From: <[EMAIL

Re: [PHP] mail with html

2001-07-23 Thread Sheridan Saint-Michel
You just need to have the proper MIME information deopending on what exactly you are trying to do. Also, the HTML must be in Quoted Printable Format. If you have PHP configured with imap you can just run your message through the imap_8bit function (or so I am told... I didn't have that luxury =P

Re: [PHP] Unlink Woes

2001-07-23 Thread Sheridan Saint-Michel
Ok that didn't give any output... and I checked in phpinfo() and found safe_mode off. Any other ideas? Sheridan - Original Message - From: Jack Dempsey <[EMAIL PROTECTED]> To: 'Sheridan Saint-Michel' <[EMAIL PROTECTED]> Sent: Friday, July 20, 2001 12:12 P

Re: [PHP] Unlink Woes

2001-07-20 Thread Sheridan Saint-Michel
How can I find out if my server is in Safe mode? Do I have to call my Host and ask them? Sheridan - Original Message - From: <[EMAIL PROTECTED]> To: Sheridan Saint-Michel <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 20, 2001 11:25 AM Subject: Re: [PHP]

Re: [PHP] Unlink Woes

2001-07-20 Thread Sheridan Saint-Michel
I know... that's why I included all the info about how I chmod'ed both the files and directories 777 > > If you're running PHP as an Apache module it runs as the owner that Apache > runs as and can only unlink files owned by that user unless the file you are > trying to unlink is world-writable.

[PHP] Unlink Woes

2001-07-20 Thread Sheridan Saint-Michel
etgr 3516 Jul 20 10:39 admin.php and ~/www/employees$ ls -ld drwxrwxrwx 5 foxjet foxjetgr 1024 Jul 20 10:38 ./ If anyone has any ideas I would certainly appreciate them Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com

Re: [PHP] Confirmation Requester

2001-07-20 Thread Sheridan Saint-Michel
I Just wrote a page that does basic file management. For the Delete part I used function confirmSubmit() { var agree=confirm("Deleted Files Cannot Be Recovered. Are You Sure?"); if (agree) return true ; else return false ; } In my and In my form. I think that should do what you want.

Re: [PHP] Stoping Frame Breakers

2001-07-20 Thread Sheridan Saint-Michel
I would actually suggest JavaScript, rather than PHP here. Try putting something like if (parent.location != "http://www.domain.com/frames.php";) window.location = "http://www.domain.com/frames.ph

Re: [PHP] encryption

2001-07-20 Thread Sheridan Saint-Michel
a login for myself for the admin > > section of my website, so I only need to be able to protect my own password. > > I'm not sure if that information if helpful at all, but I haven't been able > > to figure out how to do it. > > > > Tom > > > >

Re: [PHP] Form verification

2001-07-19 Thread Sheridan Saint-Michel
If you want it displayed by the missing fields try something like formA must be filled out!"; echo "formB"; if(isset($submit) && $submit != "" && (!isset($formB) || $formB == "") ) echo "formB must be filled out!"; echo "formB"; echo ""; ?> Hope that helps Sheridan - Origina

Re: [PHP] encryption

2001-07-19 Thread Sheridan Saint-Michel
The problem he is addressing is that the password is sent plaintext to the server before it ever gets to MySQL. I would suggest using a JavaScript program like this http://pajhome.org.uk/crypt/md5/md5src.html and then using the PHP md5 function on the server side and comparing the two results. T

Re: [PHP] REGEXP

2001-07-19 Thread Sheridan Saint-Michel
I am not sure if I am understanding you... but if you just want to return the boundary try preg_match("|boundary=\"([^\"].+)\"|Uis", $text, $regs ); $boundary = $regs[1]; I am guessing that you want the boundary from the lines > to avoid regexp (too lazy) but now I want to use it. The final res

Re: [PHP] MySQL Query - SOLVED

2001-07-19 Thread Sheridan Saint-Michel
Thanks! That's exactly what I was looking for = 3 ) - Original Message - From: Morten Winkler Jørgensen <[EMAIL PROTECTED]> To: Sheridan Saint-Michel <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 2:56 AM Subject: Re: [PHP] MySQL Query > Hi Sheridan, > >

Re: [PHP] screen

2001-07-18 Thread Sheridan Saint-Michel
header ("Location: $PHP_SELF"); Sheridan (Seriously though... PHP produces HTML pages which are then handed to the client. It can't clear the screen the way an interactive program does.) - Original Message - From: Jeremy Morano <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday

Re: [PHP] Code Refusing to Die

2001-07-18 Thread Sheridan Saint-Michel
shouldn't fopen return false? Sheridan - Original Message - From: rm <[EMAIL PROTECTED]> To: Sheridan Saint-Michel <[EMAIL PROTECTED]>; php-general <[EMAIL PROTECTED]> Sent: Wednesday, July 18, 2001 3:40 PM Subject: Re: [PHP] Code Refusing to Die > $fp is not a

[PHP] Code Refusing to Die

2001-07-18 Thread Sheridan Saint-Michel
ad($fp, 10); 39: fclose($fp); /* More Code */ 65: } Any ideas? Am I overlooking something? Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com

Re: [PHP] Fw: Data from SQL to a string in a useable format

2001-07-18 Thread Sheridan Saint-Michel
This may be way out in left field... but since no one else seems to be answering, Have you considered using something like base64_encode? http://www.php.net/manual/en/function.base64-encode.php That would change your image to plaintext without any characters that need to be escaped. The when yo

Re: [PHP] set var in PHP clarified

2001-07-18 Thread Sheridan Saint-Michel
You would do or $title"; ?> Hope that helps Sheridan - Original Message - From: jessica lee tishmack <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 18, 2001 10:50 AM Subject: [PHP] set var in PHP clarified > Thanks for the prompt replies...but I think I shoul

[PHP] MySQL Query

2001-07-18 Thread Sheridan Saint-Michel
"; Anyway, any ideas would be greatly appreciated Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com

Re: [PHP] php- something that i don't understand

2001-07-17 Thread Sheridan Saint-Michel
If you call it with no parameters it just uses the defaults... host:port = 'localhost:3306' username = name of the user that owns the server process password = empty password Check out http://www.php.net/manual/en/function.mysql-connect.php Sheridan - Original Message - From: Sam Masie

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

2001-07-17 Thread Sheridan Saint-Michel
There are a thousand ways to pass data... some are just more kludgy than others =) In addition to using hidden fields You could put the data into a Database You could Write it to a file You could put it in a cookie You could use sessions etc, etc, ad nauseam Two things to point out, however. T

Re: [PHP] Output (Urgent!)

2001-07-17 Thread Sheridan Saint-Michel
You aren't getting the value to the PHP script... allow me to walk through what is actually happening $resolution = "document.write(screen.width)"; echo "--".$resolution."--"; You have just set a variable to "document.write(screen.width)" and then echoed that string. so it looks like you have

Re: [PHP] Quoted-Printable Encoding

2001-07-16 Thread Sheridan Saint-Michel
compiled, but I threw up an info page here http://www.foxjet.com/info.php Are there any other functions I could use, instead if imap_8bit? Sheridan - Original Message - From: jeremy brand <[EMAIL PROTECTED]> To: Sheridan Saint-Michel <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED

[PHP] Quoted-Printable Encoding

2001-07-16 Thread Sheridan Saint-Michel
) work in it's place? Any help or ideas would be greatly appreciated. Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com

Re: [PHP] RE: string search

2001-07-16 Thread Sheridan Saint-Michel
Couldn't he just do something like if (strstr($text, "aol.com")) { MyFunction(); } else { echo "Not Found"; } It just seems like using ereg for this is like killing a fly with a sledgehammer Sheridan - Original Message - From: scott [gts] <[EMAIL PROTECTED]> To: php <[EMAIL PROTE

Re: [PHP] echo vs print (was echo vs printf)

2001-07-16 Thread Sheridan Saint-Michel
Ummm. I am not sure about either having a return value... but print "you have $points points"; and echo "you have $points points"; have identical output. You can drop a variable into an echo statement with no problem Sheridan - Original Message - From: Steve Brett <[EMAIL PROTECTED

[PHP] Regex Help

2001-07-13 Thread Sheridan Saint-Michel
I want I am getting images/Logo.gif ALT="Only Child Club - The Place for Only Children" I am not as familiar with Regexes as I would like and any help would be greatly appreciated Thanks Sheridan Saint-Michel Website Administrator FoxJet, an ITW Company www.foxjet.com