RE: [PHP] .htaccess for PHP

2001-05-22 Thread Matt Schroebel
php_value safe_mode 1 php_value max_execution_time 15 You need to also set the AllowOverride option in apache so that apache looks into the .htaccess file. http://httpd.apache.org/docs/misc/FAQ.html#htaccess-work > I heard that you can modify PHP settings with the .htaccess > file for Apache

Re: [PHP] OT PHP Manuals

2001-05-22 Thread Matt McClanahan
net/docs.php Matt -- 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] All URL's calling one script

2001-05-24 Thread Matt Williams
> Hi All > > This is possibly more of an apache/linux question... does anyone > know a way > to force ANY url to run ONE PHP script on a virtual server... eg. > the same > script is run if a user goes to www.myserver.co.uk or > www.myserver.co.uk/dfkgjdfl/ or www.myserver.co.uk/hello.htm or

RE: [PHP] Can you fake a onClick?

2001-12-27 Thread Matt Friedman
this way. Well, that's one way to do it anyway. Perhaps it will give you an idea... Matt Friedman -Original Message- From: Douglas Harter [mailto:[EMAIL PROTECTED]] Sent: Thursday December 27, 2001 8:14 PM To: Bogdan Stancescu Cc: PHP Mailing List Subject: Re: [PHP] Can you fake

[PHP] Deleting files?

2001-12-30 Thread Matt Moreton
information about these files, it reports back that the owner is "apache" and the group is "apache". I wrote a simple script something like this: This doesnt work on files that I own, let alone files that the web server owns in my user space. What am I doing wrong? Thanks in advanced. Matt

[PHP] Hosting provider...

2002-01-01 Thread Matt Moreton
est a good provider that meets the above criteria? Thanks Matt.

RE: [PHP] connect MS Access

2002-01-01 Thread Matt Friedman
Please do not send html emails to this list. Send only plain text emails. Matt Friedman -Original Message- From: gendeng [mailto:[EMAIL PROTECTED]] Sent: Tuesday January 1, 2002 8:23 PM To: [EMAIL PROTECTED] Subject: [PHP] connect MS Access halo... i want to know about connect to

[PHP] PHP Forms

2002-01-02 Thread Matt Obstgarten
this. Thanks, Matt -- 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] Holy Moly...

2002-01-02 Thread Matt Moreton
If you dont mind downloading ~50 messages a day, then I'd recommend this group :] Regards Matt. - Original Message - From: "Julie Hull" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 03, 2002 2:16 AM Subject: [PHP] Holy Moly... >

Re: [PHP] take links from url

2002-01-06 Thread Matt Moreton
les. You'd need something to count how deep your nested if you have nested table containers. Regards Matt. - Original Message - From: "Alawi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 06, 2002 7:47 AM Subject: [PHP] take links from url I wan

RE: [PHP] ask cookie in win2000

2002-01-07 Thread Matt Friedman
times; you should search the archives to find an answer. Matt Friedman -Original Message- From: gendeng [mailto:[EMAIL PROTECTED]] Sent: Monday January 7, 2002 8:17 PM To: [EMAIL PROTECTED] Subject: [PHP] ask cookie in win2000 halo... i want to know, why cookie not working in win2000. p

[PHP] ooh forms or better

2002-01-07 Thread Matt Friedman
docs might be found? Examples would be ideal. I also found phpOpenForms which seems very good; anyone have experience with it? Many thanks, Matt Friedman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP] globals not working for me with 4.1.0

2002-01-08 Thread Matt Pieklik
results. Now after the upgrade, the code above does not echo anything. This will work, however: echo $_SERVER["REMOTE_ADDR"]; In my php.ini I have the following: register_globals = On register_argc_argv = On Any ideas on how to fix these global variables not being set? Thanks, Mat

RE: [PHP] php executing system commands..

2002-01-11 Thread Matt Friedman
Try the backtick too. print "" . `ls -l` ""; Matt Friedman Web Applications Developer www.SpryNewMedia.com Email: [EMAIL PROTECTED] -Original Message- From: mike cullerton [mailto:[EMAIL PROTECTED]] Sent: Friday January 11, 2002 8:46 AM To: [EMAIL PROTECTED] Su

RE: [PHP] Event based applications?

2002-01-12 Thread Matt Friedman
JavaScript runs on the client, PHP runs at the server. PHP cannot access client side events directly. JavaScript cannot access the database (actually it can through Internet Explorer, but that's different story...) You'll use a combo of both languages. Matt Friedman Web Applications

RE: [PHP] How should I cache database data for php?

2002-01-21 Thread Matt Friedman
st of hardware is cheap for them. They may have several gigs of memory per server and very fast processors. These machines can handle very large peaks in activity. Matt Friedman Web Applications Developer www.SpryNewMedia.com Email: [EMAIL PROTECTED] -Original Message- From: Manuel Lemos [m

RE: [PHP] OOP Problem

2002-01-22 Thread Matt Friedman
The only reason I can think of for that to happen would be if you referred to $this->mysql_connect(...); Then it would look for mysql_connect as a method of the class and wouldn't find it. Just guessing that this might be the problem. Matt Friedman Web Applications D

RE: [PHP] More Fun With Sessions!

2002-01-23 Thread Matt Schroebel
Your code works fine on my FreeBSD box running php 4.0.4pl1 but not one running php 4.0.6 ... May explain your linux issues? i.e. versions of php ... -Original Message- From: Richard Baskett [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 23, 2002 3:37 PM You only need to register

RE: [PHP] Why while doesn't work?

2002-01-24 Thread Matt Schroebel
If you only want the associative array, just use mysql_fetch_array($result). If you're using the constant MYSQL_ASSOC, uppercase it, and don't quote it. >Although the table con_inf in db sbwresearch contains 3 records with >username as the first column, the following short script generates a

RE: [PHP] Clear form post data

2002-01-24 Thread Matt Schroebel
One would need to check the db to see if the operation had already been performed, so as not to do it again. >um , lets say a form calls its own page , does some db operations and then returns to >its former self , >how do you get it to not perform said db operations on refresh? >i.e the data i

RE: [PHP] Sending a POST-message

2002-01-24 Thread Matt Schroebel
I think this is what you're looking for. It's a script written by Rasmus. http://www.php-faq.com/faq.php#39 >I wonder how I can send a POST-command to a server, via a PHP-script instead >of a form. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

RE: [PHP] Using the fsockopen ()-function

2002-01-24 Thread Matt Schroebel
>-Original Message- >From: Björne [mailto:[EMAIL PROTECTED]] >Subject: [PHP] Using the fsockopen ()-function >- >$sp = fsockopen ( "www.php.net", 80, &$errno, &$errstr, 25 ); if ( !$sp ) { > die ( $errno . ": " . $errstr ); >} >else { > fputs ( $sp, "POST /page.php HTT

RE: [PHP] Sending Form Arrays

2002-01-28 Thread Matt Schroebel
What I do is: Box 1 Box 2 Box 3 Box 4 Box 5 Then in the action script you'll get an array with only the checked values named $checked. So $checked[0] could be 'Box 2' and $checked[1] could be 'Box 5'. Be aware if nothing is checked, then $checked won't be an array, so you'll need to test

RE: [PHP] mixed datatype

2002-01-28 Thread Matt Schroebel
http://www.php.net/manual/en/functions.arguments.php#functions.variable-arg-list -Original Message- >From: charlesk [mailto:[EMAIL PROTECTED]] >What does the function look like that it can take unlimited arguments? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

RE: [PHP] How to echo the "/n", "/r", etc... to the HTML display?

2002-01-28 Thread Matt Schroebel
Read the first user note at the bottom of this manual page: http://www.php.net/manual/en/function.htmlentities.php -Original Message- >Subject: [PHP] How to echo the "/n", "/r", etc... to the HTML display? >So, you see, if I use the PHP function, nl2br(), that took care of the "cr"

RE: [PHP] Re: One form - Two emails, I need some help please

2002-01-29 Thread Matt Schroebel
And I write those as (true == $PHP_MAIL_FORM) so the parser will catch the missing second equal sign. This won't parse: (true = $PHP_MAIL_FORM) >Edward R. Bailey wrote: >if ($PHP_MAIL_FORM=true){ >should probably be >if ($PHP_MAIL_FORM==true){ -- PHP General Mailing List (http://www.php.net

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 $PAT

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

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?). $S

Re: [PHP] Trying to put ips into database

2002-02-08 Thread Matt Drake
ouple of thoughts. Actually, you don't need quotes around the col. names at all... mysql_query("INSERT INTO ips (ip) VALUES ('$REMOTE_ADDR')"); As for only getting the first part, are you sure the ip field is big enough? Try "explain ips" from a mysql clie

[PHP] Fooling the client into thinking php script is .jpg

2002-02-10 Thread Matt Moreton
I have a script that outputs an image. Using the gd library. But the only way this script gets to execute is if you call it like: www.host.com/displayimage.php That then sends the content header, and the image. Obviously I am doing some other stuff in there, which is why I am using a scr

Re: [PHP] Getting days after last login. Date problem

2002-02-13 Thread Matt Moreton
ate); if ( $pdate > $ldate ) { // do some funky stuff } Hope that helps. Regards Matt. - Original Message - From: "Andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 13, 2002 11:19 AM Subject: [PHP] Getting days after las

RE: [PHP] Re-Importing .CSV file into Database

2002-02-13 Thread Matt Schroebel
Me thinks you need to have file privileges. See http://www.mysql.com/doc/P/r/Privileges_provided.html -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] the current problem at hand of getting the : error:Access denied for user: 'mjimm@localhost' (Using password: YES)

[PHP] Freebsd, php and mail

2002-02-13 Thread Matt Schroebel
I figured this one out, so I thought I'd put it in the archives ... I just spent a few hours pulling my hair out because the mail sent by mail() was coming from 'unprivileged user' on my freebsd box. It worked fine for another site on the same box. It turned out that I has mistakenly appended

RE: [PHP] Filling Forms with $variables

2002-02-13 Thread Matt Schroebel
Always use htmlspecialchars() on form value fields and any data you put into the tags. -Original Message- From: Steven Walker [mailto:[EMAIL PROTECTED]] > In the browser, the name field is only filled with "Steven", and drops off everything after the space. If I echo $na

RE: [PHP] links manager

2002-02-14 Thread Matt Schroebel
Look here: http://www.zend.com/apps.php?CID=38 -Original Message- From: Administration@myclassguide [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 5:22 AM To: [EMAIL PROTECTED] Subject: [PHP] links manager Hi Anybody know of any good scripts for creating a directory for

RE: [PHP] how a function 'return' statement works

2002-02-14 Thread Matt Schroebel
How about: return $current_page_name[count($current_page_name)-1]; -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Can anyone give my puny mind an explanation as to why the following function only returns the value "Array" ? # ==

RE: [PHP] good practice

2002-02-14 Thread Matt Schroebel
What I do is use templates to separate the html from the php. So I end up with (at least) 2 files per page, one the template; the other the html. If you have tables, then you need templates for the rows. My model is basically: If ("POST" == $HTTP_SERVER_VARS['REQUEST_METHOD']) { // do data val

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: > > http://www.evolt.org/article/Breadc

Re: [PHP] Returning table rows from MySQL

2002-02-18 Thread Matt Drake
_array($Result) { print(""); print(''); ... $Count++; } You could probably replace $Count with some mysql function (it would be named something like mysql_current_row($Result)), but I obviously don't know that much about it. Matt -- PHP G

Re: [PHP] PHP and HTTPS

2002-02-18 Thread Matt Drake
em, you can eliminate PHP from the equation...if not, you can focus more directly on PHP. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Link

2002-04-18 Thread Matt Williams
ourplace.com/somewhereelse.php";); > exit; > } else { > Header("Location: http://www.yourplace.com/error.php";); > exit; > } remember to use == also, otherwise your doing an assignment matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] how to popup a new browser window from php

2002-04-19 Thread Matt Friedman
No. You want a client side browser popup. PHP runs on the server. PHP does not run in a browser. Javascript runs on the browser. You need to use Javascript. Matt Friedman Web Applications Developer -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Friday April

Re: [PHP] Passing Arrays

2002-04-22 Thread Matt Williams
ize the array into a hidden field on the next form. matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] extracting a html file name

2002-04-23 Thread Matt Williams
nfo, which works , for now but as I get more files etc, it's gonna be a > pain in the butt,  there has to be a better way to do it. Hi the function you need is explode. try $my_path = explode("/",$PATH_INFO); array_shift($my_path); so $my_path[0] will be moneypower using t

RE: [PHP] basename unix/windows

2002-04-25 Thread Matt Friedman
Replace the "\" with "/" using str_replace or some such function before using basename. Windows will handle either kind of path. Linux does not know the "\" as a file path separator. It only knows "/" Matt Friedman Web Applications Developer www.SpryNewMed

Re: [PHP] session_cache_expire()

2002-04-25 Thread Matt Rohrer
second line after the function name lists which version of php has the function. Check it again. -- Matt Rohrerhttp://prognostikos.com/503.816.8789 --- If men would only give up their silly desire for world domina

Re: [PHP] PHPlib sessions without a DB?

2002-04-26 Thread Matt Williams
ib for a while and works well, but this is using db storage. I wouldn't imagine there will be a problem just using a different session container. As for the default distribution of phplib I don't know if this can use files for session storage I haven't had the need to find out. HTH

[PHP] init_set(): auto_append_file doesn't work?

2002-04-27 Thread Matt Wong
hello, init_set doesn't seem to work for setting auto_append_file, in php 4.1.2. the master setting is NULL, and the local setting is properly set when I do a phpinfo(), but the file never gets appended. Any ideas? thanks -Matt -- PHP General Mailing List (http://www.php.net

RE: [PHP] Removing empty elements from an array

2002-04-28 Thread Matt Friedman
This is what you want. http://www.php.net/manual/en/function.array-filter.php Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday April 28, 2002 10:57 AM To: Craig Westerman; php-general

RE: [PHP] PHP compared to JSP

2002-05-04 Thread Matt Friedman
bably faster. Many solutions, to my knowledge, requiring Java cost $$$ while LAMP is completely Open source. (Read the licenses for more info). Matt Friedman -Original Message- From: Paras Mukadam [mailto:[EMAIL PROTECTED]] Sent: Saturday May 4, 2002 10:36 AM To: [EMAIL PROTECTED] Su

RE: [PHP] Slow in retriveing webpage

2002-05-04 Thread Matt Friedman
en get the content almost instantly! Matt Friedman -Original Message- From: Joseph Then [mailto:[EMAIL PROTECTED]] Sent: Saturday May 4, 2002 10:03 AM To: [EMAIL PROTECTED] Subject: [PHP] Slow in retriveing webpage Hi! I want to grab a webpage and I use the file() function to grab it.

RE: [PHP] help !!!

2002-05-04 Thread Matt Friedman
Try www.php.net. Oh, no that's for php. I might know if this was a Delphi list. Hrm... Matt Friedman Web Applications Developer -Original Message- From: Yoel Benitez Fonseca [mailto:[EMAIL PROTECTED]] Sent: Saturday May 4, 2002 10:23 PM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] copy protection

2002-05-07 Thread Matt Schroebel
Look at the Zend Encoder. It's not free, but there is a free trial available. http://www.zend.com/store/products/zend-encoder.php > -Original Message- > From: Udo Giacomozzi [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 07, 2002 9:36 AM > Subject: [PHP] copy protection > Has somebody

Re: [PHP] PHP --> HTML

2002-05-09 Thread Matt Williams
no rewriting > of the .php scripts (or need to write another tool). do a google for HTTRACK, very impressed with the sites we've had to cache locally matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Getting only 255 chars from SQL Server

2002-05-13 Thread Matt Friedman
If you want to make sure you get the whole string and it's fairly long, like a paragraph of characters or something, the db field should be a text field. Varchar is definitely no longer than 255 in MSSQL. You've lost the data over 255 chars with your current setup. Matt Fr

RE: [PHP] Re: One more Regular Expression Question...

2002-05-13 Thread Matt Friedman
$regex = "]*>(.*)"; is probably better. Plus, use eregi for case insensitive matching. This is probably not perfect, but it'll do what you want. Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Message- From: Brad Melendy [mailto:[EMAIL

Re: [PHP] LDAP Search Scope / Schema Retrieval

2002-05-16 Thread Matt Rohrer
itch the search scope from SUB to BASE, so > the equivalent call in PHP won't work. > > Any suggestions? look into ldap_read() and the optional arguments to ldap_search() matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] gmtime?

2002-05-27 Thread Matt Friedman
Unix epoch is the number of secs since the start date in GMT regardless of where your server is. The timestamp is a GMT value. Matt Friedman Web Applications Developer www.SpryNewMedia.com -Original Message- From: Jens Lehmann [mailto:[EMAIL PROTECTED]] Sent: Monday May 27, 2002 7:48

Re: [PHP] Parse Error(Newbie)

2002-05-27 Thread Matt Giddings
try this: $query = "select * from news WHERE id = '$_get['id']'"; the double quote right before the $ is ending the string, from that point on everything is an error. Matt On Mon, 27 May 2002 [EMAIL PROTECTED] wrote: > I know it is probably something obv

Re: [PHP] Parse Error(Newbie)

2002-05-27 Thread Matt Giddings
Another thing you may want to try is the following line: $query = "select * from news WHERE id = '" . $_get['id'] . "'"; Matt On Mon, 27 May 2002 [EMAIL PROTECTED] wrote: > I know it is probably something obvious but the following gives me a parse

Re: [PHP] PHP/Java/SOAP

2002-02-21 Thread Matt Drake
mcat and Apache together. There's an Apache-Tomcat HOWTO somewhere around. I found it on Google. Then you can set up PHP to run on Apache as normal. The kewl way to do things is to create your XML files from a PHP script and redirect the user to the XML when your script is over. HTH, Matt &g

[PHP] passing variables - php.ini?

2002-02-25 Thread matt stewart
message: This always just gives the form for entering your message, it never does the bit where it prints it out. hope this is clear enough, cheers, Matt --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.323 /

RE: [PHP] passing variables - php.ini?

2002-02-25 Thread matt stewart
thanks a lot! works fine now i've changed register_globals. just out of interest, what is the 'newer' way? is it using sessions etc, or something else i don't know about? or should i rtfm? ;) thanks again, Matt -Original Message- From: DL Neil [mailto:[EMAIL

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

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 fa

Re: [PHP] apostrphe's entered into MySQL database

2002-02-27 Thread Matt Drake
I don't see why addslashes wouldn't work, but why not roll your own? $dbStr = preg_replace("/'/", "/\\'/"); I believe that, in MySQL, you can also double-up single quotes to escape them: $dbStr = preg_replace("/'/", "/''/&

Re: [PHP] apostrphe's entered into MySQL database

2002-02-27 Thread Matt Drake
Whoops...helps if I write it legally. $dbStr = preg_replace("/'/", "/\\'/", $dbStr); $dbStr = preg_replace("/'/", "/''/", $dbStr); M On Wed, 27 Feb 2002, Matt Drake wrote: > I don't see why addslashes wouldn't wor

RE: [PHP] MySQL Query

2002-03-04 Thread Matt Schroebel
> This tutorial was my introduction to the concept, but you can > find this > information in a hundred other places: > > http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html I'd recommend that tutorial only as a guideline for using mySQL and php. Don't try to use the

RE: [PHP] MySQL Query

2002-03-04 Thread Matt Schroebel
> I don't really remember the tutorial very well. I thought it > did a fine job of explaining some of the basics... I spent a few hours > with it and felt pretty good. However, I agree that it's not a good > intro to PHP's basic features. I stumbled on php a few years ago, and that was my

RE: [PHP] Mysql

2002-03-05 Thread Matt Schroebel
Change the grant to: grant all on * to clark@localhost identified by 'clark'; Then do a: flush privileges; > I am trying to connect to the database like this: > > $db=mysql_pconnect("localhost", "clark", "clark") > > while in mysql do the following: > > >grant all on * to clark identified b

[PHP] using a variable to a function call

2002-03-07 Thread Matt Williams
How can I use the variable as part of the function name to call. TIA matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Script Debug.

2002-03-07 Thread Matt Schroebel
Could be several things ... > else { > session_register("user_auth_level"); > $auth_select = "select account_admin_level from account_details where > username='$login_username'"; Perhaps echo the sql statement here so you can see what you're trying to do. > $run_auth_select = mysql_query($auth_

Re: [PHP] New to PHP, need help.

2002-03-07 Thread Matt Drake
Michele, Possible a dumb question, but does the machine you are running it on have PHP installed and configured to work with the server software? If so, did you name the file correctly? It may need to be called "page.php" rather than "page.html"... M On Thu, 7 Mar 2002, Michele wrote: > I cur

Re: [PHP] Add associative element to an an array

2002-03-07 Thread Matt Drake
I'd think $arr['8'] = 6 would work... Using a number (as in $arr[8] = 6) would possibly confuse things, though I can't get to a PHP machine right now so I'm not sure. M On Fri, 8 Mar 2002, Bradley Goldsmith wrote: > Hi, > > Ive got an array of associations like this: > > [1]=>2 [2]

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

Re: [PHP] newbie: the superglobal $_SESSION

2002-03-10 Thread Matt Schroebel
> > if (!isset($_SESSION['count'])) { > $_SESSION['count'] = 0; > } > else { > $_SESSION['count']++; > } > echo $count; > ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL and apostrophes, interesting problem. 42082

2002-03-10 Thread Matt Schroebel
Read the manual about magic_quotes_gpc and addslashes() I prefer to add slashes myself, that way I can verify input lengths but it has the risk that I might miss a field. The trouble with magic_quotes_gpc is that if you have to re-display a variable you have to stripslashes() first. - Origina

Re: [PHP] which rights to set for dirs containing uploaded files?

2002-03-10 Thread Matt Schroebel
- Original Message - From: "Andy" <[EMAIL PROTECTED]> Subject: [PHP] which rights to set for dirs containing uploaded files? > I am wondering which right I should set for a directory where users can > upload pictures. What would be a secure way? Currenly I did set the rights > to 777 whi

[PHP] Re: Congrats to Rasmus?

2002-03-11 Thread Matt Williams
this page - or to send congrats, email > > [EMAIL PROTECTED]" congratulations Rasmus matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How do I read a tab delimited file?

2002-03-11 Thread Matt Parlane
Hiya... You can optionally pass a third parameter to fgetscsv which tells it which delimiter to use - the default is a comma, but you can use "\t" for a tab, or whatever other delimiters you want. Just remember to put that \t in double quotes because it's an escape characte

RE: [PHP] reset auto_increment field mysql

2002-03-12 Thread Matt Schroebel
How about: ALTER table auto_increment=0 > -Original Message- > From: Claudiu [mailto:[EMAIL PROTECTED]] > I wish it was that simple... > No.. It doesn't work this way... > > On Tue, 12 Mar 2002, Rick Emery wrote: > > > your query is: DELETE FROM mytable; > > > > -Original Message

RE: [PHP] Form Based Authentication

2002-03-12 Thread Matt Schroebel
First, change the names of your include files to something.inc.php so that no-one can download the files and get thte source, should their names become known. Second, you either must use session_register or $_SESSION['variablename'] and not mix their use. So instead of: $authenticated_user = 7

RE: [PHP] include, include_once bug or feature ?

2002-03-14 Thread Matt Friedman
vars do not exist at all. This is a feature, not a bug. Matt Friedman Web Applications Developer www.SpryNewMedia.com Email: [EMAIL PROTECTED] -Original Message- From: Pavel Plesov [mailto:[EMAIL PROTECTED]] Sent: Thursday March 14, 2002 7:56 AM To: [EMAIL PROTECTED] Subject: [PHP

RE: [PHP] header("Location:") problem with Netscape

2002-03-14 Thread Matt Schroebel
It's not $PHP_SELF that's the issue here -- well it was probably blank because either register_globals is off or you were in a function and didn't global it. The real trouble is that. IE < v6.0 is forgiving and if the action="" is blank sends the request to the current page. So you feel comfy

RE: [PHP] Website STATISTICS

2002-03-18 Thread Matt Schroebel
I use webalizer. www.mrunix.net > -Original Message- > From: karthikeyan [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 18, 2002 2:31 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Website STATISTICS > > > Hi, > > Anybody knows any good open source website statistics tool > with gr

RE: [PHP] combining headers with includes

2002-03-19 Thread Matt Schroebel
Ob_end_clean is clearing the buffer and not sending any data to the browser. Use ob_flush or ob_end_flush(). Output buffereing will take care of ordering the headers so they'll still work even though the include may still be sending some output. > -Original Message- > From: Ian Wayne [

[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: why doesnt this work???

2002-03-20 Thread Matt Wallace
What I think you'd note, actually, is that you ALWAYS get the matching echo, and never the non-matching, because you're using an assignment operator instead of comparison. It should read if ($line[1]==' instead of ($line[1]='. --Matt Chris wrote: > this script receives

[PHP] Re: Delete Confirmation

2002-03-20 Thread Matt Wallace
Daniel Negron/Kbe wrote: > Does anyone have examples of record deletions from php to mysql Could you be more specific? $sql = "DELETE from tablename where tablename_idx = $index"; $result = mysql_query($sql); would be a very simple example of deleting a record from a hypothetical database wi

[PHP] Re: new to php/mysql - insert not working

2002-03-20 Thread Matt Wallace
print "QUERY: $query \n"; and instead of executing it, paste it into the mysql CLI and see what it has to say. You may also want to keep an eye on your web server logs, or raise php errors so they are printed in the web server output, but in this case, you'd probably see no error. --Mat

[PHP] Re: Accessing form variables

2002-03-20 Thread Matt Wallace
If your form is: 1 2 1 2 Then you'd have two php post variables available, a and b, each would have a value of 1 or 2, which you could get from HTTP_POST_VARS or, with later php versions, $_POST["a"] and $_POST["b"]. Joshua E Minnie wrote: > I have a form

[PHP] Re: sessions not so secure..solution?

2002-03-20 Thread Matt Wallace
Steve Clay wrote: > Hello, > I'm building an e-commerce site which uses sessions to > hold my $cart object. This works great but I've two worries: > > 1) When the user connects through our secure hostname, can I ensure > the browser will send the server the cookie (w/ SESSID)? The user >

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 :) > > >     Options FollowSymLinks >     AllowOverride All > > > J Options -Indexes matt -- PHP General

RE: [PHP] FAQ

2002-03-22 Thread Matt Schroebel
I've been working on that at http://www.php-faq.com/ Want to help? > -Original Message- > From: James Taylor [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 22, 2002 2:30 PM > To: [EMAIL PROTECTED] > Subject: [PHP] FAQ > > Has anyone given any thought to possibly maintaining a FAQ > c

[PHP] Regular Expression Challenge

2002-03-24 Thread Matt Moreton
Perl Compatible Regular Expression: "/'([a-z]+)-([a-z]+)\s([0-9]+:[0-9]+),\s([0-9]+:[0-9]+),\s([0-9]+:[0-9]+)'/" Assuming the days of the week are always lower case? if not then use [a-zA-Z] for the day matching. Hope this helps. -- Matt. - Original Message -

Re: [PHP] Regular Expression Challenge

2002-03-24 Thread Matt Moreton
Oh, I didnt read the bit at the bottom about the times appearing any number of times. Off the top of my head I think this should work... PREG: "/'([a-z]+)-([a-z]+)\s(?:([0-9]+(?::[0-9]+|))(?:,\s)?)*'/" -- Matt - Original Message - From: "Cameron Just" &

[PHP] Re: Why?

2002-03-24 Thread Matt Parlane
There's even an RFC published on this: http://www.faqs.org/rfcs/rfc3092.html Matt "Alberto Wagner" <[EMAIL PROTECTED]> wrote in message 878USUPYSS0CQKNLWUHCFBEBFCJD.3ca676e7@alberto">news:878USUPYSS0CQKNLWUHCFBEBFCJD.3ca676e7@alberto... > Why everyone

[PHP] localization - internationalization

2002-03-25 Thread Matt Friedman
on this subject and your input are appreciated as always. Many thanks, Matt Friedman www.SpryNewMedia.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] localization - internationalization

2002-03-25 Thread Matt Friedman
Looking for some more detailed information on this subject. Any experts out there? Thanks, Matt Friedman -Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: Monday March 25, 2002 10:04 AM To: Matt Friedman Cc: [EMAIL PROTECTED] Subject: Re: [PHP] localization

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