Re: [PHP] PHP alternative to Browser Hawk?

2004-03-30 Thread Matt Matijevich
Does anyone know of a good solid PHP alternative to the very good (but very expensive!) BrowserHawk? (http://www.cyscape.com/) Dont know if this has all of the features you are looking for, but it has a bunch of them http://phpsniff.sourceforge.net/ -- PHP General Mailing List (http://www.php

[PHP] Problem with header

2004-03-24 Thread Phil Matt
e other statement go? header("Location:error.shtml"); TIA for any advice you can offer. I must be really missing the point here. Cheers --- Phil Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] login scripts not secure?? help!

2004-03-23 Thread Matt Matijevich
go to secure page Turn off register globals. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Image Storage

2004-03-22 Thread Matt Palermo
I am creating a system to allow users to upload images to the site. Would it be better to store the images in a MySQL table, or having it save the images to a directory on the server? Anyone have any suggestions on this? Pros? Cons? Thanks, Matt http://sweetphp.com/ -- PHP General Mailing

[PHP] RE: Guru's advice needed ........[Security: SQL injection]

2004-03-19 Thread Matt Chatterley
ience has already tried this... Thanks, Matt -Original Message- From: Tariq Murtaza [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 18:41 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Guru's advice needed [Security: SQL injection] *Dear Friends!* Can someone shed some lig

RE: [PHP] Thank you, Microsoft! Now I need an alternate loginmethod

2004-03-18 Thread Matt Matijevich
I'm about 90% sure that URL strings are passed in the clear to SSL servers, so this would defeat the purpose of SSL. I don't think this is true. You can see the query string in the address bar, but (with what little http knowledge I have) the http conversation is encrypted, if you sniff it, the

Re: [PHP] Retain form values...

2004-03-18 Thread Matt Matijevich
thoughts? I would look into sessions http://www.php.net/session -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date()

2004-03-18 Thread Matt Matijevich
i am new to php, i am trying to call the date function this way: and the result i get is: object18/03/04 any help would be appreciated I recommend the manual and google http://www.php.net/manual/en/ref.datetime.php http://www.php.net/date http://www.php.net/manual/en/function.time.php http

Re: [PHP] Link List

2004-03-04 Thread Matt Matijevich
I have tried to use readline to make this happen, but I'm getting error messages. Somebody with a suggestion about this? 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] protecting directories and files inside them based on session variables

2004-03-04 Thread Matt Matijevich
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-au

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 somethi

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

2004-03-02 Thread Matt Matijevich
I already tried that, but had problems with ' ' " ". 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] 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!\n"; } else { echo ("error!"); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

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

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

[PHP] Make sure folder is writable

2004-02-24 Thread Matt Palermo
hanks, 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 MS-SQL

2004-02-24 Thread Matt Matijevich
But, I want to know is there any tools similar with "php-mssql" for php connect with MS-SQL ? Any other can help ? 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: http://www.php.net/u

Re: [PHP] About php and mysql

2004-02-24 Thread Matt Matijevich
I want to know how to control php program connect to MySQL Database System ( another computer machine ) ? 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 unsubscribe, visit:

[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

Re: [PHP] Connection handling and output_buffering

2004-02-23 Thread Matt Matijevich
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 echo() fun

Re: [PHP] PHP or MSIE Problem?

2004-02-20 Thread Matt Matijevich
Can anyone tell me if this is a common problem? Is this a purely MSIE bug, or could PHP be a factor? 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 General Mailin

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

2004-02-20 Thread Matt Matijevich
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. regardless

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

[PHP] Recursive Select Box

2004-02-18 Thread Matt Palermo
assume I'm 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

Re: [PHP] regular expressions

2004-02-17 Thread Matt Matijevich
Anyone recommend a book for a regex newbie ? 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: http://www

[PHP] Re: Ora_Parse failed

2004-02-16 Thread Matt Hillebrand
${where_clauses}"; Matt Matt Hillebrand <[EMAIL PROTECTED]> wrote: I have an Oracle 8 problem. Unfortunately, I can't use the OCI functions and must use the ORA functions. The code below looks fine to me. It will return *almost* all of the rows, but then the script just dies with no wa

[PHP] Ora_Parse failed

2004-02-16 Thread Matt Hillebrand
rint ''; $rowcount = 0; while(ora_fetch($cursor)) { print ''; for($i=0; $i$cell_data"; } print "\n"; } print ''; ?> Thanks for any advice. Matt

Re: [PHP] Are variables persistent?

2004-02-16 Thread Matt Matijevich
I'm guessing this is not a sensible approach. Every place I construct a url, I'd have to remember to add this. 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: http://www.php.net/u

Re: [PHP] * populate menu from directory *

2004-02-16 Thread Matt Matijevich
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. take a look at http://www.php.net/readdir http://www.php.net/opendir here is some code to help start you echo ''; if ($

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

2004-02-13 Thread Matt Matijevich
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? Have you tried a redirect? http://www.php.net/header http://www.example.com/";); /* Redirect browser */ /* Make sure that code below does not get

[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] Another preg question

2004-02-13 Thread Matt Matijevich
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. not 100% sure this is right but give it a try $text = preg_replace("/\n\n+|\n\r[\n\r]+|\r\r+/", "\n\n", $tex

Re: [PHP] Using sessions with register globals off

2004-02-04 Thread Matt Matijevich
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'); Try $_SESSION['order'] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

RE: [PHP] Extract of a Paragraph

2004-02-04 Thread Matt Matijevich
$string = substr($stringname,0,50); echo $string; http://www.php.net/substr 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 there is

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 separa

Re: [PHP] Session (maybe cookies)

2004-02-03 Thread Matt Matijevich
http://www.w3.org/TR/html4/loose.dtd";> Untitled Document Take a look at the manual for sessions session_start() has to be the first thing called http://www.w3.org/TR/html4/loose.dtd";> Untitled Document -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[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

[PHP] Re: Retrieve specific data from MySQL

2004-02-02 Thread Matt Hedges
d linked by id. How do I do 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 in

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

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

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, t

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
[snip] [/snip] What is happening when the form is posted? This is just a guess, but I think registar_globals is probaby off. try this -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2004-02-02 Thread Matt Matijevich
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 If you have not already, look at regular expressions. imho, by far the best way to parse reports like th

Re: [PHP] Str_Replace Command

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

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 ente

[PHP] formated text after Submit in MySQL/PHP

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

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

2004-01-30 Thread Matt Matijevich
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 ) not sure I understand 100% what you mean. You could send a cookie or form field

[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 "); } while (true); fclose($handle); ?> with this \n"); } while (true); fclose($handle); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Googlebot

2004-01-27 Thread Hartley, Matt
Is Googlebot (or any other bot) able to follow links that are php? e.g. Contact Us Is there a way to invite bots to your site? Thanks Matt

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

2004-01-26 Thread Matt Matijevich
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 a start of a procedure I have $stringA = "string A"; $stringB = "stri

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 = mysql_query($qu

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

2004-01-26 Thread Matt Matijevich
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' 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/) To unsubsc

Re: [PHP] create a file

2004-01-26 Thread Matt Matijevich
How can I create a file (txt) in client-side? 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 unsubscribe, vi

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] 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] 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

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] 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 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

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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

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

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']['

[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
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] 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...

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

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] 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] 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] 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] 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] 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

[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] 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: 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] 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

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