[PHP] Upload file name not file

2009-05-01 Thread MikeP
Hello, Id like to use the popup file system box(input name=userfile type=file /) to choose a file name , but I only want to upload the filename , not the file. Can I do that? Thanks Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Upload file name not file

2009-05-01 Thread MikeP
I'm not trying to get the path, just the filename and size, I know how to get these, but that would include the file using $_Files, but I dont want to upload anything just use the filename and size.(without the path) to insert into a DB. Simon turne...@gmail.com wrote in message

[PHP] extention question

2009-04-01 Thread MikeP
Hello, How do I know if an extension (specifically php-domxml) has to be compiled or can just be loaded. I am using RedHat Linux . Thanks Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Quotes in querys

2009-01-14 Thread MikeP
Hello, I am trying to get the following to work: Select Netid from Users where Netid = '$_SESSION[phpCAS][user]' Netid is a string type. No matter where of if I put the quotes, I still get array[phpCAS] not the value. If there is anything I still have trouble with after all these years its

Re: [PHP] Quotes in querys

2009-01-14 Thread MikeP
Eric Butera eric.but...@gmail.com wrote in message news:6a8639eb0901140825h1d603d01i3ffcce919dca6...@mail.gmail.com... On Wed, Jan 14, 2009 at 11:17 AM, MikeP mpel...@princeton.edu wrote: Hello, I am trying to get the following to work: Select Netid from Users where Netid = '$_SESSION[phpCAS

Re: [PHP] Quotes in querys

2009-01-14 Thread MikeP
Thanks, Thats the kind of help I was looking for. Mike c...@l-i-e.com wrote in message news:20090114162142.65944.qm...@o2.hostbaby.com... You can only interpolate ONE level of array or object indirection in a string. WORKS: ... $foo[x] ... ... $foo-x ... FAILS: ... $foo[x][y] ... ...

[PHP] Re: Variable as an index

2008-12-22 Thread MikeP
Nevermind, Got it. MikeP mpel...@princeton.edu wrote in message news:3c.17.23981.6c8be...@pb1.pair.com... Hello, I am trying to output the value of the following:($x is an int incremented by a for statement. echo tr td width='110' bgcolor='$row_color' nowrap '$users[$x][U]'/td

[PHP] Variable as an index

2008-12-21 Thread MikeP
Hello, I am trying to output the value of the following:($x is an int incremented by a for statement. echo tr td width='110' bgcolor='$row_color' nowrap '$users[$x][U]'/td /tr; I have tried putting the quotes all over and all I get is: 'Array[U]'. What am I doing wrong. Thanks

Re: [PHP] fread question

2008-12-18 Thread MikeP
From my phpinfo: magic_quotes_runtime Off Robert Cummings rob...@interjinn.com wrote in message news:1229567238.8302.35.ca...@localhost... On Wed, 2008-12-17 at 19:54 -0500, MikeP wrote: Hello, I have been trying to use fread to open a file, but it always escapes special characters

Re: [PHP] fread question

2008-12-18 Thread MikeP
But this one is ON magic_quotes_gpc Robert Cummings rob...@interjinn.com wrote in message news:1229567238.8302.35.ca...@localhost... On Wed, 2008-12-17 at 19:54 -0500, MikeP wrote: Hello, I have been trying to use fread to open a file, but it always escapes special characters. How do I open

Re: [PHP] fread question

2008-12-18 Thread MikeP
are the same. Any other Ideas? Thanks mike Robert Cummings rob...@interjinn.com wrote in message news:1229567238.8302.35.ca...@localhost... On Wed, 2008-12-17 at 19:54 -0500, MikeP wrote: Hello, I have been trying to use fread to open a file, but it always escapes special characters. How do I

[PHP] Regex Problem

2008-12-18 Thread MikeP
Hello, I have a quirky behavior I'm trying to resolve. I have a REGEX that will find a function definition in a php file: .function InsertQuery($table,$fields,$values). the REGEX is: $regex='/function [a-z]* *([$a-zA-Z]*)/'; the problem is that: 1. a slash is automattically put in front

Re: [PHP] fread question

2008-12-18 Thread MikeP
you have magic_quotes_runtime turned on LOCALLY. Use phpinfo() to see. NOmagic_quotes_runtime Off you actually managed to put the backslashes into your text file. NO tdinput name=letter type=file id=letter size=50 maxlength=255 / . . . . ?php process_uploaded_file('letter'); function

[PHP] Re: Php question from Newsgroup

2008-12-18 Thread MikeP
Boyd, Todd M. tmbo...@ccis.edu wrote in message news:33bde0b2c17eef46acbe00537cf2a190037b7...@exchcluster.ccis.edu... Mike -- I've bottom posted my reply, as is the convention for this list (and most others). Scroll down. From: Mike Peloso [mailto:mpel...@princeton.edu] Sent: Thursday,

Re: [PHP] Regex Problem

2008-12-18 Thread MikeP
Boyd, Todd M. tmbo...@ccis.edu wrote in message news:33bde0b2c17eef46acbe00537cf2a190037b7...@exchcluster.ccis.edu... -Original Message- From: MikeP [mailto:mpel...@princeton.edu] Sent: Thursday, December 18, 2008 8:43 AM To: php-general@lists.php.net Subject: [PHP] Regex Problem

[PHP] fread question

2008-12-17 Thread MikeP
Hello, I have been trying to use fread to open a file, but it always escapes special characters. How do I open afile without it modifying my original file: $_POST[$fname] = fread($fileHandle, $_POST[$fname.'_size']); I use this and get slashes everywhere.This kills my REGex that gets coded