|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 2 Jun 2004 12:07:10 -0000 Issue 2798
php-general-digest-help
lists.php.net
Date: Wed Jun 02 2004 - 07:07:10 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 2 Jun 2004 12:07:10 -0000 Issue 2798
Topics (messages 187411 through 187442):
Re: GD Library Upgrade
187411 by: Ryan Schefke
187426 by: Jason Wong
Re: "Date object"
187412 by: Curt Zirzow
Re: Test Email
187413 by: John Nichel
187417 by: Stephen Lake
session variables
187414 by: Bob Lockie
187415 by: John Nichel
187418 by: John W. Holmes
187419 by: Bob Lockie
Re: Text Streaming in PHP
187416 by: Stephen Lake
PHP Newbie needs a little help 1-on-1
187420 by: Mike
Willing to Pay For Upgrade Help
187421 by: Ryan Schefke
187424 by: robi
Re: Editor's Page
187422 by: David Robley
Installing Imagemagick on Windows
187423 by: Tan Ai Leen
Can session.save_path data be saved to a database instead of a file system?
187425 by: Caleb Walker
187432 by: Michael Nolan
text search in database
187427 by: Vincent DUPONT
187431 by: Michael Nolan
187435 by: John W. Holmes
Using Paradox and Delphi with PHP
187428 by: WebMaster. Radio ECCA
Re: RewriteUrl + open_basedir
187429 by: Christophe Chisogne
[Newbie Guide] For the benefit of new members
187430 by: Ma Siva Kumar
SELECT
187433 by: Phpu
187434 by: Craig Donnelly
187436 by: John W. Holmes
how to insert form data
187437 by: BigMark
187438 by: Angelo Zanetti
187439 by: Craig Donnelly
187440 by: BigMark
187441 by: Matt MacLeod
187442 by: BigMark
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Jason,
I have root access to my server. It's a dedicated server with 1and1.com. I
have zero experience with shell commands and will be working off of any
directions I can find online.
I'm researching whether to upgrade PHP from 4.2.2 to 4.3.6 or just upgrade
the GD Library from 1.8.4 to the latest. But I'm still not sure if it's
best to upgrade the entire thing or just the library.
I'm totally new at installing apps via shell...if anyone is interested in
doing it for a small fee please let me know!
Ryan
-----Original Message-----
From: Jason Wong [mailto:php-general
gremlins.biz]
Sent: Tuesday, June 01, 2004 2:25 PM
To: php-general
lists.php.net
Subject: Re: [PHP] RE: GD Library Upgrade
On Wednesday 02 June 2004 01:10, Ryan Schefke wrote:
> So there's no way to upgrade PHP 4.2.2's GD Library without upgrading to
> the latest version of PHP?
That was not what was said nor implied in my reply. Basically upgrading the
GD
lib used by PHP needs root privileges. If I understand you correctly, you're
on a shared host, thus _you_ are not able to upgrade anything.
If you do manage to persuade your hosting company to do an upgrade then they
may as well upgrade PHP and use the bundled GD lib which apparently works
better with PHP than the standard GD lib as opposed to just upgrading the GD
lib.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Put your Nose to the Grindstone!
-- Amalgamated Plastic Surgeons and Toolmakers, Ltd.
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
On Wednesday 02 June 2004 07:47, Ryan Schefke wrote:
> I have root access to my server. It's a dedicated server with 1and1.com.
OK.
> I have zero experience with shell commands and will be working off of any
> directions I can find online.
There're plenty of those to be found. The list archives should have plenty of
posts from myself (and others!) regarding the recompiling/reconfiguring of
PHP and the installation of GD lib.
> I'm researching whether to upgrade PHP from 4.2.2 to 4.3.6 or just upgrade
> the GD Library from 1.8.4 to the latest. But I'm still not sure if it's
> best to upgrade the entire thing or just the library.
Well one way to base your decision on salient facts is to find out what has
changed between the 4.2.2 & 4.3.6 (and the intervening versions) by reading
the changelogs. Then decide whether the bug fixes and improvements are worth
your while to upgrade to.
> I'm totally new at installing apps via shell...if anyone is interested in
> doing it for a small fee please let me know!
If you're using a pre-installed dedicated server then it's more than likely it
has a version of RedHat on it. You may be lucky and be able to upgrade PHP
via RPM. But AFAIK RedHat has never (or hardly ever) provided PHP upgrades.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Windows 99 has been released! (PC Magazine, April 2013)
*/
attached mail follows:
* Thus wrote Ryan A (ryan
coinpass.com):
> > From: "Ryan A" <ryan
coinpass.com>
> >
> > > A bit confused, I downloaded a function and it says it takes a "date
> > > object"....what exactly is a "date object"?
> > >
> > > This is exactly what is written " The function takes a date object as
> its
> > > only parameter."
> >
> > No such thing. If you look at the code, though, it looks like it expects
> an
> > array such as the one returned from getdate().
> >
> > ---John Holmes...
>
> Yep, noticed the getdate() thing but was just confused about the "date
> object" and went through the manual again plus google wondering how the heck
> did I miss "date objects" when learning PHP :-)...
Here's a little tip:
$a = (object) getDate();
print_r($a);
haha.. now you got your date object :)
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
attached mail follows:
John W. Holmes wrote:
> From: "Tom Chubb" <tom
ps-hosting.co.uk>
>
>>Sorry if anyone else gets this, but I'm not receiving any emails at the
>>moment and wanted to check my subscription.
>
>
> You know php-general is working when you get emails from Advance Credit
> Suisse Bank and the Information Desk.
>
> ---John Holmes...
>
> (Sorry... had to do it!)
>
Spam, spam, spamity, spam. ;)
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
attached mail follows:
No !
#$ about the spammers!
"John Nichel" <jnichel
by-tor.com> wrote in message
news:40BD226D.3070000
by-tor.com...
> John W. Holmes wrote:
>
> > From: "Tom Chubb" <tom
ps-hosting.co.uk>
> >
> >>Sorry if anyone else gets this, but I'm not receiving any emails at the
> >>moment and wanted to check my subscription.
> >
> >
> > You know php-general is working when you get emails from Advance Credit
> > Suisse Bank and the Information Desk.
> >
> > ---John Holmes...
> >
> > (Sorry... had to do it!)
> >
>
> Spam, spam, spamity, spam. ;)
>
> --
> By-Tor.com
> It's all about the Rush
> http://www.by-tor.com
attached mail follows:
$_SESSION['new_name'] = $_REQUEST['new_name'];
Is not global.
I printed out the value locally but it is not made into a session variable.
attached mail follows:
Bob Lockie wrote:
> $_SESSION['new_name'] = $_REQUEST['new_name'];
>
> Is not global.
> I printed out the value locally but it is not made into a session variable.
>
Did you start the session before you set $_SESSION['new_name']?
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
attached mail follows:
Bob Lockie wrote:
> $_SESSION['new_name'] = $_REQUEST['new_name'];
>
> Is not global.
> I printed out the value locally but it is not made into a session variable.
Yes, it is. Providing you have sessions configured correctly and use
session_start().
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
attached mail follows:
On 06/01/04 22:12 John Nichel spoke:
> Bob Lockie wrote:
>
>> $_SESSION['new_name'] = $_REQUEST['new_name'];
>>
>> Is not global.
>> I printed out the value locally but it is not made into a session
>> variable.
>>
>
> Did you start the session before you set $_SESSION['new_name']?
That was my problem.
I reorganized and put some code in a file that didn't have a
session_start() call. :-(
Thanks.
attached mail follows:
Thanks all for the suggestions....I finally got it working....and it works
perfectly in IE too (so far anyway)
attached mail follows:
Ok, I'm a pretty fast learn but syntax and basic lack of serious
programming background hinder my efforts. I can make Javascript do what I
want it to and usually perl also but I'm in over my head with my PHP
project and I'm on a deadline.
Objective:
To create a set of forms that
1) input data to a MySQL database (done)
2) login to that database with a username and password and set thos
values with a cookie while redirecting the user to a form for updating
data (mostly done)
3) use the values of the set cookie to call the users record into that
form for modification (begun)
4) Modify the data on submit
Additional Objectives:
1) create a calculator that takes length x width x depth in inches and
results a cubic foot calculation.
I've been doing some of the work with Dreamweaver MX, but I'm getting
some unfound XML error on one of the extension forms so that the code is
not generated. Know anything about this?
I would like to have an email and phone exchange to finish up this thing.
It's mostly done but I may need syntax and query help.
If you are comfortable with mid level PHP please email ASAP. I'm on Long
Island and work late into the evening so calls are no problem. I have
flat rate phone and can call you back.
Mike
dj
micrage.com
PS - if you are hip to Burning Man, this project relates to that and I'm
doing it as a labor of love.
attached mail follows:
Is any Linux techie out there willing to accept a small payment to upgrade
my Linux dedicated root server from PHP 4.2.2 to PHP 4.3.3 (or 4.3.6,
whichever is recommended)? I need to leverage the latest version of GD
Library for better quality picture uploads. I'm a windows guy and don't
have much experience with shell commands and Linux machines.
Thanks,
Ryan
attached mail follows:
I am willing to do it.
what is your distribution?
troby
Dòa St 2. Jún 2004 06:08 Ryan Schefke napísal:
> Is any Linux techie out there willing to accept a small payment to upgrade
> my Linux dedicated root server from PHP 4.2.2 to PHP 4.3.3 (or 4.3.6,
> whichever is recommended)? I need to leverage the latest version of GD
> Library for better quality picture uploads. I'm a windows guy and don't
> have much experience with shell commands and Linux machines.
>
>
>
> Thanks,
>
> Ryan
attached mail follows:
Jay Blanchard wrote:
> I am missing the link to the editor's list for PHP, can someone repost
> it?
>
> Thanks!
http://www.thelinuxconsultancy.co.uk/phpeditors/
which can be found on http://au.php.net/links.php under PHP Setup and
Authoring Tools
David
attached mail follows:
Hi,
I need help with installing Imagemagick on Windows. I tried googling but
there is no solution provided. I discovered that a lot of people are
having the same problem as me. After placing the dll in the extension
folder and adding in extension=php_imagick.dll into php.ini, Apache will
hit error Unknow(): Unable to load dynamic library
F:\php\extensions\php_imagick.dll.
I believe that my php.ini is configured correctly. I am able to load
other extensions with out any error.
This is what is in my php.ini file
extension_dir = "F:\php\extensions\"
extension=php_imagick.dll
What should I do with the ImageMagick library? Is there a step by step
guide on installing imagemagick? With versions of library and links to
download them?
Thanks in advance,
Ai Leen
attached mail follows:
I have 2 servers fail-over/load-balanced behind an F5
bigIP. I want session data to be maintained in the event one server takes
a dive. In this scenario, if a user is in the middle of doing
something while logged in, they will not have to lose all work and log
back into the server to continue working. Can that be done without
rewriting an application?
I saw a link here:
http://www.phpfreaks.com/quickcode/DB_eSession_class_securely_stores_PHP_sessions_in_a_MySQL_DB/286.php
but this seems to be something that would have to be written into the
application and I didn't write it and do not want to take on the
responsibility to do so from here. Any thoughts would be much appreciated.
Thank You,
Caleb
attached mail follows:
Caleb Walker wrote:
> I have 2 servers fail-over/load-balanced behind an F5
> bigIP. I want session data to be maintained in the event one server takes
> a dive. In this scenario, if a user is in the middle of doing
> something while logged in, they will not have to lose all work and log
> back into the server to continue working. Can that be done without
> rewriting an application?
> I saw a link here:
> http://www.phpfreaks.com/quickcode/DB_eSession_class_securely_stores_PHP_sessions_in_a_MySQL_DB/286.php
> but this seems to be something that would have to be written into the
> application and I didn't write it and do not want to take on the
> responsibility to do so from here. Any thoughts would be much appreciated.
>
> Thank You,
> Caleb
>
Yes, you can use a database to store session data and retain existing
session manipulation methods. Surprisingly, the PHP manual tells you how:
http://uk.php.net/manual/en/function.session-set-save-handler.php
And lists a couple of examples, including this one at Zend:
http://www.zend.com/zend/spotlight/code-gallery-wade8.php
Mike
attached mail follows:
Hi,
I need to do a text search on some fileds in a database. I would like the users to be able to use some syntax like 'AND' 'OR' 'NOT' parentheses () and quotes to make their search queries more powefull.
I face 2 problems :
1. parse the query
2. execute the search (create the appropriate SQL query)
Do you known of any existing package that could parse such a syntax and /or generate some kind of sql query?
tank you,
vincent
attached mail follows:
Vincent DUPONT wrote:
> Hi,
>
> I need to do a text search on some fileds in a database. I would like the users to be able to use some syntax like 'AND' 'OR' 'NOT' parentheses () and quotes to make their search queries more powefull.
>
> I face 2 problems :
> 1. parse the query
> 2. execute the search (create the appropriate SQL query)
>
> Do you known of any existing package that could parse such a syntax and /or generate some kind of sql query?
>
> tank you,
>
> vincent
>
MySQL has a FULLTEXT index type which might provide what you need. I'm
also using a program called SWISH-E (http://www.swish-e.org/) to index
my website but it also allows you to index data from any source by using
a custom spider. You could set this to extract data from your database
in the correct format for indexing.
Mike
attached mail follows:
Vincent DUPONT wrote:
> I need to do a text search on some fileds in a database.
It'd help if you said what database you're using and posted this on
php-db
lists.php.net
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
attached mail follows:
Is there any way to use a Paradox database with PHP?
I have an aplication made in Delphi using Paradox and I need to attack the Paradox database using PHP. Do you know if there is anyway?
Thanks in advance!!
;)
attached mail follows:
Markus Post a écrit :
> DocumentRoot /srv/www
> RewriteRule ^/(.*)/(.*)$ /$1/$2
>
> This redirects the request http://domain.de/dir1/dir2 to the local files
> /srv/www/dir1/dir2/ and works fine.
No RewriteRule necessary to do this: '/dir1/dir2' becomes '/dir1/dir2'
btw RewriteRule ^/([^/]+)/(.*)$ /$1/$2 is little better
coz '.' can match '/' and /d1/d2/d3 is then no more ambiguous
See http://httpd.apache.org/docs/mod/mod_rewrite.html
and http://httpd.apache.org/docs/misc/rewriteguide.html
> "php_admin_value open_basedir /srv/www/$1", but it doesn´t work.
open_basedir can use multiple (: or ; separated) dirs if you want
See http://www.php.net/features.safe-mode
Perhaps you meant something like this:
NameVirtualHost 1.2.3.4
NameVirtualHost 5.6.7.8
<VirtualHost 1.2.3.4>
ServerName site1.com
DocumentRoot /var/www/site1
php_admin_value open_basedir /var/www/site1
</VirtualHost>
<VirtualHost 5.6.7.8>
ServerName site2.com
DocumentRoot /var/www/site2
php_admin_value open_basedir /var/www/site1
</VirtualHost>
Or perhaps you want something more sophisticated, like
Dynamically configured mass virtual hosting
http://httpd.apache.org/docs/vhosts/mass.html
Hope it helps
Christophe
attached mail follows:
=======================================
Please feel free to add more points and send
to the list.
=======================================
1. If you have any queries/problems about PHP
try http://www.php.net/manual/en first. You
can download a copy and use it offline also.
Please also try
http://www.php.net/manual/faq.php
for answers to frequently answered questions
about PHP (added by Christophe Chisogne).
2. Try http://www.google.com next. Searching
for "php YOUR QUERY" may fetch you relevant
information within the first 10 results.
3. There is a searchable archive of the
mailing list discussion at
http://phparch.com/mailinglists. Many of the
common topics are discussed repeatedly, and
you may get answer to your query from the
earlier discussions.
For example: One of the repeatedly discussed
question in the list is "Best PHP editor".
Everyone has his/her favourite editor.
You can get all the opinions by going through
the list archives. If you want a chosen list
try this link :
http://www.thelinuxconsultancy.co.uk/phpeditors/
(contributed by Christophe Chisogne).
4. Not sure if PHP is working or you want
find out what extensions are available to
you?
Just put the following code into a file with
a .php extension and access it through your
webserver:
<?php
phpinfo();
?>
If PHP is installed you will see a page with
a lot of information on it. If PHP is not
installed (or not working correctly) your
browser will try to download the file.
(contributed by Teren and reworded by Chris W
Parker)
5. If you are stuck with a script and do not
understand what is wrong, instead of posting
the whole script, try doing some research
yourself. One useful trick is to print
the variable/sql query using print or echo
command and check whether you get what you
expected.
After diagnosing the problem, send the
details of your efforts (following steps 1,
2 & 3) and ask for help.
6. PHP is a server side scripting language.
Whatever processing PHP does takes place
BEFORE the output reaches the client.
Therefore, it is not possible to access
users' computer related information (OS,
screen size etc) using PHP. Nor can you
modify any the user side settings. You need
to go for JavaScript and ask the question in
a JavaScript list.
On the other hand, you can access the
information that is SENT by the user's
browser when a client requests a page from
your server. You can find details about
browser, OS etc as reported by
this request. - contributed by Wouter van
Vliet and reworded by Chris W Parker.
7. Provide a clear descriptive subject line.
Avoid general subjects like "Help!!", "A
Question" etc. Especially avoid blank
subjects.
8. When you want to start a new topic, open a
new mail composer and enter the mailing list
address php-general
lists.php.net instead of
replying to an existing thread and replacing
the subject and body with your message.
9. It's always a good idea to post back to
the list once you've solved your problem.
People usually add [SOLVED] to the subject
line of their email when posting solutions.
By posting your solution you're helping the
next person with the same question.
[contribued by Chris W Parker]
10. Ask smart questions
http://catb.org/~esr/faqs/smart-questions.html
[contributed by Jay Blanchard)
11. Do not send your email to the list with
attachments. If you don't have a place to
upload your code, try the many pastebin
websites (such as www.pastebin.com).
[contributed by Burhan Khalid]
--
Integrated Management Tools for leather
industry
----------------------------------
http://www.leatherlink.net
Ma Siva Kumar,
BSG LeatherLink (P) Ltd,
No 21, First Main Road,
Jai Nagar, Arumbakkam,
Chennai - 600106
Tel : +91 44 55191757
attached mail follows:
Hi,
Is there any way to select all entries in the database except one entry or tho entries?
Thanks
attached mail follows:
SELECT * FROM foo_table WHERE field_foo <> some_value
The above will select all from foo_table except where field_foo is equal to
some value.
HTH
Craig
"Phpu" <phpu
go.ro> wrote in message
news:000801c44889$4a83d650$1300a8c0
fannehh...
Hi,
Is there any way to select all entries in the database except one entry or
tho entries?
Thanks
attached mail follows:
Phpu wrote:
> Is there any way to select all entries in the database except one entry or tho entries?
Yes.
http://www.bigredspark.com/answers.html
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
attached mail follows:
I am trying to learn how to take the value of $name and $quote from a form
and put it in the database -whosaid
but obviuosly i have it all wrong. Can anyone point out what im doing wrong.
thx in advance
<?php
include("connect.php");
$name = $_POST['name'];
$quote = $_POST['quote'];
$sql = "INSERT INTO whosaid values (name='$name',quote='$quote');
?>
attached mail follows:
INSERT into whosaid (name, quote) values ('$name', '$quote');
-----Original Message-----
From: BigMark [mailto:neretlis
westnet.com.au]
Sent: Thursday, June 03, 2004 5:13 AM
To: php-general
lists.php.net
Subject: [PHP] how to insert form data
I am trying to learn how to take the value of $name and $quote from a form
and put it in the database -whosaid
but obviuosly i have it all wrong. Can anyone point out what im doing wrong.
thx in advance
<?php
include("connect.php");
$name = $_POST['name'];
$quote = $_POST['quote'];
$sql = "INSERT INTO whosaid values (name='$name',quote='$quote');
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--------------------------------------------------------------------
Disclaimer
This e-mail transmission contains confidential information,
which is the property of the sender.
The information in this e-mail or attachments thereto is
intended for the attention and use only of the addressee.
Should you have received this e-mail in error, please delete
and destroy it and any attachments thereto immediately.
Under no circumstances will the Cape Technikon or the sender
of this e-mail be liable to any party for any direct, indirect,
special or other consequential damages for any use of this e-mail.
For the detailed e-mail disclaimer please refer to
http://www.ctech.ac.za/polic or call +27 (0)21 460 3911
attached mail follows:
<?php
include("connect.php");
$name = $_POST['name'];
$quote = $_POST['quote'];
$sql = mysql_query("INSERT INTO whosaid (name,quote) VALUES ('" . $name
. "','" . $quote . "')");
?>
HTH
Craig
"Bigmark" <neretlis
westnet.com.au> wrote in message
news:20040602111454.2692.qmail
pb1.pair.com...
> I am trying to learn how to take the value of $name and $quote from a form
> and put it in the database -whosaid
> but obviuosly i have it all wrong. Can anyone point out what im doing
wrong.
>
> thx in advance
>
>
> <?php
> include("connect.php");
> $name = $_POST['name'];
> $quote = $_POST['quote'];
> $sql = "INSERT INTO whosaid values (name='$name',quote='$quote');
> ?>
attached mail follows:
OK no errors now but no data inserted, my form must be wrong as well.
<form method="post" action="input.php">
NAME
<input name="textfield" type="text" id="name" >
QUOTE
<input name="textarea" type="text" "id="quote" >
<input type="submit" name="Submit" value="Submit">
</form>
attached mail follows:
Should be:
<form name="form" meth0d="post" action="input/php">
NAME: <input type="text" name="name" id="name" />
QUOTE: <textarea name="quote" id="quote"></textarea>
<input type="submit" name="submit" value="Submit" />
</form>
HTH
Matt
On 3 Jun 2004, at 04:33, BigMark wrote:
> OK no errors now but no data inserted, my form must be wrong as well.
>
> <form method="post" action="input.php">
> NAME
> <input name="textfield" type="text" id="name" >
> QUOTE
> <input name="textarea" type="text" "id="quote" >
>
> <input type="submit" name="Submit" value="Submit">
>
> </form>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
Well getting closer now, its inserting into the tables but they are blank
(no text)
Any ideas
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]