[PHP] PHP header command crashes IE6x/PC

2003-12-12 Thread Matt MacLeod
(!ISSET($_SESSION['loggedin'])) { header("Location: /admin/login/"); } else { //rest of the page. } ?> Any ideas why this would cause IE to crash Cheers, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP header command crashes IE6x/PC

2003-12-12 Thread Matt MacLeod
John, Have tried this but unfortunately had no effect. Everything appears to fine if the session variable does not exist ie: the user is redirected to the log in page. It's just when the user has logged in and the session is set that IE throws it's toys out of the pram. Cheer

[PHP] Email Forwarders

2003-12-13 Thread Matt Palermo
specific address, it will automatically be distributed to everyone on the forwarding list. Please help if you have any ideas or suggestions. Thanks, Matt http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Subject: searching for open source php module

2003-12-15 Thread matt shultz
hi, i am looking for an open source php module that does some simple content management. it seems that something like this must exists, since it is a pretty common need, but i'm not sure where to find such a thing. here is a description of the functionality i am looking for: ability to updat

[PHP] PHP causing IE to crash

2003-12-17 Thread Matt MacLeod
would cause this crash, and if so, whether or not there are any work arounds. This only occured in IE6 on Win XP. Thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Page Redirects - How can it be done

2003-12-17 Thread Matt Matijevich
What if you use something like SourceForge. If you try to access a page the requires you to be logged in when it redirects you to the login page it includes in the URL the page that the user tried to access (ie login.php?redirect=page3.php) Then when the user successfully logs in they redirect to

Re: [PHP] need help getting one variable

2003-12-22 Thread Matt Matijevich
[snip] hello all i need help to enter one variable in a cookie and then retreive it back later, i know this probably sounds dumb to most but this is really the first time ive tried working with cookies so please bear with me, thanks for any help. [/snip] this should give you a good start http://ww

Re: [PHP] Working pop-up progress window

2003-12-22 Thread Matt Matijevich
[snip] I've had the most luck using the pop-up window method. In the element I call onSubmit="{open some window here}" This works as the pop-up appears while the file is transferring. Here's where I run into problems. I've tried all kinds of examples found on google and can never get it to work r

RE: [PHP] Parse error in mysql_query()

2003-12-22 Thread Matt Matijevich
[snip] Sorry, should have mentioned that I tried quoting them already. That gives a T_VARIABLES parse error. Thanks for the reply, Tyler [/snip] What happens if you comment out the mysql statement and just echo the variables? echo $_POST[domainregister_domain$i] $_POST[domainregister_ty

Re: [PHP] reading excell and writing to text file..

2003-12-22 Thread Matt Matijevich
[snip] I was wondering a good place I could get started on reading excel spreadsheets in PHP ive seen a couple of things out there that will take data from the web and transform it into a .xls file. I was wondering if I could take a XLS file with php and read it, and rip out certain data from it :-

RE: [PHP] Parse error in mysql_query()

2003-12-22 Thread Matt Matijevich
[snip] I put this right above like 871: print "$_POST[domainregister_domain$i]"; So now that "print" line is 871. It produces the exact same error as the mysql_query() line. [/snip] I should have mentioned this in my last email. You should try a print_r of the $_POST array. print ""; print_r($

Re: [PHP] evaluating a variable

2003-12-22 Thread Matt Matijevich
try eval($contentfunction); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] onChange

2003-12-22 Thread Matt Matijevich
[snip] I have 2 list fields in a form. The second is populated basing on selection in field 1. Can anyone pls tell me how to do this in PHP ? [/snip] you can't, onchange is fired with javascript on the client. You have a number of ways you can do it a few are. 1. have on change submit the form to

RE: [PHP] evaluating a variable

2003-12-22 Thread Matt Matijevich
[snip] Eval ($contentfunction); gave me a parse error: Parse error: parse error in /home/pickled/public_html/main/inc/html.php(145) : eval()'d code on line 1 [/snip] try to add a semicolon to the end of the variable $contentfunction = "newsadmincontent();"; -- PHP General Mailing List (http://

[PHP] Re: sorting a mulit-dimensional array

2003-12-22 Thread Matt Grimm
Your subject line raises a completely different question than your message. Are you looking to sort a multi-dimensional array or "select distinct values" from one? -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage

[PHP] Simple fwrite question

2003-12-23 Thread Hartley, Matt
ll it when $counter is @ the last line in my "tips" file to reset to zero thanks Matt

Re: [PHP] [Q] Best Practices Question - Directory Structures for WEB site dev using PHP

2003-12-23 Thread Matt Matijevich
[snip] 1) How do experienced developers layout their [dev] directory hierarchy? For example, is there an accepted place to put one's function libraries? On IIS (Windows XP), the default directory structure is c:\inetpub\ AdminScripts iissamples mailroot Scripts wwwroot\

[PHP] Re: Assist with session persistance

2003-12-23 Thread Matt Grimm
The directive session.cookie_lifetime in your php.ini is what a session cookie timeout defaults to. You can manually set the lifetime when you create it using session_set_cookie_params(). http://us3.php.net/manual/en/function.session-set-cookie-params.php -- Matt Grimm Web Developer The Health

Re: [PHP] Assist with session persistance

2003-12-23 Thread Matt Matijevich
[snip] ex: display.php session_start(); $agencyID=$_SESSION['agencyID']; $agencyName=$_SESSION['agencyName']; But after awhile, the session seems to fail and I end up back at the index page because the $agencyID gets voided. Is there a timeout on sessions other than c

[PHP] Re: array data to XML

2003-12-24 Thread Matt Grimm
> PHP script that you can find here, although it may be more than you are looking for: http://www.devdump.com/phpxml.php I've written a DOMXML-based PHP -> XML function that takes Kris' structure as input, if you're interested. -- Matt Grimm Web Developer The Health TV Cha

[PHP] Re: Removing/unsetting session variables.

2003-12-24 Thread Matt Grimm
PHP manual recommends this, which works for me: // Unset all of the session variables $_SESSION = array(); // Destroy the session session_destroy(); -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508 907.770.6200 ext

[PHP] Re: apache/web site question...

2003-12-24 Thread Matt Grimm
res.remote-files.php -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508 907.770.6200 ext. 686 907.336.6205 (fax) E-mail: [EMAIL PROTECTED] Web: www.healthtvchannel.org "Bruce" <[EMAIL PROTECTED]> wr

[PHP] Re: PHP and SSL Path Reference

2003-12-29 Thread Matt Grimm
uot; http://us3.php.net/manual/en/features.remote-files.php -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508 907.770.6200 ext. 686 907.336.6205 (fax) E-mail: [EMAIL PROTECTED] Web: www.healthtvchannel.org "D.H.&quo

Re: [PHP] Another Session Question

2003-12-31 Thread Matt Matijevich
[snip] session_start(); if($_SESSION['counter_file'] !==$counterFile)//See if visitor has already been counted for this page {$num += 1; $_SESSION['counter_file'] = $counterFile; } echo $_SESSION['counterFile'] . '

Re: [PHP] urlencoding.

2003-12-31 Thread Matt Matijevich
[snip] My problem is that any field that contains a double quote, all data after the first double quote is missing from the form field. When I look at the long URL I do see a %22 where the " are supposed to be, and all other data is there too. [/snip] Take a look at the html source. What is p

Re: [PHP] returning early from a function.

2003-12-31 Thread Matt Matijevich
[snip] function test($s) { if($s = 'this') return false; if($s = 'that') return false; return true; } [/snip] try this: function test($s) { if($s == 'this') return false; if($s == 'that') return false; return true; } -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] No cookie is being set?

2004-01-02 Thread Matt Grimm
ll return TRUE. This does not indicate whether the user accepted the cookie." http://us2.php.net/manual/en/function.setcookie.php -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508 907.770.6200 ext. 686 907.336.6205

[PHP] Re: Question about an array

2004-01-03 Thread Matt Grimm
; ", "your long string"); -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508 907.770.6200 ext. 686 907.336.6205 (fax) E-mail: [EMAIL PROTECTED] Web: www.healthtvchannel.org "Vernon" <[EMA

[PHP] Re: Remove quotes from form field

2004-01-05 Thread Matt Grimm
In the very simplest way? Just use a str_replace on the quotes: $words=explode(" ", str_replace('"', '', strtolower($keywords))); -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508

[PHP] Re: readfile from startpos to endpos

2004-01-05 Thread Matt Grimm
Close. You need to adjust for the length of your pattern. So if you're matching against "", then your actual start position (minus the start comment) is the strpos plus strlen($pattern), or 14 in this case. $startPos = strpos($file, '') + 14; -- Matt Grimm Web Develo

Re: [PHP] Is there a way to protect PHP's $_POST, $_GET when user tamper with post string in URL toolbox

2004-01-07 Thread Matt Matijevich
[snip] I noticed when I use the hidden html input tag with hidden data in it then when I click the submit button to submit the webpage, the hidden data then show up in the URL address. [/snip] I think if you just change the request method to post, the data will not show up in the url. -- PHP

[PHP] basic ?id=x question

2004-01-07 Thread Matt Hedges
Hello, I'm trying to pull from a database... I can pull an array, but I want to just be able to pull one item instead of all of them... I know somehow you can do this with page.php?id=x... but can't figure it out... any help greatly appreciated, thanks, Matt -- PHP General Mailing

[PHP] Re: basic ?id=x question

2004-01-07 Thread Matt Hedges
figured it out i had the sort before the where clause and that messed it up. "Matt Hedges" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I'm trying to pull from a database... I can pull an array, but I want to > just be able t

[PHP] upload picture

2004-01-07 Thread Matt Hedges
Hello... could anyone please tell me how to upload a picture using php? I have this but don't know how to specify how to store the pictures on the server... thanks! thanks Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Sorting data into columns vertically

2004-01-07 Thread Matt Grimm
($l_iMod < 2 ? $l_iHigh - $l_iMod : $l_iHigh); $l_iThird = $l_iLow; echo "Your columns are: $l_iFirst, $l_iSecond, $l_iThird"; -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508 907.770.6200 ext. 686 907.336

[PHP] Re: Sorting data into columns vertically

2004-01-07 Thread Matt Grimm
> $l_iSecond = ($l_iMod < 2 ? $l_iHigh - $l_iMod : $l_iHigh); This should actually be: $l_iSecond = ($l_iMod == 1 ? $l_iHigh - $l_iMod : $l_iHigh); but it works both ways. -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchora

[PHP] Re: Sorting data into columns vertically

2004-01-07 Thread Matt Grimm
s 3, 2, 2, which the code will give you. If you want, echo the other variables and it will make more sense. -- Matt Grimm "Dareal Hamsta" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I get: > > Your columns are: 102, 101, 101 > > ??? > > The o

[PHP] Re: Sorting data into columns vertically

2004-01-07 Thread Matt Grimm
th: '.count($l_aTest); } // Do high columns first for ($i = 0; $i < $l_iMod; $i++) { $l_aTable["column$i"] = $l_iHigh; } // Do the rest for ($i = count($l_aTable); $i < $l_iColumnWidth; $i++) { $l_aTable["column$i"] = $l_iLow; } echo 'Result:'; prin

Re: [PHP] PHP code documentation tool

2004-01-08 Thread Matt Matijevich
[snip] What is the best way to document such projects? How you developers document your project? [/snip] GIYF http://phpdocu.sourceforge.net/ http://www.epersonae.com/snapping/archives/000390.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

[PHP] Re: getenv of "document_name" in php

2004-01-08 Thread Matt Grimm
$_SERVER['SCRIPT_NAME'] or $_SERVER['PHP_SELF'] -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508 907.770.6200 ext. 686 907.336.6205 (fax) E-mail: [EMAIL PROTECTED] Web: www.healthtvchannel.

[PHP] Re: Not working?

2004-01-08 Thread Matt Grimm
You can't use variables inside single quotes, either. This: '/path/to/old.$today' ought to be: "/path/to/old.$today" -- Matt Grimm "Jas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I think I must be missing something but this

[PHP] open_basedir clarification

2004-01-08 Thread Matt Grimm
If my server has an open_basedir restriction in place for my home directory, I understand that to mean I can only open files in the same directory as whatever script is currently running. Is that correct? -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820

[PHP] upload and RENAME picture

2004-01-08 Thread Matt Hedges
Hello, thanks to ya'll I've gotten a picture uploaded... but now what I can't figure out how to do is rename it. I want to rename it something like $id.extension... right now it is just showing up in the directory as the original file... any ideas? thanks matt -- PHP Gener

Re: [PHP] upload and RENAME picture

2004-01-08 Thread Matt Matijevich
[snip] any ideas? [/snip] Have you tried move_uploaded_file? http://www.php.net/move_uploaded_file -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] post vars not by form

2004-01-08 Thread Matt Matijevich
[snip] Anyone can help , how to post variables from server side .. as from php page to other without HTML form and submistion ??? [/snip] I have never used it but I think http://pear.php.net/package/HTTP_Client is what you want to look at -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] open_basedir clarification

2004-01-08 Thread Matt Grimm
Can anyone clarify this for me? Is open_basedir recursive or restricted to the exact paths specified? -- Matt Grimm "Matt Grimm" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If my server has an open_basedir restriction in place for my home directory, >

[PHP] Form validation: client- or server-side?

2004-01-09 Thread Matt Grimm
was ever posted? I'm just talking about the basics, like empty required fields, illegal characters, string lengths, etc. What are your preferred methods? I do an awful lot of content management with HTML forms, so it's not an entirely spurious question. -- Matt Grimm Web Developer The H

[PHP] Re: Form validation: client- or server-side?

2004-01-09 Thread Matt Grimm
being relied upon for more serious validation. -- Matt Grimm "Matt Grimm" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there a distinct advantage to doing form validation / error checking on > the server side using PHP? That's how I've always don

Re: [PHP] Form validation: client- or server-side?

2004-01-09 Thread Matt Matijevich
[snip] why would you validate data on the server if you have a JavaScript that checked the user's input before it gets submitted to the server ? I mean the whole point of you having that JavaScript is to make sure the the correct data gets entered so why bother checking it once again on the server

RE: [PHP] to array or not to array..

2004-01-12 Thread Matt Matijevich
[snip] That works great, I am messing myself up, however because I am using checkboxes so when I run this, if I have unchecked the checkbox, the value doesn't come through and I want an unchecked box to be 0 for example so I may need some javascript... [/snip] Can only one option be checked per us

Re: [PHP] Destroy all session data...

2004-01-13 Thread Matt Matijevich
[snip] Until I get this sorted, can I kill everyones stored session data? [/snip] How is the session data saved? It is to files, you could just delete all of the session files. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Destroy all session data...

2004-01-13 Thread Matt Matijevich
[snip] I do't know to be honest, how do I find out? (I'm on a unix server) [/snip] you could use the phpinfo() function and check the value of session.save_handler, if it is "files" the session data is in files in the session.save_path directory. -- PHP General Mailing List (http://www.php.net

[PHP] Upload and PullPicture???

2004-01-13 Thread Matt Hedges
quot; button that uploads everything (the data to the database and the picture to my server). I've read the PHP manual but it's greek to this newbie... any help GREATLY appreciated thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Upload and PullPicture???

2004-01-13 Thread Matt Hedges
I figured it out... You can put everything in one file... http://www.evolt.org/article/Storage_and_re_use_of_images_using_PHP_GD_Part_1/20/27237/ "Matt Hedges" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello... I'm trying to upload a

[PHP] how to display a font with two words???

2004-01-13 Thread Matt Hedges
Howdy, I'm trying to specify in my php document... but can't b/c it's two words... if it was html I could just put "", but since I can't do that in php, does anyone know what to do? prob. a stupid question, thanks a lot, Matt -- PHP General Mailing List (http:

[PHP] Re: how to display a font with two words???

2004-01-13 Thread Matt Hedges
you can use single quotes ' ' (I didn't think it would work, but it does) around the font. matt "Matt Hedges" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Howdy, > > I'm trying to specify in my php document... but > can't

[PHP] credit card acceptance recommendations?

2004-01-13 Thread Matt Hedges
ng carts or anything... Any ideas/suggestions? I've come across one, charge.com... anybody had any experience with it or another? thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] TMP directory problem

2004-01-14 Thread Matt Matijevich
[snip] When I had a look at the servers phpinfo and I saw that both "upload_tmp_dir" and "user_dir" have "no value" and "no value" set for them.how do I change it (via a .htaccess file as I dont have access to the php.ini) so that I can write the data as required from my script? [/snip] Take

[PHP] Re: credit card acceptance recommendations?

2004-01-14 Thread Matt Grimm
int: http://www.sitepoint.com/article/728 -- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508 907.770.6200 ext. 686 907.336.6205 (fax) E-mail: [EMAIL PROTECTED] Web: www.healthtvchannel.org "Matt Hedges" <[EMAIL PROTECTED]

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Matt Matijevich
I am a little late but I have used the method described on a list apart http://www.alistapart.com/articles/succeed/ and it works really well. You might want to give it a try, I think it works a little bit different than the way you are trying. -- PHP General Mailing List (http://www.php.net/) To

[PHP] upload picture: limit size problems

2004-01-14 Thread Matt Hedges
Hello, with ya'lls help I've gotten a php that uploads only a jpg... now I'm trying to add a constraint that limits the width and size... I've been reading the manual (don't understand the error_messages)... and can't figure it out... this is what I have so far: http://www.php.net/) To unsubscrib

Re: [PHP] Dynamic Forms

2004-01-15 Thread Matt Matijevich
[snip] Can anyone suggest a PHP solution to creating a form that gets built after a client enters a variable? [/snip] php runs on your server so to build the forms based on a user entered form field, the form has to be submitted, so you would have to use javascript to automatically submit the for

[PHP] Random(?) blank pages when using sessions

2004-01-15 Thread Matt Grimm
the resulting page, they are echoed, but that's it -- it's a blank white page otherwise. The apache error log is silent, and the access log is normal. No php errors are displayed or written to the log. Here's the real kicker -- if I refresh the page, it loads correctly. What is going

[PHP] Re: filtering filename.ext on file-upload.

2004-01-15 Thread Matt Hedges
try this, it works for me: if ($_FILES['imagefile']['type'] != "image/pjpeg") { print("File must be a .jpg. File will not be accepted; please choose a .jpg picture or convert the picture to .jpg format."); unlink($filename); // This will remove the temporary file so we don't have to deal wit

[PHP] a clean way to upload

2004-01-15 Thread Matt Hedges
Hello all, After playing around with the options, I've found that the following method for uploading something with constraints is the easiest... The sample below first checks for 3 constraints (jpg, size, and width) and if it is cool it uploads it but renames it first...

Re: [PHP] a clean way to upload

2004-01-16 Thread Matt Hedges
Thanks Jason. How would I do that? I mean, what would I put instead of > > if ($_FILES['imagefile']['type'] != "image/pjpeg") thanks "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Friday 16 January 2004

[PHP] getimagesize() to find type?

2004-01-16 Thread Matt Hedges
>On Friday 16 January 2004 10:32, Matt Hedges wrote: > >>> if ($_FILES['imagefile']['type'] != "image/pjpeg") > >The 'type' in $_FILES is provided by the browser. IIRC only IE uses >"image/pjpeg" whilst other browsers use &

Re: [PHP] a clean way to upload

2004-01-16 Thread Matt Hedges
? "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Friday 16 January 2004 23:55, Matt Hedges wrote: > > > How would I do that? I mean, what would I put instead of > > > > > > if ($_FILES['imagefile']['

Re: [PHP] getimagesize() to find type?

2004-01-16 Thread Matt Matijevich
[snip] (1) How would I do that (use getimagesize() instead to find type)? [/snip] http://php.net/getimagesize [snip] (2) Stupid question: how do I say if ($_FILES['imagefile']['type'] != "image/pjpeg") and add "image/jpeg" to that constraint? [/snip] there are many ways, I will show you an

[PHP] Trying again: Random(?) blank pages when using sessions

2004-01-16 Thread Matt Grimm
and the access log is normal. No php errors > are displayed or written to the log. Here's the real kicker -- if I refresh > the page, it loads correctly. What is going on? > > Thank you, > -- > Matt Grimm > Web Developer > The Health TV Channel, Inc. > (a non

Re: [PHP] Trying again: Random(?) blank pages when using sessions

2004-01-19 Thread Matt Grimm
No, it's running on a FreeBSD server. I don't suppose it could have to do with the firewall or browser security settings on my machine, though ... could it? I can verify that the session file is being written to the server's tmp directory... I'm stumped. -- Matt Grimm Web

[PHP] dreaded sessions

2004-01-19 Thread Matt Horner
troyed and that is not the situation either. Anybody have similar problems with delayed in session writing or lost session data? I register all of the data into the session that I need leave the session alone except for reading of the session data. Thanks in advance! Ma

RE: [PHP] dreaded sessions

2004-01-20 Thread Matt Horner
method. Hope this makes more sense than my last post. Thanks again! Matt -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 5:45 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] dreaded sessions just

Re: [PHP] thumbnail

2004-01-20 Thread Matt Matijevich
[snip] How I can create thumbnail with php? using the GD libray? [/snip] yes. Also I hear imagemagick works well. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] thumbnail

2004-01-20 Thread Matt Matijevich
[snip] OK, but how? I already use GD, I need to now how to create a thumbnail, somebody now how to use the GD functions to create a thumbnail??? [/snip] http://www.php.net/GD I think you want to look at: imagecopyresampled -- Copy and resize part of an image with resampling imagecopyresized --

Re: [PHP] str_replace and TABS

2004-01-21 Thread Matt Matijevich
[snip] I'm using the following to replace certain characters but am having troubles with TABS. How do I find them? $replacement = array("\"", ",", ".", "!", "?",";", ":",")","(","\n"); Thanks [/snip] I think \t . Double check with google. -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Form validation

2004-01-21 Thread Matt Matijevich
[snip] Can some one point me in the right direction for a good tutorial on form validation in PHP? Thanks, alex hogan [/snip] I like to use regular expressions for my form validation. Search google for reugular expressions, you will get a bunch of results. Also take a look at the php ma

RE: [PHP] Form validation

2004-01-21 Thread Matt Matijevich
[snip] Hi, you can do it on server site (php code) or client side (javascript code) DS [/snip] Is this a question? If it is, yes you can use regular expressions with javascript and php. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] query strings, global variables

2004-01-21 Thread Matt Matijevich
while ($row = mysql_fetch_array($selection)){ if (section == $sectionName){ echo "" . $row["sectionName"] . ""; }else{ echo $row["sectionName"]; } thx Not sure if I understand you 100% but I think you could just either check the $_GET or $_REQUEST array. Something like this: i

Re: [PHP] Login variable is empty but password is OK. Why? (newbie question)

2004-01-21 Thread Matt Matijevich
try this: print ""; print_r ($_POST); print ""; do you see nome in there? I think the reason $senha has a value in it is md5 gives you a string even if you pass it a blank value. I would use these 2 variables $_POST['nome'] and $_POST['senha'] also look at register_globals on the php.net websi

Re: [PHP] Get First 20 Characters of a Variable or Database Entry

2004-01-21 Thread Matt Matijevich
http://us2.php.net/substr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session variables

2004-01-22 Thread Matt Matijevich
If you store session variables , but the user has session cookies disabled, is there any way to recuperate those session variables? Yes, look at the session.use_trans_sid variable. http://www.php.net/session If cookies are disabled, php will pass the session id as a ur variable or a hidden f

Re: [PHP] passing session ID

2004-01-22 Thread Matt Matijevich
If I want to store a session id in a database, how would I do it , like this? $session_id=SID ; ? and then if I want to retrieve this session id and get all of the info back that goes with this session id, I would say session_start() and then what? thanks You could just have php store all of th

Re: [PHP] Showing local date & time

2004-01-22 Thread Matt Matijevich
Should I use setlocale()? I mean is there a way which will give me the local datetime without calculating the difference manually? I have not used it, but it looks like setlocale() will give you what you want. http://www.php.net/manual/en/function.setlocale.php Suppose that I want to show th

Re: [PHP] generating arrays using $_REQUEST/$_GET/$_POST

2004-01-22 Thread Matt Matijevich
I am having problems generating an array based on data passed from a form. The form has a series of fields with the same name "math". When submited if i have register_globals=on i have no problems calling a $math variable and it spits out all the values assigned to math, however with register_glob

RE: [PHP] generating arrays using $_REQUEST/$_GET/$_POST

2004-01-22 Thread Matt Matijevich
echo ""; $Student = array ("albert Einstein", "Ivan the Terrible", "Napolon", "Simon Bolivar", "Issac Newton"); while(list(,$name)=each($Student)){ echo "what grade did $name get in Maths?"; echo""; echo " Grade A Grade B

Re: [PHP] Shared mod_php doesn't always load php.ini

2004-01-23 Thread Matt Matijevich
Hi, I noticed that often mod_php loaded as a shared library by apache doesn't load php.ini, and I have to restart apache to make it work. Apache version is 1.3.28 and Php is 4.3.4, all compiled by me. They are running on an updated RedHat 7.3. Is it a known (and solved) problem? I may be way o

[PHP] simple ?- load page after submit

2004-01-23 Thread Matt Hedges
page (personalpage.php?id=$id)... How do I do this? thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] simple ?- load page after submit

2004-01-23 Thread Matt Matijevich
Or, correctly: header("Location: http://www.yourdomain.com/personalpage.php?id=$id";); to add to what john said, you could make it a little easier to move your script from place to place if you use some php variables and the dirname function. this comes right from the manual: http://"; . $_S

[PHP] Re: simple ?- load page after submit

2004-01-23 Thread Matt Hedges
ge.php?id= (id = nothing). any suggestions? thanks matt "Matt Hedges" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I've built a page where someone can enter in their information... > currently, when they hit submit, a screen comes bac

Re: [PHP] Session time-out value

2004-01-23 Thread Matt Matijevich
I have about 8 different pages that are all session linked. Do I have to add this ini_set() at the beginning of all the session_start() calls on all these pages. Not 100% sure, but I think if you dont add ini_set() before all of your session_start() calls, session.gc_maxlifetime would get se

Re: [PHP] Session time-out value

2004-01-23 Thread Matt Matijevich
Also if I were to create a .htaccess file that is kept in the same dir as the application, what do I need to include in that file ? something like: php_value session.gc_maxlifetime 25000 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session time-out value

2004-01-23 Thread Matt Matijevich
I'm really curious to see if any of this really works. I know it _should_, but... Assuming a shared/virtual server where all session files for all sites are in the same location. When the garbage collector is triggered by a request to the site with this setting in .htaccess, does it honor this se

Re: [PHP] send a POST to a URL from within PHP code

2004-01-26 Thread Matt Matijevich
With a GET, the fields would be included into the query strinbg, so this is quite easy. What happens in a POST? take a look at http://pear.php.net/package/HTTP_Request -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: question PHP - HTML

2004-01-26 Thread Matt Matijevich
If you "View Source" in IE, you'll see it printed in the expected way. The browser, though, will not show it as you expect it. This is because the browser needs a tag for a newline and will not read a \n as a . So, use instead of \n. you could also wrap the text in tags. -- PHP General Ma

Re: [PHP] getting content with fput, SESSIONS and frames

2004-01-26 Thread Matt Matijevich
HTTP/1.1 302 Found Date: Mon, 26 Jan 2004 11:38:51 GMT Server: Apache X-Powered-By: PHP/4.3.1 Location: http://domain.tld/c17c340a3e6a2cb268451f3eda5930ce/frameset.php?q=string Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pra

[PHP] MySQL Newbie ? -Help!

2001-01-09 Thread Matt Stone
Hi, Is there a way to go through a table and remove all duplicate entries so that there is only one? The way I am doing it now is taking FOREVER. Thanks, Matt Stone ___ This email may contain confidential and/or privileged information for the sole use of the

RE: [PHP] MySQL Newbie ? -Help!

2001-01-09 Thread Matt Stone
Uhh not really, the table has about 3 entries. Don't really want to risk anything. I want to know how to do it through a MySQL statement, not a php script. -Original Message- From: Jason Brooke [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 10 January 2001 2:39 PM To: Matt

Re: [PHP] Re-engineering print()

2001-01-10 Thread Matt McClanahan
e to a variable that I can manipulate and then later store > in a database. http://www.php.net/manual/ref.outcontrol.php Specifically, ob_get_contents(). Start an output buffer, include your files, get the contents, and ob_ed_clean. Ought to do the trick. Matt -- PHP General Mailing List

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 PROTE

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