Good day,
To have PHP evaluate string contents as an expression, use eval().
The usual disclaimer comes with this function... be careful.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-494
On Thursday, March 28, 2002, at 04:52 PM, Darren Gamble wrote:
> Good day,
>
> To have PHP evaluate string contents as an expression, use eval().
Thanks for the pointer, I have never used this function before. I'm not
sure what it means by "as with any function that outputs directly to the
Good day,
eval() is a very powerful function. You should be careful that users can't
find some way to execute arbitrary code by providing input that your program
did not expect.
Also, if your string doesn't have the correct syntax, your program will
terminate.
Darr
I have attempted to compile PHP with the CyberCash module. I have run
./configure --with-cybercash=mckdir, and all appeared to go fine, but when I
call the cybercash functions I get a fatal error call to undefined function.
I've tried to spot the line that says Checking for CyberCash . Yes, b
Well, let's see here..
$query = mysql_query("select name from users where uid =
{$_SESSION['uid']}", $db);
while ($name = mysql_fetch_row($query) {
echo "$name[0]\n";
}
hope that helps
Jennifer Downey wrote:
>Hi all,
>
>Here is what I have and what I am trying to do.
>
>I would like the us
Hi all,
Here is what I have and what I am trying to do.
I would like the user name to be printed in the Username text box but can't
seem to get it there.
I don't want the user to have to type there username in, just click the
submit button and it is entered into the db.
Can anyone show me what
When should I use require or include?
I read that include copies the content from the file to the script that
is calling it.
And require is like #include in C.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Username: \n";
print "";
?>
-Original Message-
From: Jennifer Downey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 4:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Getting user name in text area
Hi all,
Here is what I have and what I am trying to do.
I would like the us
require() is used when you want the file included regardless of whether any
information is used from it. include() may be conditional.
-Original Message-
From: javier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 4:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] require or include
I'm just wondering if anyone here knows whether or not the New England
PHP user group still exists at all? If not, is there another group
around the Boston area?
- Gabriel Ricard
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://www.phorum.org ?
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Denis L. Menezes [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 3:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Creating foru
open http://www.php.net/manual/en/
press Ctrl-F and type 'nntp' .. click ok.
bvr.
news.php.net wrote:
>Hello everyone
>
>I have a problem to post messages to newsgroups. How can i do it.
>
>thanks
>Muhammad Fawad
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
> Hi All,
>
>
> This is my first participation in this group, so my question is I
> write a function in c, but I need use this function and more joined in a
> library make using the command ar rc alexlib.a x.o, but this procedure
show
> a error when I use this in my browser, please anyone
Hi folks!
When I send mail (using the mail-function) and the subject line contains
non-english letters like å, ä, ö the special caracters turns into strange
symbols. This only happens on Mac OS, wich is pretty strange. Have anyone
else encounter this problem? Does anyone have a solution for it, o
For some reason this is not working. I do not have enough experience
with email headers to know why. Suffice to say it is not sending the
$message string as an attachment. Instead it is ending up in the
standard body of the email. And whatever ends up on the body is only a
fraction of what is
This is a really simple question that I've wondered for a while now...
what is the best way to read a file? There are so many different
functions for reading files that I have no idea which I should use.
readfile() returns its values to standard output -- I don't want to use
this, since my sc
I have done a similar thing by executing another script via sudo using the
PHP command passthru() (or you could use exec(), system(), whatever's
appropriate). See
http://www.courtesan.com/sudo/
for more info. The whole setup was (and is) a bit of a kluge, but the
script didn't need t
Actually if you have output buffering active then the easiest hassle
free way to read a file into a variable is like this..
Pretty cool eh? Hope that helps.
--
Kevin Stone
[EMAIL PROTECTED]
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2
you didn't mention file()
that one can be pratical because it returns an array of lines (linefeed
intact, implode with empty string),
but can be memory consuming for large files, because the entire file is
in memory
the at the same time.
some times you don't need the entire file (at a time) ..
If I include for ex. common.php in a script and this script also calls
common.php what should I use require or include?
On Thu, Mar 28, 2002 at 04:44:04PM -0600, Rick Emery wrote:
> require() is used when you want the file included regardless of whether any
> information is used from it. inclu
Hi,
I have a very general question about my php project. Basically, it's about secure
pages for administering site. The way I do it is authorizing users against their
credentials in the mysql database. Then if authentication passed successfully, I
register a session with a specific name and do
2. Definition and Etymology
bar /bar/ n. [JARGON]
1. The second metasyntactic variable, after foo and before baz.
"Suppose we have two functions: FOO and BAR. FOO calls BAR"
2. Often appended to foo to produce foobar.
foo /foo/
1. interj. Term of disgust.
2. U
I just found the very cool looking new FDF functions to support Acrobat
forms. According to the documentation at www.php.net I have to download &
install the FDF SDK.
Found the latest SDK and I put two files from the C directory of the SDK at:
/usr/lib/php4/libfdftk.so
/usr/include/fdftk.h
The
both include the file, but
use require() when it is required, and include() when it's not.
In the new behaviour these two make no further difference.
bvr.
Javier wrote:
>If I include for ex. common.php in a script and this script also calls
>common.php what should I use require or include?
>
Hi, I want to search for a partial match in an array? Does in_array() or
search_array() support this or is there another way? For example if I have
30 file names in an array in the format ...
file1.txt
file2.txt
pic1.gif
pic2.gif
... how can I check to see if any values in the array start with t
Trying to build a database which uses the webpage name as one of the
selection criteria. (building page specific menus). How do I get the
current file name? Can't seem to find any help on this.
-Patrick
_
MSN Photos is the easi
On Thursday, March 28, 2002, at 07:34 PM, bvr wrote:
> not really ambiguous,
(actually, that's what I was saying, that they are -less- ambiguous, and
more specific, but no big deal on that little matter).
> and I think these functions being flexible enough to handle other
> resource types c
preg_grep("/^file/", $arr)
bvr.
Dalton Hunter wrote:
>Hi, I want to search for a partial match in an array? Does in_array() or
>search_array() support this or is there another way? For example if I have
>30 file names in an array in the format ...
>
>file1.txt
>file2.txt
>pic1.gif
>pic
Fix 'include_path' in php.ini
I think you want it to look in the current directory (.\) as well.
bvr.
Alberto Wagner wrote:
>I can't include anything on my php scripts
>
>Failed opening 'Pagina_Inicial.php' for inclusion (include_path='c:\php4\pear')
>
>How to fix it?
>
>
>
>
--
PHP Gene
It seems I spoke to quick...here is how to get the current file name.
$this_file = $_SERVER['REQUEST_URI'];
echo( $this_file );
the result is formatted as follows:
/applications.php
_
MSN Photos is the easiest way to share an
Try;
$filename = basename($PHP_SELF);
assuming you don't need the full path
Warren Vail
Tools, Metrics & Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-Original Message-
From: Patrick Hartnett [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 4:53 PM
Thanks, worked great!
"Bvr" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> preg_grep("/^file/", $arr)
>
> bvr.
>
> Dalton Hunter wrote:
>
> >Hi, I want to search for a partial match in an array? Does in_array() or
> >search_array() support this or is there
I am trying to write a program that will talk to UPS. It appears that
the requirements is that i must talk SSL and then submit XML type documents
as a POST. Would it be easy in PHP to talk SSL via Socket Layer? Any help
would be appreciated.
--
PHP General Mailing List (http://www.php.net/)
To
>> not really ambiguous,
>
> (actually, that's what I was saying, that they are -less- ambiguous,
> and more specific, but no big deal on that little matter).
ok, misunderstood
>
> Every time I try to use one of these functions, I get an error message
> from my browser (not from PHP) that th
note that this var. includes the query string, for example:
/applications.php?cat=browsers
bvr.
Patrick Hartnett wrote:
> It seems I spoke to quick...here is how to get the current file name.
>
> $this_file = $_SERVER['REQUEST_URI'];
> echo( $this_file );
>
> the result is formatted as foll
while we're on the topic, what's the best way to append an CSV line onto the
end of a text file?
---mail.csv---
Justin,French,[EMAIL PROTECTED]\n
Fred,Flintstone,[EMAIL PROTECTED]\n
Barny,Rubble,[EMAIL PROTECTED]\n
---
I'd like to append a new line::
$newline = "Hank,Foo,[EMAIL PROTECTED]\n";
It is going to be very easy !
On http://www.php.net/manual/en/function.fopen.php read:
...As of PHP 4.3.0 (not yet released), if you have compiled in support
for OpenSSL, you may use "https://"; to open an HTTP connection over SSL...
Meanwhile you could do this with CURL which is slightly mor
A fputcsv() would be nice, doesn't seem to exist (yet) though ?
bvr.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Didn't test.
http://www.php.net/manual/en/function.fgetcsv.php
*blair at squiz*
14-Aug-2001 07:19
Here is a function that takes an array and adds a CSV line to the passed
file pointer.
#-
function fputcsv ($fp, $array, $deliminator=",") {
$line = "";
On Thursday, March 28, 2002, at 08:14 PM, bvr wrote:
> Try not to use MSIE when developing or install the debug thingie,
> otherwise you will not get sensible feedback on what went wrong during
> page load..
Good advice, I'll try with Mozilla.
> Anyway, it's probably not the memory limit, b
Maybe, http://www.phpbb.com
-David.
"Boaz Yahav" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
http://www.phorum.org ?
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-Original Me
Okay, well, for anyone who might have read my earlier thread about
file-reading problems, that's history. Turns out that the whole time it
was a case of not calling xslt_process correctly. Here's what I've
discovered, for posterity in the archives...
for me at least, the "simpler" method of
Hello,
It sounds like a problem with your HTML output.
First, look at the source of the generated page, and find out if your html
is formatted correctly. Then look at the php code to find out the problem.
-Jason Garber
At 04:44 PM 3/28/2002 -0800, Caspar Kennerdale wrote:
>just a quick query
On Thu, 2002-03-28 at 16:50, Dalton Hunter wrote:
> Hi, I want to search for a partial match in an array? Does in_array() or
> search_array() support this or is there another way? For example if I have
> 30 file names in an array in the format ...
>
> file1.txt
> file2.txt
> pic1.gif
> pic2.gif
>
You have to build the FDF extension to include FDF support by adding the
--with-fdftk to the PHP build flags.
-Rasmus
On Thu, 28 Mar 2002, Robert Stoeber wrote:
> I just found the very cool looking new FDF functions to support Acrobat
> forms. According to the documentation at www.php.net I ha
How do I add extra fields after it has already been set?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 28 Mar 2002, David Duong wrote:
> How do I add extra fields after it has already been set?
1) Read the manual conveniently available at http://www.mysql.org; this
is not rocket science.
2) ALTER TABLE mytable ADD boogers_per_hour INT;
miguel
--
PHP General Mailing List (http://www.p
Hello.
Would someone who has had experience and/or success with PHP and CyberCash
please contact me.
Thank you.
Gabe
-
Ender Technology Corp.
Websites, Database Applications, Hosting
(310) 516-7411
[EMAIL PROTECTED]
http://www.endertechnology.com/
--
PHP General Mailing List (http://www
Someone submits an url through a form.
Now I want to check in a script to see if there is some tekst in it.
For Example:
Someone submits http://www.mydomain.com/test.htm
In this htm file I want to check the text "hello".
Try,
[type] can be int or char () or blob or real or something else drawn
from the mysql manual
$query="ALTER table_name ADD column_name [type] AFTER other_column_name";
$result=mysql_query($query);
if (!$result) die("couldn't alter table".mysql_error());
Hope this helps,
Hugh
- Origi
I've written a script that checks my email. However, when I run the script
(from the command line) -- I want it to loop with a 5 minute delay and the
ability to stop the program anytime by pressing a key on the keyboard (say)
the ~ key.
Anyone know how to do this?
thanks.
jason
--
PHP Gen
Well you'd have to work with inputs, etc... for the key... but the look
isn't hard
$loop=1;
$sleep=300;
while ( $loop == 1 ) {
code();
sleep($sleep);
if ( %%keypresscode%% ) {
$loop = 0;
}
}
I'd probably just touch a file somewhere when I want it t
101 - 152 of 152 matches
Mail list logo