Re: [PHP] Re: Development Tools

2002-07-12 Thread Matt Williams
On Wednesday 10 July 2002 20:51, Matthew K. Gold wrote: Of course, Macromedia recently bought Allaire, so who knows what the next version of Homesite will look like... Dreamweaver MX They seem to have merged all the editing bits of Homesite in with Dreamweaver. I must say this is the is

Re: [PHP] $name = My $row['name'] not longer possible?

2002-07-02 Thread Matt Williams
On Tuesday 02 July 2002 13:49, Uwe Birkenhain wrote: Hi, I upgraded to 4.2 and now I get those errormessages Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in ... when doing sth like: $name = My $row['name']; Try $name

Re: [PHP] php install

2002-07-01 Thread Matt Williams
On Monday 01 July 2002 11:20, Nigel George wrote: Hi, I'm trying to install PHP 4.2.1 on SuSE SLES 7.3 and I get the following error message checking lex output file root... ./configure: lex: command not found configure: error: cannot find output from lex; giving up any ideas? install

Re: [PHP] PHP include_path

2002-06-27 Thread Matt Williams
On Thursday 27 June 2002 17:13, you wrote: I am running php4.2.1.  I tried to use a simple include() coommand, but the path that it defaults to is /usr/local/lib/php.  Can anyone tell me how to change this? Thanks You can change this either in your php.ini or add it to a .htaccess as;

Re: [PHP] PHP -- HTML

2002-05-09 Thread Matt Williams
On Thursday 09 May 2002 1:23 pm, Dan Hardiker wrote: You could also use some form of spider to go through your website. These are usually aimed at downloading a website to your local machine, or for mass caching. This should have the effect your after with minimum fuss and no rewriting of

Re: [PHP] PHPlib sessions without a DB?

2002-04-26 Thread Matt Williams
On Friday 26 April 2002 2:25 pm, Alan McKay wrote: Folks, I was going through PHPlib for the first time to assess whether or not I can use it on a current project, and it looks pretty clear to me that you need a DB in order to use the session management. My environment will be a Windows

Re: [PHP] extracting a html file name

2002-04-23 Thread Matt Williams
On Tuesday 23 April 2002 6:59 pm, [EMAIL PROTECTED] wrote: ie bill,  car, jack, moneypower   etc... example http://www.mydomain.com/member.php/moneypower/test.html I have experimented with the php variables that come in , but the only way I could figure out to get test.html out of there

Re: [PHP] Passing Arrays

2002-04-22 Thread Matt Williams
On Monday 22 April 2002 11:40 am, Boaz Yahav wrote: Suppose i have a multiple select posted to a script by a form. now i have to send this array again with a new form to a new script.   How do i do this?   thanks   berber Hi Berber you could serialize the array into a hidden field on

Re: [PHP] Link

2002-04-18 Thread Matt Williams
On Wednesday 17 April 2002 15:37, SHEETS,JASON (Non-HP-Boise,ex1) wrote: if(Criteria=$Input) { Header(Location: http://www.yourplace.com/Pagename.php;); exit; } elseif(Criteria=$SomethingElse) { Header(Location: http://www.yourplace.com/somewhereelse.php;);

Re: [PHP] Downloading files

2002-04-09 Thread Matt Williams
On Tuesday 09 April 2002 11:20, Declan Kenny wrote: Hi folks, Ok I am trying to make a download area for files (including word files). How do I force a download of a word document rather than have it opening in IE? Declan You don't. This option is set in windows exploror. as part of the

Re: [PHP] Apache

2002-03-21 Thread Matt Williams
On Thursday 21 March 2002 08:28, jtjohnston wrote: I'm also looking at this in my .conf. I know putting something here is the answer, but what :) Directory /     Options FollowSymLinks     AllowOverride All /Directory J Options -Indexes matt -- PHP General Mailing List

[PHP] LDAP and 2k

2002-03-20 Thread Matt Williams
Hi all Has anyone been successful in authenticating ldap via win2k using samaccountname (username) instead of the users container name. I can successfully do it against the cn but this is not always the same as the username. All help/guidelines will be gratefully received. matt -- PHP

[PHP] Re: Congrats to Rasmus?

2002-03-11 Thread Matt Williams
Well, everyone's favorite PHP developer multiplied last night - Rasmus Lerdorf now has a son (9.0lbs, 19.25in. - a big boy) was born at 13:26 PDT on Wednesday March 6, 2002. If you'd like to see some pics from the family, check out this page - or to send congrats, email [EMAIL

Re: [PHP] using a variable to a function call

2002-03-08 Thread Matt Williams
On Thursday 07 March 2002 19:21, Lars Torben Wilson wrote: // The direct way: $foo-{$test . '_foo'}(); Thanks Lars This was what I was looking for, just couldn't remember the syntax -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] using a variable to a function call

2002-03-07 Thread Matt Williams
Hi all I get a variable that is set be a select box on a page. I want to use this variable to call a function within a class that is based on it's name. so if $var = me I want to call $class-me_function(); or if $var = you call $class-you_function(); How can I use the variable as part

Re: [PHP] Problem about Reading input from a Form

2002-02-25 Thread Matt Williams
On Monday 25 February 2002 12:57, Kostas Karadamoglou wrote: I can't take the variables $user and $address from the form to the php file. Below I have the code.When I test the examble I only see the html text but not the variables. Thank you Whic version of PHP are you using? If it's 4.1 I

Re: [PHP] permision denied when reading directory contents on fat32

2002-02-25 Thread Matt Williams
On Monday 25 February 2002 16:02, narko wrote: when i do directory listing with readfile('c:\some\dir\name') warning is generated Warning: readfile(c:\temp\) - Permission denied in c:\programming\apache\htdocs\downloads\update.php on line 15 filesystem is fat32 so permissions are fake

RE: [PHP] Breadcrumbs in PHP

2002-02-18 Thread Matt Williams
Hi Laurie Not really looked at the script there. But I wrote one a while back which is similar. http://oozoo.co.uk/nobba/php-here.php Have look at that and see if you have the same problems m: I was trying out this breadcrumbs code found at evolt.org:

RE: [PHP] Re: DreamWeaver/PHP ability?

2002-02-08 Thread Matt Williams
Luke Crouch wrote: I know Dreamweaver UltraDev has nice site management features for using a JSP/SQL type serverdoes it have similar capabilities with PHP/MySQL? Does anyone know? -L Search the archives on this one. There is a project called php4ud or something like that but I

RE: [PHP] determining script url

2002-02-08 Thread Matt Williams
Hi all, How can I get the full URL of the currently running script? $DOCUMENT_ROOT is not what I need, instead I need the url (be it domain if exists, or ip if not). $SERVER_NAME works but if a domain isn't paired with the server, I could get some useless information (right?).

RE: [PHP] Using $PATH_INFO as variables (inspired by www.DevShed.com)

2002-01-30 Thread Matt Williams
m: my main URL (for example) is www.mycompany.com I want the central page about our projects to be found under www.mycompany.com/projects and project LovePeaceAndBananas under www.mycompany.com/projects/LovePeaceAndBananas I already know that this can be achieved by using the $PATH_INFO

RE: [PHP] phplib???

2001-12-14 Thread Matt Williams
It is a external library with useful PHP functions. It was designed by some German guys, but you can now forget it. Main feature was the session function and that function is now integrated in the PHP extensions. Maybe not quite forget as easily as that. PHPLib offers very good user

RE: [PHP] a piece of PHP history

2001-12-13 Thread Matt Williams
http://groups.google.com/groups?selm=1991Apr14.200541.755%40napc.uucp So did you ever find the book Rasmus m: -- 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,

RE: [PHP] is_int with HTML FORM

2001-11-30 Thread Matt Williams
Ok for the question. I was under the impression that PHP would automatically select the type for the vars to use. However if I have a field in my form where I insert only a 4 in I'd expect the var to be an integer (or atleast some other whole number type of var). However is_int fails on

RE: [PHP] is_int with HTML FORM

2001-11-30 Thread Matt Williams
or remove the {$len} to not check for a length Sorry I meant replace the above with * m: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

RE: [PHP] HTTP_REFERER

2001-11-23 Thread Matt Williams
Hi, I'm writing a 404 handler and in order to report the item that was requested I was trying to get the value of HTTP_REFERER. But, it does seem to get set. Does anyone know how to find thi value? Is there a reason why it would not get set? Hi I think you're looking for this

RE: [PHP] HTTP_REFERER

2001-11-23 Thread Matt Williams
Hi, When I use HTTP_REFERER it gives me the name of the php script which is handling the 404's?! Should that happen? As someone put in one of the other reply's don't rely on HTTP_REFERER. This is set (or not) by the browser and they all have different ideas about they want to play ball with

RE: [PHP] Re: apache + ftp!

2001-11-12 Thread Matt Williams
on win32 i like g6ftp server I go along with this recommendation. Had some problems on 2k with serv-u M: -- 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,

RE: [PHP] Week of month

2001-11-01 Thread Matt Williams
Please find attached a very good date class. I can't remeber where I got it from and who wrote it but it's pretty good. M: -- Is there any way to find out the week of the month. Today is in the first week of month. That is, a function like weekofmonth() which displays 1 today 2 next

RE: [PHP] Zipping a folder on a win2000 server with php4.06

2001-10-31 Thread Matt Williams
pkzip's the name. M: Does someone out there know, how I can zip a folder with some files in it? It should be readable for Winzip. Enviroment: Win2000 Server. VB was available if useful. Additional Components (applications, dll's or whatever) could be loaded if needed. I didn't find a

RE: [PHP] Popup Window Problems Refresh

2001-10-31 Thread Matt Williams
The action for the form is only fired if the onClick=window.close() is removed. My question is how can I close the window and refresh or reload the specified window. script language=javascript function endWindow() { window.opener.location.reload(); window.close(); } /script

RE: [PHP] setting member variables out of class

2001-10-31 Thread Matt Williams
Hello, I want to set member variables out of their class. The code class is: ?php class translator { var $nombre; var $departamento; var $despacho; var $telefono; var $correo_electronico; var $pagina_personal; function translator(){ $nombre = array(Nombre,Name);

RE: [PHP] Win98 + Apache + PHP4

2001-10-30 Thread Matt Williams
I have the above configuration installed along with mySQL, all works fine on my local machine except for error/warning messages whenever previewing the page in my browser where I am calling/setting a cookie variable... A little more info re the error message would be useful. Make sure

RE: [PHP] Win98 + Apache + PHP4

2001-10-30 Thread Matt Williams
Thanks for the replies, I think it has more to do with configuration settings than anything else as all the scripts work fine on remote Linux server, it is just on my win98 set-up the problem occurs.. I am looking in the php.ini, file the only reference to a tmp directory I can

RE: [PHP] Re: Zipping a folder on a win2000 server with php4.06

2001-10-30 Thread Matt Williams
Well, I would do that but I don't know such an application. Please, can you suggest me one? pkzip of course :) M: -- 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

RE: [PHP] PHP General Archive

2001-10-30 Thread Matt Williams
http://www.progressive-comp.com/Lists/?l=php3-generalr=1w=2 M: -- 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] Quick array question

2001-10-30 Thread Matt Williams
Just found this in the manual notes http://www.php.net/manual/en/ref.array.php To delete an element from an array in an easy way, use unset($array[element]);... Funny those... manuals M: -Original Message- From: David Yee [mailto:[EMAIL PROTECTED]] Sent: 30 October 2001 19:03

RE: [PHP] How to protect MySQL password

2001-10-23 Thread Matt Williams
Move it outside the document root or put a .htaccess file inside the dir to deny access. This will still allow system access but will prevent other fopen. M: In a PHP application using MySQL i have to connect the database using $iDBhandle = mysql_connect( $sDBhost, $sDBuser, $sDBpsw );

[PHP] class problems

2001-10-18 Thread Matt Williams
Any ideas why this won't output anything ?php class test { var $table = matt; function showName() { return $this-table; } } echo test::showName(); ? I have other classes along the similar lines but a lot bigger which work fine. I'm also using

RE: [PHP] class problems

2001-10-18 Thread Matt Williams
Try to create an instant of the class like this: ?php class test { var $table = val; function showName() { return $this-table; } } $test = new Test; echo $test-showName(); ? - Original Message - From: Matt Williams [EMAIL PROTECTED] To: PHP General List [EMAIL PROTECTED

Re: [PHP] Rebuild PHP

2001-10-02 Thread Matt Williams
life so much easier -- Matt Williams [EMAIL PROTECTED] -- 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] I'm back

2001-09-25 Thread Matt Williams
Oh well, who didn't know me can whether ignore this message or just say hi :-) Cheers Everybody! Maxim Maletsky Welcome back Max M@ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

RE: [PHP] Detecting an image form submission via PHP

2001-09-21 Thread Matt Williams
When a form is submitted using a standard SUBMIT button it is possible to catch this via php using if ($submit) but how do you catch this if you are using an image for submitting instead of the button? Any help would be greatly appreciated. values of image_x and image_y will be set if you

RE: [PHP] Book

2001-09-13 Thread Matt Williams
I just got the book entitled PHP and MySQL web development by Luke Wellington and Luara Thomson. I wondering how others liked the book...I haven't gotten a chance to look at it yet..and I'm wondering if i should :-) Now that you've got it you might as well read it. Then you could tell us

RE: [PHP] Using mod_rewrite with PHP

2001-07-20 Thread Matt Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been wrestling with mod_rewrite and trying to understand how to use it for my particular purpose. I've got two php URLs I'd like to rewrite to make them search-engine friendly. Currently they look like: Example 1:

RE: [PHP] Security of PHP code

2001-07-05 Thread Matt Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The only foolproof method for restricting access is to strip forward slashes. In the above example, I can change the file to: /www/sites/mysite/teaching/../../../../etc/passwd And it will be allowed If you were to do this, however:

RE: [PHP] Missing arguments for function in class? (object-orientedprogramming)

2001-06-28 Thread Matt Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a function that works perfectly (from within a script). But when I make it a class (object) and call it from an external file, I get the following error: Warning: Missing argument 1 for display_records() in

RE: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Matt Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm pretty new to PHP but all I've seen of it so far I pretty much love! I've built a web log but when the user enters their data and they use ' or (and you know they will) php always shows it from the included web log as

RE: [PHP] Need recommendation: good user management system (PHP/MySQL)

2001-06-21 Thread Matt Williams
I'm just starting to learn PHP and it's going to take a while before I can create a really good script to password protect a section of my site, with a good admin control center to manage my user's accounts. Therefore I'm asking for recommendations on a good retail script that can handle

RE: [PHP] php4 phplib problems

2001-05-15 Thread Matt Williams
Hi is anyone using phplib with php4? yes I seem to be unable to get it working on a win98 machine with php4.0.5 with apache or PWS? I have been using it with php3 before successfully Please help I am missing something obvious? I would suggest searching the phplib archives. Using

[PHP] Compressing uploads

2001-05-15 Thread Matt Williams
Does anyone have an example of compressing file uploads or files in general? Basically some big files are being uploaded and I want to be able to zip/tar them to cut down on disc usage. I've tried playing with the zlib functions but haven't had much/any success at adding files into archives. The

RE: [PHP] bulletin board or forum

2001-05-10 Thread Matt Williams
phorum.org M@ -- 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] forms and RETURN key

2001-04-27 Thread Matt Williams
If I run this form using IE, hitting the Return/Enter key submits the form but the 'ok' variable is not set; it just redraws the form. If however, I uncomment the third echo line (the one for Name2), then hitting the Return/Enter key does have the desired effect in IE. In NS, the first

RE: [PHP] Ultradev PHP Server Model

2001-04-27 Thread Matt Williams
I was wondering, is anyone aware of a PHP server model, for Ultradev? Or, any leads on how I can create one? I'm developing a site with PHP+MS Access+Ultradev. I wanted to use some of the Ultradev server model features (and convenience), but they only support ASP/JSP/JScript. I'm

RE: [PHP] rounding up

2001-04-25 Thread Matt Williams
Hi Is there a PHP command to round up to the nearest integer? www.php.net/ceil www.php.net/round HTH M@ -- 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,

[PHP] Regular expressions

2001-04-20 Thread Matt Williams
Hi I have the script below which encases every occurance of span in a span tag The problem is I don't want it to replace any occurance of span that is inside a tag. how could I acheive this? I'm using perl regular expressions to keep the original case of the string. So, how could I replace

FW: RE: [PHP] highlighting search results (revisited)

2001-04-18 Thread Matt Williams
The input from the search form is $searchtext. The Returned Search data is $searchdata. ? $sql = "SELECT searchdata FROM table WHERE searchdata LIKE '%$searchtext'"; $result = @mysql_query($sql, $connection) or die (mysql_error()); $num = mysql_num_rows($result); $x = 0; if

RE: [PHP] checkbox validation

2001-04-18 Thread Matt Williams
After I submit to next page, at next page, how do I check which check box is checked? like this? if ($id=="on") { do something }else{ do something } Hi try this assuming you have no toher check boxes called $id if(isset($id)) { do something }else{ do other } M@ -- PHP

RE: [PHP] highlighting search results (revisited)

2001-04-18 Thread Matt Williams
Hi James I'll paste the code I use.. $string = search string entered in the text box. # // REPLACE SPACES FOR MULTIWORD SEARCH $string = str_replace(" ","%",$string); $db-query("SELECT title,description FROM files WHERE (title LIKE

RE: [PHP] how do I find out which checkbox is checked when form get submit

2001-04-18 Thread Matt Williams
Hi Jacky In it's simpliest form try this ### form action="?= $PHP_SELF; ?" method="get" input type="checkbox" name="id"br/ input type="submit" name="submit" value="submit" /form ?php echo (isset($id)) ? "checked" : "not checked"; ?

[PHP] highlighting search results (revisited)

2001-04-17 Thread Matt Williams
I am trying to write a little search script to search a mysql db. I would like to highlight the search words for the displayed results, like sourceforge etc... After a little help, I have got it to hightlight when searching for one word. The problem is if I do a search for more than one word it

RE: [PHP] mail function????

2001-04-12 Thread Matt Williams
Hi, I have PHP 4.0 with IIS on Win2K and I think compiled everything right. I'm not sure how this works on Win32, but on unix it's fine. It's the mail() function. ex. mail("[EMAIL PROTECTED]","My Subject","My Test"); and it returns: Warning: Server Error in C:\PHP/index.php on line

RE: [PHP] Are calling COM applications a trojan?

2001-04-12 Thread Matt Williams
Honestly, I still don't get you. How can the client's Word not open if the script didn't make it open with COM. ? Anyway, The only way PHP can make Word open on a clients machine is if a word document is sent to the client, or the clients browser believes that is receiving a word

[PHP] search highlighting

2001-04-12 Thread Matt Williams
Hi I'm implementing a simple keyword search. I want the results to be displayed with the keywords highlighted. I am currently using this to highlight the keywords str_replace($string,"b$string/b",$field); If I search for php, it will find PHP, PhP etc... but using the above only php will will

RE: [PHP] inlude_path not in php.ini

2001-04-06 Thread Matt Williams
I tried php_value include_path ".:./foo" php_value include_path=".:./foo" php_value include_path .:./foo php_value include_path=.:./foo php_flag include_path .:./foo # but flag is not right according to the documentation nothing :-( It seems I must change al my includes to

RE: [PHP] inlude_path not in php.ini

2001-04-05 Thread Matt Williams
How do I set the php-iclude path if I have not acess to php.ini? I know in .htacess but al I try ends in an Internal Server Error I use php4.0.4pl1 php_value include_path "/path1:/path2" HTH M@ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] [ANSWER] problem uploading big (50MB) file

2001-03-30 Thread Matt Williams
Try replacing "100M" with it's byte equivalent. Or maybe it's kilobytes. One on of my systems they had "2M" and it wouldn't upload anything cause it didn't parse it right. In other words, set that value to what you had with say php4.0.1 good luck! replaced 100M by 104857600,

RE: [PHP] Session Varables with PHP3

2001-03-29 Thread Matt Williams
See http://phplib.netuse.de regarding sessions in php3 HTH M@ -Original Message- From: Sean Weissensee [mailto:[EMAIL PROTECTED]] Sent: 29 March 2001 11:38 To: [EMAIL PROTECTED] Subject: [PHP] Session Varables with PHP3 How can I create Session Varables, the docs I have

[PHP] removing $HTTP_POST_VARS

2001-03-28 Thread Matt Williams
Hi Is there a way I can remove all the values of $HTTP_POST_VARS? I'm trying to check where a form has been posted from and if it's not the right plac I want to remove all the post vars so they can't any damage. I've tried unset($HTTP_POST_VARS) but it doesn't seem to do anything. TIA M@

RE: [PHP] Spacing between $row[City],$row[State]

2001-03-27 Thread Matt Williams
Is there a way to get spacing between $row["City"],$row["State"] in the html output? I've tried echo "$row["City"], nbsp; $row["State"]"; and a bunch of other things and get Parse error: parse error, expecting `STRING' or `NUM_STRING' or `'$'' . Try echo $row["City"]." ".$row["State"];

[PHP] string-integer

2001-03-23 Thread Matt Williams
Hi I am trying to validate a form to check the user has entered there date of birth correctly There are three fields day, month year. how can I check whether a string is a number? I have tried using is_long(), is_int(), is_integer() to check the values ,but it doesn't seem to be working. the

RE: [PHP] Response.Write [OK]

2001-03-21 Thread Matt Williams
I have built a shopping cart and have made connection to an Internet payment company. Now once transaction is processed they want from my confirmation page to receive an "[OK]". How can I do this with php3/4? Response.Write"[OK]" is what ASP uses, I think??? try echo

RE: [PHP] Can you recommend an ISP with the following?

2001-03-19 Thread Matt Williams
*PHP4 *MySQL *Telnet access *Decent Support *Preferably a Cobalt server (or one with a VERY good Web-based administrator, most other types of Web administrators I've seen have been clunky and a PITA) *Pretty Cheap www.blueboxwebhosting.com especially good for support M@ -- PHP

RE: [PHP] site root variable (for Generic Unix and Windows)

2001-03-19 Thread Matt Williams
you could make your links absolute ie.. /cat.html so if you're in http://green/admin/admin.html you would link to http://green/cats.html HTH M@ I am developing a PHP site under windows which is going to be deployed eventually on Unix (indeed when life gets less hectic will also be

RE: [PHP] site root variable (for Generic Unix and Windows)

2001-03-19 Thread Matt Williams
Agreed - use absolute paths - but DONT include the protocol://server Sorry, I didn't mean it to sound like I meant include the above M@ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

RE: [PHP] Website, Design, hosting and maintenance for only $999.00 per year

2001-03-16 Thread Matt Williams
[EMAIL PROTECTED] wrote: too bad they can't even spell their own email address M@ -- 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] switch with multiple case

2001-03-14 Thread Matt Williams
switch($something) { case "this": do this; break; case "those": case "them": do other; break; case "crap": case "doesn't matter": case "whatever": do nothing; break; default: print error; } snip % select case

[PHP] PHPLib Phorum

2001-03-12 Thread Matt Williams
Hi Does anyone know if anyone has built phorum or any other BB with PHPLib authentication?? I was wondering if I could save myself a lot of time.. TIA M@ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] MySQL problem - stumped

2001-03-10 Thread Matt Williams
The following code is giving an me problems, I can't figure it out to save my soul. The last line gives: Here is the code: $link = db_connect(); $query = "UPDATE Users SET firstname='$firstname', lastname='$lastname' WHERE username='$user' password='$password'"; $result =

[PHP] Getting form name

2001-02-28 Thread Matt Williams
Hi Is there a way I can get the name of the form that has been posted? Looking at the form vars I don't see a name var or such in there. TIA M@ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

RE: [PHP] Getting form name

2001-02-28 Thread Matt Williams
Thanks Simon. You would have though as it there they would make it part of the form. thanks again. M@ -- 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:

RE: [PHP] array headaches

2001-02-21 Thread Matt Williams
quot;.$subarray["name"]."abr\n"; } is there any better way of doing this?? thanks M@ -Original Message- From: Pavel Kalian [mailto:[EMAIL PROTECTED]] Sent: 21 February 2001 15:00 To: Matt Williams; [EMAIL PROTECTED]; PHP_UK@egroups.

RE: [PHP] Where is my directory on server..?

2001-02-16 Thread Matt Williams
Is there a php function to find out the path to my directory..or is there any other way..? Have a look here http://www.php.net/manual/en/language.variables.predefined.php $PATH_TRANSLATED I think gives you the full path to your script. If not one of these will M@ -- PHP General Mailing

RE: [PHP] undefined functions question

2001-02-16 Thread Matt Williams
This has been an ongoing problem, when I include a file which contains a call to a function I get undefined function errors but when I try to include the file containing the function I get cannot redeclare function error messages, I can't win how do I make sure my functions are available

RE: [PHP] Installation on win32

2001-02-14 Thread Matt Williams
You will also need to add this for the module LoadModule php4_module "c:/php/sapi/php4apache.dll" M@ -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: 14 February 2001 08:02 To: 'Sean Kennedy'; PHP Mailing List Subject: RE: [PHP] Installation on win32 add

RE: [PHP] shows up in IE but not Netscape

2001-02-09 Thread Matt Williams
/EMBED /OBJECT /td td No /tr Center Welcome back to the ColoradoPTAC website, ?PHP print $row['company']; ?.brbr Please click a href="registered/registered.html" target="_top"here/a to

[PHP] Apache Directory Browsing OT

2001-02-02 Thread Matt Williams
Hi Could someone please tell me how I can disable Directory Browsing with Apache I've been trawling the apache docs all afternoon with no success TIA M@ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Getting warning using split

2001-01-23 Thread Matt Williams
Hi I'm trying to split a string into an array but keep getting the following message: Warning: unexpected regex error (13) in z:/www_root/staff.php on line 34 The code is just $query_string = split("+",$search); where $search is from a form. Any clues?? TIA M@ -- PHP General Mailing

RE: [PHP] Parse error

2001-01-23 Thread Matt Williams
Which line is producing the error?? M@ -Original Message- From: Liam Gibbs [mailto:[EMAIL PROTECTED]] Sent: 23 January 2001 17:32 To: [EMAIL PROTECTED] Subject: Re: [PHP] Parse error Should probably put the whole thing. Why does this produce a parse error (I know that

RE: [PHP] url hide

2001-01-22 Thread Matt Williams
html head /head frameset rows="100%,*" border="0" framespacing="0" frameborder="0" frame src="http://www.foo.co.uk" /frameset noframes body your browser does not support frames - click a href="http://www.oozoo.co.uk"here/a to go to a href="http://www.blah.co.uk"http://www.blah.co.uk/a /body

RE: [PHP] how do i hide my .inc files in apache??

2001-01-18 Thread Matt Williams
My vote is still just for include files to have a standard (already accepted) extension. I think you may be missing the point on this one. The question wasn't what to name included files but how to stop apache parsing or showing the contents of the include files. The obvious solution of

RE: [PHP] File Uploading Security - Urgent please

2001-01-11 Thread Matt Williams
if(ereg("jpg|jpeg|gif$",$userfile_name)) { do something } else { this file is not allowed } This will check that the uploaded file has the correct extension. Where $userfile is the upload field name in the form M@ -Original Message- From: Statbat [mailto:[EMAIL