Re: [PHP] protecting directories and files inside them based on session variables

2004-03-04 Thread Matt Matijevich
snip http://www.mydomain.com/private/some_privat_file.doc and downloading this file! I need a way to make this file only accessible to users who have a user_id in there session - is this possible? Or is my only alternative to password protect this directory using the webserver and force users to

Re: [PHP] Link List

2004-03-04 Thread Matt Matijevich
snip I have tried to use readline to make this happen, but I'm getting error messages. Somebody with a suggestion about this? /snip have any code samples or example error messages for us? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Login Form weird behaviour in Mozilla/Netscape Not in IE

2004-03-03 Thread Matt Matijevich
Try an absolute url. Daniel Perez [EMAIL PROTECTED] 3/3/2004 8:55:06 AM Hi there, I´ve got a login form, that calls a script, to check if the user/pass match. If yes, the script do a header(Location : index.php). In Explorer works but not in Mozilla nor Netscape. Anyone knows something about

RE: [PHP] resubmitting $POST data to another script

2004-03-02 Thread Matt Matijevich
snip I already tried that, but had problems with ' ' . /snip Did you try the htmlentities function? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Get MySQL table field names

2004-02-29 Thread Matt Palermo
How can I get the field names from a specified MySQL table? I don't need the data, I just want to get an array of the tables field names. Thanks, Matt http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] About php and mysql

2004-02-24 Thread Matt Matijevich
snip I want to know how to control php program connect to MySQL Database System ( another computer machine ) ? /snip http://www.php.net/manual/en/function.mysql-connect.php http://www.php.net/manual/en/function.mysql-pconnect.php -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Working with MS-SQL

2004-02-24 Thread Matt Matijevich
snip But, I want to know is there any tools similar with php-mssql for php connect with MS-SQL ? Any other can help ? /snip 1. look at the manual http://php.net/mssql 2. try google 3. search the list archives -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Make sure folder is writable

2004-02-24 Thread Matt Palermo
, Matt http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] password protect a pdf

2004-02-24 Thread Matt Hedges
Hello, I'm trying to password protect an online PDF file. I know how to use PHP to pw protect a webpage, but what would be the best way to protect access to a nonwebpage file? thanks a lot Matt -- ___ | Matt Hedges | President, Vino del Sol | [EMAIL PROTECTED

Re: [PHP] password protect a pdf

2004-02-24 Thread Matt Hedges
Thanks, that worked great. I found this for anyone else like me new to htaccess: http://www.htmlbasix.com/passwordprotect.shtml works great. matt Roger B.A. Klorese [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm trying to password protect an online PDF file. I know how

Re: [PHP] Uploading Files

2004-02-24 Thread Matt Matijevich
try this if($userfile) { if(move_uploaded_file($_FILES ['userfile'], $uploadpath/$userfile_name)) { echo $userfile_name; echo Successfully Added!br\n; } else { echo (error!); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Connection handling and output_buffering

2004-02-23 Thread Matt Matijevich
snip Was reading through: http://uk.php.net/manual/en/features.connection-handling.php And I was wondering how PHP handles script termination when you have 'output_buffering = On' in your php.ini? If I have a long script that does lots of database stuff for example, and is riddled with

[PHP] E-Commerce Advice? Squirrelcart?

2004-02-23 Thread Matt Hedges
Hello, I am working on using PHP to build a web store. http://www.squirrelcart.com/ looks to be pretty good for a shopping cart- does anyone have any experience with this or others? Also, what suggestions do ya'll have for a payment gateway? thanks matt -- PHP General Mailing List (http

Re: [PHP] Delayed mail()... ?

2004-02-20 Thread Matt Matijevich
snip What they've asked for, is that when they reply to the enquiry, they are reminded to chase up the enqiry a few days later... Now I could give them a message on screen, if they happen to be in the admin area, but what i'd like to do , is simply mail the admin users, after say, 3 days.

Re: [PHP] PHP or MSIE Problem?

2004-02-20 Thread Matt Matijevich
snip Can anyone tell me if this is a common problem? Is this a purely MSIE bug, or could PHP be a factor? /snip I would guess it is a MSIE problem. You could check the raw post data coming into php too see if it is a php bug. I think $GLOBALS['HTTP_RAW_POST_DATA'] has the post data -- PHP

[PHP] Recursive Select Box

2004-02-18 Thread Matt Palermo
gonna have to use some sort of recursion here, but I'm not sure how to go about this. Please help if you can. Thanks, Matt http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Recursive Select Box

2004-02-18 Thread Matt Palermo
No, i'm using a MySQL DB. Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matt Palermo wrote: Hey everyone. I'm looking for assistance/suggestions/answers on how to build a select dropdown box from data that needs to be pulled recursively from a MySQL database

Re: [PHP] regular expressions

2004-02-17 Thread Matt Matijevich
snip Anyone recommend a book for a regex newbie ? /snip O'Reilly usually has some good stuff http://www.oreilly.com/catalog/regex/ There is plenty of tutorials online too, just google and you will get a bunch of results. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] * populate menu from directory *

2004-02-16 Thread Matt Matijevich
snip I want to be able to simply FTP a new movie onto the server, and then have the menu update itself. possible? I would also be looking to do something similar with JPGS. /snip take a look at http://www.php.net/readdir http://www.php.net/opendir here is some code to help start you echo

Re: [PHP] Are variables persistent?

2004-02-16 Thread Matt Matijevich
snip I'm guessing this is not a sensible approach. Every place I construct a url, I'd have to remember to add this. /snip Have you looked into sessions and/or cookies? I think you want to use $_POST not $POST -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Ora_Parse failed

2004-02-16 Thread Matt Hillebrand
=== false) die(ora_getcolumn() failed: .ora_error()); print td$cell_data/td; } print /tr\n; } print '/table'; ? Thanks for any advice. Matt

[PHP] Re: Ora_Parse failed

2004-02-16 Thread Matt Hillebrand
I modified that code to make it more readable. You may be wondering why the $columns variable looks like a string and then later like an array. Don't worrythere's no bug there. The $query variable actually equals select ${columns_imploded} from ${state}_spell where ${where_clauses}; Matt

Re: [PHP] Another preg question

2004-02-13 Thread Matt Matijevich
snip Next, I want to remove excessive CR/LF, [i.e. more than 2] $text= preg_replace(/\n\n+/, \n\n, $text); // remove excess This doesn't seem to do anything. /snip not 100% sure this is right but give it a try $text = preg_replace(/\n\n+|\n\r[\n\r]+|\r\r+/, \n\n,

[PHP] HTML: Make a TR/TD resize to fill a space?

2004-02-13 Thread Matt Hedges
Hello, I'm working on a webpage at http://hedges.org/busolemiss/template/index.html I need for a table cell to fill in the remaining space between some rows above and a row below, no matter what the window size. I thought this was possible with a height=*, but it doesn't work. If you look at

Re: [PHP] [Q] Howto go directly to a URL?

2004-02-13 Thread Matt Matijevich
snip Can I avoid that intermediate step, somehow? When my script logs in the user, how to I write the code that dispatches directly to the home page? /snip Have you tried a redirect? http://www.php.net/header ?php header(Location: http://www.example.com/;); /* Redirect browser */ /* Make

RE: [PHP] Extract of a Paragraph

2004-02-04 Thread Matt Matijevich
snip $string = substr($stringname,0,50); echo $string; http://www.php.net/substr /snip That will just give the first 50 characters of the string. You could just try one of the many suggestions on http://www.php.net/manual/en/function.str-word-count.php Scroll down to the user comments and

Re: [PHP] Using sessions with register globals off

2004-02-04 Thread Matt Matijevich
snip Assuming there's a preceding page that has created the session 'name' and registered the var 'order' with the 'name' session. session_name('name'); session_register('order'); /snip Try $_SESSION['order'] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Session (maybe cookies)

2004-02-03 Thread Matt Matijevich
snip !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body ?php session_start(); echo(session_id()); ? /body /html /snip Take a look

RE: [PHP] New lines

2004-02-03 Thread Matt Matijevich
[snip] This is where the var's $list and $additional_letters are filled. The file is called hangman.php. I want to open this file, put the words into a html file so that someone can change them and write them back. That's it. [/snip] is it out of the question to store the values in ther own

Re: [PHP] Str_Replace Command

2004-02-02 Thread Matt Matijevich
snip $StockURL = http://finance.yahoo.com/d/quotes.txt?s=xrx,ikn,dankyf=sl1e=.txt;; $StockResults = implode('', file($StockURL)); $Rows = split(\n, $StockResults); foreach($Rows as $Row) { list($Symbol, $Price) = split(,, $Row); $Symbol = str_replace('', , $Symbol); echo $Symbol.

Re: [PHP] Need Help - extract unstructured data for parse reformat and import into DB

2004-02-02 Thread Matt Matijevich
snip Would PHP be a good program to use for this project? Has anyone had to reformat unstructured data to insert into a database? If anyone has any suggestions or examples please let me know. J /snip If you have not already, look at regular expressions. imho, by far the best way to parse

Re: [PHP] Help with mail() function

2004-02-02 Thread Matt Matijevich
[snip] ?php if ($TextArea=) { echo You have to fill out the entire form, go back and try again.; } else { $to = [EMAIL PROTECTED]; $from = From-Test; $subject = Subject-Test; $message = $TextArea; mail($to, $subject, $message,From: $from); echo Thankyou; } ? [/snip] What is happening when the

Re: [PHP] Help with mail() function

2004-02-02 Thread Matt Matijevich
ahh, I have to correct myself replace this: if ($_POST['TextArea']=) { with this: if ($_POST['TextArea']==) { -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Help with mail() function

2004-02-02 Thread Matt Matijevich
did you replace ($TextArea=) with ($TextArea==) ? ($TextArea=) will reassign $TextArea to Pooya Eslami [EMAIL PROTECTED] 2/2/2004 3:00:32 PM Well the problem is not that it won't get executed, its that every thing will be sent except the message in the textarea! subject, to and from are

Re: Re[2]: [PHP] Pulling unique data from database into an array

2004-02-02 Thread Matt Matijevich
[snip] while (!$recordSet-EOF) { $arrX = $recordSet-fields['user_id'] = $recordSet-fields['field_value']; $recordSet-MoveNext(); [/snip] while (!$recordSet-EOF) { $arrX[$recordSet-fields['user_id']] = $recordSet-fields['field_value']; $recordSet-MoveNext(); } -- PHP General Mailing List

[PHP] Retrieve specific data from MySQL

2004-02-02 Thread Matt Hedges
Hello, I have a basic question I can't figure out. My site lets people enter in their information... I now want to be able for a user to search the database. For example, enter in firstname or lastname in a text box, hit submit, and have the results returned. How do I write this in PHP? I've

[PHP] Re: Retrieve specific data from MySQL

2004-02-02 Thread Matt Hedges
this? thank you very much, Hedges Now, How do I get Matt Hedges [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I have a basic question I can't figure out. My site lets people enter in their information... I now want to be able for a user to search the database

[PHP] Re: Retrieve specific data from MySQL

2004-02-02 Thread Matt Hedges
Thanks, ya'll! Got it working. Matt Hedges [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I have a basic question I can't figure out. My site lets people enter in their information... I now want to be able for a user to search the database. For example, enter

[PHP] formated text after Submit in MySQL/PHP

2004-01-31 Thread Matt Hedges
) is this possible? thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] formated text after Submit in MySQL/PHP

2004-01-31 Thread Matt Hedges
Can someone help me with the following? Preferably someone other than the wise ass below? thanks matt Burhan Khalid [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matt Hedges wrote: Hello, I have a page where users can enter in information about themselves... I want

Re: [PHP] Transferring an initiated Session to a Browser !!

2004-01-30 Thread Matt Matijevich
snip But I am also in need of a Mechanism where I can transfer an Initiated session to the User's Browser ... ( Not Just OutPutting the above variable .. But actually Transferring the Session to the User's Browser ) /snip not sure I understand 100% what you mean. You could send a cookie or

[PHP] Create a zip archive from a folder

2004-01-29 Thread Matt Palermo
easy like this for creating zip files. Please let me know. Thanks, Matt http://sweetphp.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] working with files

2004-01-28 Thread Matt Matijevich
replace ?php $handle = fopen ($filename, r); do { $data = fread($handle, 128); if (strlen($data) == 0) { break; } print ($databr); } while (true); fclose($handle); ? with this ?php $handle = fopen ($filename, r); do {

[PHP] Googlebot

2004-01-27 Thread Hartley, Matt
Is Googlebot (or any other bot) able to follow links that are php? e.g. a href=Contact.phpContact Us/a a href=Product.phpimg src=Images/product.jpg width=110 height=111 border=0/a Is there a way to invite bots to your site? Thanks Matt

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

2004-01-26 Thread Matt Matijevich
snip With a GET, the fields would be included into the query strinbg, so this is quite easy. What happens in a POST? /snip 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
snip 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 br tag for a newline and will not read a \n as a br. So, use br instead of \n. /snip you could also wrap the text in pre tags.

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

2004-01-26 Thread Matt Matijevich
snip 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,

Re: [PHP] create a file

2004-01-26 Thread Matt Matijevich
snip How can I create a file (txt) in client-side? /snip I dont think there is a way unless you are using some kind of java applet. You can create the text on the server and give the user a link to save the text file on their computer. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] How to prevent - Page has expired

2004-01-26 Thread Matt Matijevich
snip I know that this is not a PHP problem, but Is there a way to prevent the 'Page has expired...' when the user press 'Back' /snip post to a page that does nothing but process the form post. When it is done, it redirects to another page. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] random alphanumeric value generator

2004-01-26 Thread Matt Matijevich
because it is MySQL, couldn't you just use mysql_insert_id http://www.php.net/manual/en/function.mysql-insert-id.php instead of this: //now get the random number, and MD5 it to get it alphanumeric $query = 'SELECT MAX(uiIndex), cKey FROM randomKey GROUP BY cKey'; $result =

Re: [PHP] Remove Dynamic String between StringA and StringB

2004-01-26 Thread Matt Matijevich
snip Hi :), i'm looking for a function to remove multiple dynamic parts of a string, there are only the start and end strings given (remove all between string A and string B) got somebody a working procedure for that? regards /snip a start of a procedure I have $stringA = string A; $stringB

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

2004-01-23 Thread Matt Matijevich
snip 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? /snip I

[PHP] simple ?- load page after submit

2004-01-23 Thread Matt Hedges
)... 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
snip Or, correctly: header(Location: http://www.yourdomain.com/personalpage.php?id=$id;); /snip 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: ?php

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

2004-01-23 Thread Matt Hedges
page.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 back and says thanks for entering your info

Re: [PHP] Session time-out value

2004-01-23 Thread Matt Matijevich
snip 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. /snip Not 100% sure, but I think if you dont add ini_set() before all of your session_start() calls, session.gc_maxlifetime

Re: [PHP] Session time-out value

2004-01-23 Thread Matt Matijevich
snip 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 ? /snip something like: php_value session.gc_maxlifetime 25000 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Session time-out value

2004-01-23 Thread Matt Matijevich
snip 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

Re: [PHP] session variables

2004-01-22 Thread Matt Matijevich
snip If you store session variables , but the user has session cookies disabled, is there any way to recuperate those session variables? /snip 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

Re: [PHP] passing session ID

2004-01-22 Thread Matt Matijevich
snip 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 /snip You could just have php store

Re: [PHP] Showing local date time

2004-01-22 Thread Matt Matijevich
snip Should I use setlocale()? I mean is there a way which will give me the local datetime without calculating the difference manually? /snip 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 snip Suppose that I

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

2004-01-22 Thread Matt Matijevich
snip 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

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

2004-01-22 Thread Matt Matijevich
snip echo form method='get' action='exams2.php'; $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?; echobrbr; echo select name='Math[]'

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 unsubscribe, visit:

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

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
snip while ($row = mysql_fetch_array($selection)){ if (section == $sectionName){ echo b . $row[sectionName] . /b; }else{ echo $row[sectionName]; } thx /snip Not sure if I understand you 100% but I think you could just either check the $_GET or $_REQUEST array. Something like

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

2004-01-21 Thread Matt Matijevich
try this: print pre; print_r ($_POST); print /pre; 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

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] 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] 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 Developer The Health

[PHP] dreaded sessions

2004-01-19 Thread Matt Horner
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! Matt Matt

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 10:32, Matt Hedges wrote: if ($_FILES['imagefile']['type

[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 image/jpeg. But regardless of what the browser sets, it is more reliable to get

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']['type'] != image/pjpeg) the browser sets, it is more reliable to get

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
refresh the page, it loads correctly. What is going on? Thank you, -- 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

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

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

2004-01-15 Thread Matt Grimm
, 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 on? Thank you, -- Matt Grimm Web Developer The Health

[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 with

[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] 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 a look

[PHP] Re: credit card acceptance recommendations?

2004-01-14 Thread Matt Grimm
://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] wrote in message news

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
; } else { echo ; echo Could Not Copy, Wrong Filetype (.$_FILES['imagefile']['name'].); } } I know there's some easy way to do it... thanks a lot, Matt -- 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] 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

[PHP] Upload and PullPicture???

2004-01-13 Thread Matt Hedges
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
']['name'].); } } and then whatever else you want it to do (be sure to include connecter to MySQL database). thanks to everyone who helped, especially 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

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

2004-01-13 Thread Matt Hedges
Howdy, I'm trying to specify font face=Monotype Corsiva 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 font face=Monotype Corsiva in my php document... but can't b/c it's two words... if it was html

[PHP] credit card acceptance recommendations?

2004-01-13 Thread Matt Hedges
... 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] 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

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

2004-01-09 Thread Matt Grimm
? 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 Health TV Channel, Inc

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

2004-01-09 Thread Matt Grimm
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 done it because I know PHP better than

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

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:

[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.org Louie Miranda [EMAIL

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