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
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
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
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
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
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] ...
...
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
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
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
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
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
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
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
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,
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
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
16 matches
Mail list logo