Hamid
Thanks for the reply. I was told that using html2ps and ps2gif via php
pipes (if that's the right word) would let php go to a site and browse the
page, print it off as postscript and then convert the postscript file to a
gif. not sure if that is possible which is why I posted to the list.
How can I evaluate a var that is from a text field of a database? Example:
MySQL field `name` = hi my name is $name
In my script I have:
$name = Shawn;
After fetching a query result as an associative array I have the contents of
the `name` field in $data
If I echo $data I get: hi my name is
On Mon, 2003-07-14 at 15:03, Shawn McKenzie wrote:
How can I evaluate a var that is from a text field of a database? Example:
Hi Shawn--
Have you looked at eval?
http://www.php.net/eval.
Cheers,
Marco
--
php|architect -- The Magazine for PHP Professionals
NOW AVAILABLE IN PRINT! Get
Hello,
This is a reply to an e-mail that you wrote on Mon, 14 Jul 2003 at 20:03,
lines prefixed by '' were originally written by you.
How can I evaluate a var that is from a text field of a database?
Example:
MySQL field `name` = hi my name is $name
In my script I have:
$name = Shawn;
Hello,
This is a reply to an e-mail that you wrote on Mon, 14 Jul 2003 at 19:58,
lines prefixed by '' were originally written by you.
Every time i run this script i got this error:( my apache server is
very well cofigured)
Warning: Cannot send session cookie - headers already sent by (output
eval($data)
returns Parse error: parse error, unexpected T_STRING in
C:\apps\apache2\htdocs\test\query.php(23) : eval()'d code on line 1
Thanks!
Shawn
Shawn McKenzie [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
How can I evaluate a var that is from a text field of a database?
The string you send to eval() must be valid PHP code. So try this..
eval( 'echo '.$data.';');
- Kevin
- Original Message -
From: Shawn McKenzie [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 14, 2003 1:15 PM
Subject: [PHP] Re: Eval var from query
eval($data)
returns
Hello,
This is a reply to an e-mail that you wrote on Mon, 14 Jul 2003 at 20:15,
lines prefixed by '' were originally written by you.
eval($data)
returns Parse error: parse error, unexpected T_STRING in
C:appsapache2htdocstestquery.php(23) : eval()'d code on line 1
What are the exact contents
--- phpu [EMAIL PROTECTED] wrote:
Warning: Cannot send session cookie - headers already sent by
(output started at c:\apache\htdocs\proiect_gsm\login.php:11) in
c:\apache\htdocs\proiect_gsm\login.php on line 81
This should be obvious, but you do something on line 81 that you cannot do,
because
yes, I can edit the httpd.conf file. I'm looking in the Apache 2.0 docs and
can't find the server directive. Also, to my knowledge and according to the
docs, alias mydom.com is invalid. Alias URL-path
file-path|directory-path is how the docs explain it. Am I missing
something. If I can do
On Tuesday 15 July 2003 02:57, Adrian Teasdale wrote:
Thanks for the reply. I was told that using html2ps and ps2gif via php
pipes (if that's the right word) would let php go to a site and browse
the page, print it off as postscript and then convert the postscript file
to a gif. not sure if
I realized that may not make any sense. Following up the eample relates to
your original query like this..
MySQL field `name` = hi my name is $name
In my script I have:
$name = Shawn;
$data = 'hi my name is $name';
$code = 'echo '.$data.';';
$name = 'Shawn';
eval($code); // prints hi may
OK, thanks for this suggestion Jason. I'll try it and see and then see if I
can find any alternative
Best regards
Adrian
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: 14 July 2003 20:34
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Automatically creating an image
Thanks Kevin! That works great. It outputs: hi my name is Shawn
Now if I want to assign $data to another var, let's say $newdata and have it
eval the $name var inside of that. How would that work?
Meaning I want to $newdata = hi my name is Shawn
Thanks!
Shawn
Kevin Stone [EMAIL PROTECTED]
On Tuesday 15 July 2003 03:33, Anthony wrote:
yes, I can edit the httpd.conf file. I'm looking in the Apache 2.0 docs
and can't find the server directive. Also, to my knowledge and according
to the docs, alias mydom.com is invalid. Alias URL-path
file-path|directory-path is how the docs
Got it!
eval( '$newdata = '.$data.';');
Thanks!
Shawn
Shawn McKenzie [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Thanks Kevin! That works great. It outputs: hi my name is Shawn
Now if I want to assign $data to another var, let's say $newdata and have
it
eval the $name var
i have
?php
$timy = '20030714012548'; // time stamp from MySQL
echo strtotime = ($timy);
$date = (Y-m-d , $timy);
?
and i have a wrong result how can i extract the -MM-DD from the
string $timy
Please Advice
Nabil
--
PHP General Mailing List (http://www.php.net/)
To
I am trying to crate the function that will allow the
administrator to Move a selected file to a different folder.
I have looked at move_uploaded_file () and it seems that
the source file to move needs to actually be the file's temp name.
If the file has recently been uploaded then the
?php
$timy = '20030714012548'; // time stamp from MySQL
echo strtotime = ($timy);
$date = (Y-m-d , $timy);
?
You are so very close!
?php
$timy = '20030714012548'; // time stamp from MySQL
echo strtotime = ($timy);
$date = date(Y-m-d , strtotime( $timy ));
?
$timy isn't a unix timestamp,
On Wednesday 16 July 2003 02:00, Nabil wrote:
?php
$timy = '20030714012548'; // time stamp from MySQL
echo strtotime = ($timy);
$date = (Y-m-d , $timy);
?
and i have a wrong result how can i extract the -MM-DD from the
string $timy
MySQL TIMESTAMP != UNIX TIMESTAMP
Look up
Listees,
Personally, I'm getting a little annoyed by this, and rather than
flame any thread in general, I would like to post this note
regarding some guidelines that I believe constitute responsible list
posting.
Firstly, please refrain from using obscure subjects. Some
recent ones
caspar kennerdale wrote:
- I'm a little confused. The files are already in there real location. It is
just that someone may want to change that location at a later date.
e.g. they upload an image to a folder and two months later decide it is
better placed in a different folder.
Or am I missing
Hi Chris..
thanks but your code generate the following error
Warning: date() [function.date]: Unexpected error in .
what's wrong? any idea ??
Chris Boget [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
?php
$timy = '20030714012548'; // time stamp from MySQL
echo strtotime =
thanks Jason, you've been always helping me ...
Please i still have some fog regading this.. can u expaling me more about
the timestamp and unix timestamp...
and regaring me issue i have a string with '20030714012548' what ever i got
it from (because i m getting this from MSSQL some time and
On Monday, July 14, 2003, 11:04:48 PM, caspar wrote:
ck If you want the file to go into a holding location until your administrator
ck can approve it and move it to its real final location, then the holding
ck location should be the target of the move_uploaded_file(). This makes it up
ck to you
On Monday, July 14, 2003, 8:51:22 PM, Brad wrote:
BP Dan Anderson wrote:
I'm trying to split up a file and dump it into a mySQL database BLOB.
Wherever I run the query:
mysql_query(INSERT INTO table (field) VALUES ('{$buffer}'));
Nothing ever shows up in the table -- whethere field is a
I have an Linux server running Apache/PHP/MySQL.
and I need to connect to another server running MSSQL server 7
THE POINT IS the only way I have to connect is throu ODBC connection
because the network administrator only allowed me to connect thru port 1433
that ODBC uses..
I tried to make it
--- Burhan Khalid [EMAIL PROTECTED] wrote:
Next thing, please add a reply-to header that has the lists mailing
address.
This is a topic of debate, and many people (including myself) would urge people
to ignore this advice. Mangling mail headers can have bad consequences, and
there is very
- Original Message -
From: Shawn McKenzie [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 14, 2003 1:51 PM
Subject: Re: [PHP] Re: Eval var from query
Thanks Kevin! That works great. It outputs: hi my name is Shawn
Now if I want to assign $data to another var, let's say
Burhan Khalid wrote:
Listees,
Personally, I'm getting a little annoyed by this, and rather than
flame any thread in general, I would like to post this note
regarding some guidelines that I believe constitute responsible list
posting.
Here is a another resource on mailing list etiquette
Why would you want to do this ?
-Original Message-
From: Gary Ogilvie [mailto:[EMAIL PROTECTED]
Sent: 11 July 2003 13:35
To: [EMAIL PROTECTED]
Subject: [PHP] Capturing Windows Login Details
Hi All,
I need to capture the username and password used to login to Windows
2000/XP with PHP.
Nabil [EMAIL PROTECTED] wrote:
thanks Jason, you've been always helping me ...
Please i still have some fog regading this.. can u expaling me more about
the timestamp and unix timestamp...
mysql's timstamp in this case is in the format:
MMDDHHMMSS
Unix timstamp number of seconds
Ok, I want to delete only 1 row off of a database table...
Example:
I have a table with columns user and item...
Lets say the table contains the following rows (user | item):
582-668243 | Toothbrush
582-668243 | Toothbrush
582-668243 | Toothbrush
582-668243 | Trash can
582-668243 | Trash can
Nabil [EMAIL PROTECTED] wrote:
I have an Linux server running Apache/PHP/MySQL.
and I need to connect to another server running MSSQL server 7
THE POINT IS the only way I have to connect is throu ODBC connection
because the network administrator only allowed me to connect thru port 1433
Zavaboy [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Ok, I want to delete only 1 row off of a database table...
Example:
I have a table with columns user and item...
Lets say the table contains the following rows (user | item):
582-668243 | Toothbrush
582-668243 | Toothbrush
--- zavaboy [EMAIL PROTECTED] wrote:
Lets say the table contains the following rows (user | item):
582-668243 | Toothbrush
582-668243 | Toothbrush
582-668243 | Toothbrush
...
Anyway, how can I remove only 1 Toothbrush from user 582-668243?
With the information you provided, you can't. You
zavaboy [EMAIL PROTECTED] wrote:
Ok, I want to delete only 1 row off of a database table...
Example:
I have a table with columns user and item...
Lets say the table contains the following rows (user | item):
582-668243 | Toothbrush
582-668243 | Toothbrush
Note the 'LIMIT' part in the delete
Chris,
Not sure how you went about searching for php.ini, but you can type in
the following find command in your command prompt and it will search
your entire system:
find / -name php.ini -print
You may also want to look for php.in in /usr/local/lib. This is where
php install php.ini by
Jonathan Wilkes [EMAIL PROTECTED] wrote:
Why would you want to do this ?
-Original Message-
From: Gary Ogilvie [mailto:[EMAIL PROTECTED]
Sent: 11 July 2003 13:35
To: [EMAIL PROTECTED]
Subject: [PHP] Capturing Windows Login Details
Hi All,
I need to capture the username
Chris Shiflett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
--- Burhan Khalid [EMAIL PROTECTED] wrote:
Next thing, please add a reply-to header that has the lists mailing
address.
This is a topic of debate, and many people (including myself) would urge
people
to ignore this
I would like to also say that if one follows some sort of guideline that
person is likely to recieve more help (responses).
I know that if there are subjects that are vague and emails that contain
little information, i tend to delete them. Whereas, if someone takes the
time to address the issue,
Hi,
I recently upgraded from 4.2.2 to 4.3.2 built as a DSO for apache
1.3.26. Now, documents are not being executed. I am just getting the
source listed back. I have the propper AddModule/LoadModule stuff in my
conf as well as the propper AddType for php documents. When I tried to
revert back
Hi,
I am getting a weird session problem in my site.
Background of the Problem:
--
My site use sessions for user authentication. Site has a Admin Panel where
admin can search users and then through a link
(which has login and password appended) login as user.
On login
In your application code ... you can implement a move() function that
can either call the unix (mv) or windows (move) commands to move the
file to another location (same permission restrictions apply). The
thing about move is, its a copy + delete function in one, so you have
to be careful about
Here is how i trouble shoot it:
1. make sure that there is a libphp4.so file in libexec.
2. make sure that you have these lines in httpd.conf:
LoadModule php4_module libexec/libphp4.so
AddType application/x-httpd-php .php
3. restart apache
That should work for you. Also make sure that when
Yeah, I have all that in the conf file. I've rebuilt it twice and made
sure it was pointing to the propper apxs and everything. Even did a make
clean to be sure. Still doesn't work. I've checked everything I can
think of.
-Patrick
Ray Hunter wrote:
Here is how i trouble shoot it:
1. make
I'm wondering if there's any crazy dude out there that would like to
join me in making a class for PHP to convert Mp3's to Mp3Pro. Even
better would be if it could take other formats aswell, but mainly MP3 to
MP3Pro. There are a few reasons why I want it in PHP. One is that PHP is
Try this:
Stop apache first.
1. Delete the libphp4.so file from libexec in apache dir.
2. make clean in php src dir.
3. rm config.cache
4. ./config.nice (gives you all the stuff that u configured)
5. make make install
6. verify httpd.conf
7. start apache up and verify.
--
bigdog
On Mon,
Most ftp programs allow you to chmod. If using windows, check out wsftp
www.ipswitch.com.
I don't think there is another way to change directory/file privileges
other than chmod.
-Original Message-
From: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 12:14 AM
If you're going to be keeping track of all these demographics, you'll
want to store these in a database rather than a text file.
-Original Message-
From: César Aracena [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 13, 2003 7:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Lots of PHP
Hi all,
- Original Message -
From: Sourabh G [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 13, 2003 11:15 AM
Subject: [PHP] Session Problem
Hi,
I am getting a weird session problem in my site.
Background of the Problem:
--
My site use sessions for user
What you are looking for is called an Invoice. I'm attaching a simple
invoice for you to look at.
-Original Message-
From: Duncan [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 13, 2003 4:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php script billing receipt
Hi,
I just finished a script
Ok, I added a primary key. I figured it out and I have it working... Thanks!
Chris Shiflett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
--- zavaboy [EMAIL PROTECTED] wrote:
Lets say the table contains the following rows (user | item):
582-668243 | Toothbrush
582-668243 |
|-Original Message-
|From: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED]
|Sent: Monday, July 14, 2003 12:14 AM
|To: [EMAIL PROTECTED]
|Subject: [PHP] SquirrelMail + Writable Directories
|
|My question is simple - I want to install Squirrelmail on my webserver,
|but I can't chmod or chown
Greetings All!
I'm still in the learning stages of PHP and require some help with a small
problem.
I need to take a text file which looks like this (and no I can't get it
output in CSV - damn and blast!)
user1 26:48:59 6 logins 4:28:09 hrs/login
user2
I have a couple of problems with newish MySQL database.
I am running WinXP-Pro, MySQL V 4.0.12-nt, Apache etc. I previously got
this all working, but today (after a break of a couple of weeks) I can't get
phpMyAdmin-2.5.0-rc1 to work.
I have configured {config.inc.php} exactly as per
What's your:
$cfg['PmaAbsoluteUri']
$cfg['Servers'][$i]['host']
? Should be something like :
$cfg['Servers'][$i]['host'] = 'http://localhost/phpMyAdmin';
$cfg['Servers'][$i]['host'] = 'localhost';
Post other config entries that you've changed...? What authentication
method are you using, etc?
You have made a mistake in your database design. Every table should have a
primary key that allows you to uniquely identify any single row in the
table. You do not have a primary key, hence when you want to delete a
single row from a series of duplicates, you can't do it. Unlike oracle,
mysql
Lloyd Bayley [EMAIL PROTECTED] wrote:
Greetings All!
I'm still in the learning stages of PHP and require some help with a small
problem.
I need to take a text file which looks like this (and no I can't get it
output in CSV - damn and blast!)
user1 26:48:59 6
Thankyou! That works a treat!
Lloyd. :-)
At 11:36 PM 14/07/2003 +, you wrote:
Lloyd Bayley [EMAIL PROTECTED] wrote:
Greetings All!
I'm still in the learning stages of PHP and require some help with a small
problem.
I need to take a text file which looks like this (and no I can't get it
I'm working on a site which is mostly in PHP. However, I have to use perl
for a couple of scripts. Does anyone have any experience in sharing
session information between PHP and perl?
I'm writing for a client who I will know has cookies enabled, and I have a
mySQL database, so I'm looking for
mysql's timstamp in this case is in the format:
MMDDHHMMSS
and it's default value is current time.
| TIMESTAMP(14) | MMDDHHMMSS |
| TIMESTAMP(12) | YYMMDDHHMMSS |
| TIMESTAMP(10) | YYMMDDHHMM |
| TIMESTAMP(8) | MMDD |
| TIMESTAMP(6) | YYMMDD |
| TIMESTAMP(4) |
The quick and easy to convert a mysql timestamp is to use the
UNIX_TIMESTAMP(field_name) function in mysql when you query the data. It
converts a 14-digit mysql timestamp to a standard unix timestamp.
Myhan [EMAIL PROTECTED] дÈëÏûÏ¢ÐÂÎÅ
:[EMAIL PROTECTED]
mysql's timstamp in this case is in the
Hi,
Monday, July 14, 2003, 6:00:04 PM, you wrote:
GS A bit off topic
GS Im trying to figure out how to convert BigEndian byte words to integers.
For example -
GS 0 0 0 18 = 18
GS The only way I know how to convert this is by writing down on paper, and
GS writing 8 4 2 1 above the numbers and
u could set up a perl script to read cookies and vice versa with php.
That should not be a problem you could also create a form with php
variables and post it to a perl script. u you also create a link to a
perl script that passes varibles via the url.
Very easy to do just a matter of how you
Hi,
Mind my ignorance but what is webservices??
Cheers,
Mun Heng, Ow
H/M Engineering
Western Digital M'sia
DID : 03-7870 5168
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 3:28 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP]
Ow Mun Heng [EMAIL PROTECTED] wrote:
Hi,
Mind my ignorance but what is webservices??
hmm... I was wondering that myself...
http://www.w3.org/2002/ws/
A google search on 'Web Services stock quote' returns some interesting
pages.
Cheers,
Mun Heng, Ow
H/M Engineering
Western
Hi,
Is there any danger in overwriting the $_GET array? Will it still
remain a superglobal in all circumstances?
?
// Example 1:
$_GET['foo'] = base64_decode($_GET['foo']); // modify a value
// Example 2:
$_GET = array();
Is there a way, to define an integer number e.g. 7, to be defined as 07?
(Maybe with numberformat)
Harry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I just updated my 4.2.x to 4.3.2 and when I restart the apache, I get the
error [warn] module php4_module is already loaded, skipping.
Can anyone offer any suggestions? I searched the archives, but didn't see
anything that would help. Apache/PHP seem to be running ok, but I would
like to get
printf(%02d, $integer); Use sprintf() if you want to save output.
Larry
---
How can I rid myself of the html tags around error messages when writing
console scripts? (Besides avoiding errors)
Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- CDitty [EMAIL PROTECTED] wrote:
I just updated my 4.2.x to 4.3.2 and when I restart the apache,
I get the error [warn] module php4_module is already loaded,
skipping.
Can anyone offer any suggestions?
You are probably loading the library twice in your httpd.conf file. Check that,
and
Justin French [EMAIL PROTECTED] wrote:
Hi,
Is there any danger in overwriting the $_GET array? Will it still
remain a superglobal in all circumstances?
yes and yes. see below for explaination
?
// Example 1:
$_GET['foo'] = base64_decode($_GET['foo']); // modify a value
Larry Brown [EMAIL PROTECTED] wrote:
How can I rid myself of the html tags around error messages when writing
console scripts? (Besides avoiding errors)
You can set up another system or user php.ini for the php binary to read
then pass the location of the php.ini to the php binary:
php -c
I'm running a website (www.revitcity.com) on linux/PHP/MySQL and the site is
for architecture components. The compenents or objects called famlies are
uploaded by users and shared freely. The program these objects are used in
is Revit, a windows only program. So here's my question.
Currenly users
I'm moving some scripts to a new server but the PHP installation on the
new server is actually older than the version I currently have installed
on the production server. I'm moving from 4.2.3 to 4.1.2.
In my file upload scripts I can't seem to get any $_FILES values out of
my upload. The
Most likely your php is a core module that does not require the load
module in your httpd.conf file...
you can verify if it is core (static not DSO) with
httpd -l
--
BigDog
On Mon, 2003-07-14 at 21:01, CDitty wrote:
I just updated my 4.2.x to 4.3.2 and when I restart the apache, I get the
Turn the html errors off in your php.ini file or write a function that
handles all your errors for you and u dont echo out html tags.
http://us3.php.net/manual/en/function.set-error-handler.php
--
BigDog
On Mon, 2003-07-14 at 21:32, Curt Zirzow wrote:
Larry Brown [EMAIL PROTECTED] wrote:
Have you checked that the files are indeed getting to the directory that
is specified by the upload_dir setting in php.ini?
Also check your tmp dirs to see if they are getting there too. If they
are not getting to the tmp dir then there are some issues.
--
BigDog
On Mon, 2003-07-14 at 21:19,
On Tuesday, July 15, 2003, at 01:24 PM, Curt Zirzow wrote:
Have you tried running the script to see if $_GET['myNewKey'] actually
is filled out? You'll find that it is.
of course I tried it, and yes it works, but that doesn't mean it's
smart/safe :)
Using the special name space variable
Is it possible to check a file in $_FILES['userfile']['tmp_name'] to
make sure it is of a certain format? I want to allow a user to only
upload jpegs or mpegs, and want to check what format the file is in.
If there are only a few types, and you know what those types should look
like, it
This position requires strong technical knowledge in a server-side
scripting technology such as PHP (preferred) /JSP/Perl/ASP. Knowledge
of SQL queries, stored procedures and database design required. Must
have experience in HTML/CSS and familiarity with HTTP and networking
concepts. Graphic
I create a new object and then assign it to a session var
$customer = new Customer($_GET['facilityID'], $_GET['customerID']);
$_SESSION['acceptPayment']['customer'] = $customer;
but later when I access that session var [in the the same file but in a different function and different instance], php
Justin French [EMAIL PROTECTED] wrote:
On Tuesday, July 15, 2003, at 01:24 PM, Curt Zirzow wrote:
[...]
I'm fully aware of the reasons why one would use $_GET['foo'] over
$foo, but as stated in the OP, i'm interested in using
search-engine-friendly URLs like:
Good, I was just making sure
101 - 185 of 185 matches
Mail list logo