|
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-help_at_lists.php.net
Date: Mon Jan 20 2003 - 10:32:38 CST
php-general Digest 20 Jan 2003 16:32:38 -0000 Issue 1834
Topics (messages 132205 through 132259):
PHP Books
132205 by: Armoured
132215 by: olinux
132250 by: Mike Morton
132252 by: Mike Morton
Can I use white spaces?
132206 by: Cesar Aracena
132208 by: Larry E. Ullman
132211 by: Cesar Aracena
132213 by: Larry E. Ullman
Re: Mass Mailing with PHP & MySQL
132207 by: Justin French
132210 by: rw.xend.net
132219 by: Brendon G
Re: php.ini: how to load different ini file depending on host?
132209 by: John Nichel
132217 by: Jean-Christian Imbeault
Re: Multiplication of double
132212 by: Bobby Patel
Login scritp help needed.
132214 by: Karl James
132216 by: olinux
Recommended freeware guestbook?
132218 by: David Chamberlin
jpgraph
132220 by: Rizki Salamun
Generating formatted reports
132221 by: Denis L. Menezes
Undefinied Symbol error
132222 by: Trilochan
132238 by: Marek Kilimajer
XML & deprecated "Call-time pass-by-reference"
132223 by: kellan
132227 by: Jason Wong
JOIN for FREE ... Learn and Earn
132224 by: Charles Cedeno
PHP and Sessions?
132225 by: Tim Thorburn
132226 by: Sean Burlington
ssl:// with fsockopen () on Windows XP
132228 by: Alexander Stirmlinger
Which country?
132229 by: Martin Thoma
132230 by: Timothy Hitchens \(HiTCHO\)
132232 by: David Freeman
building apache 1.3.27 + php 4.3.0
132231 by: Stain
132234 by: Stain
Re: Something difference betwen php-4.0.3 and php-4.2.3
132233 by: Marek Kilimajer
Re: File perms when dir already exists
132235 by: Marek Kilimajer
Image opendialog function
132236 by: Steven Seijmonsbergen
Re: How know how many sessions are active?
132237 by: Marek Kilimajer
132246 by: Jeremías Grunge
132257 by: Marek Kilimajer
PHP and FDF
132239 by: ed.home.homes2see.com
Freshmeat question
132240 by: De deco
132245 by: Martin Thoma
Database abstraction class
132241 by: Clarkson, Nick
simple date question
132242 by: adrian murphy.2020tourism.com
132244 by: Martin Thoma
132247 by: Rick Emery
Getting https-page
132243 by: Martin Thoma
132248 by: Chris Shiflett
132258 by: Kenneth Brill
Security
132249 by: Phil Ewington
132251 by: Chris Shiflett
Re: Select multiple boxes
132253 by: Ford, Mike [LSS]
$_POST vars problem
132254 by: Kenneth Brill
132255 by: Chris Shiflett
132256 by: Kenneth Brill
132259 by: Chris Shiflett
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:
hello,
i have been told that i should email you to help me
with my question, and the auestion is:
Can you recommend an GREAT book for someone to learn
php off. The person will only have knowladge of html.
Is there a really good book out there that will teach
me php???
thanks
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
attached mail follows:
PHP Fast & Easy Web Development by Julie Meloni
kicked things off for me (after knowing only HTML)
basically walks you through the code of common things
that you would want to do with PHP. (email a submitted
html form - insert/retrieve and edit data in mysql
database)
Read through the examples and picture it in your mind.
Lots of it is repetition but by the end you'll
understand or at lest know where to look to find
answers to solutions you want
Julie's site: www.thickbook.com
Many tutorials available here as well.
PHP Bible is another good reference book. There's also
a lot of sample code in here if I remeber right
http://www.amazon.com/exec/obidos/external-search/002-6827406-7685618?tag=opera-20&index=blended&keyword=PHP+bible
The manual is really invaluable as well. It's very
well organized and easy to find what you need if you
know how to use it. A boring but helpful activity
would be to read through the summaries of the
functions. You won't remember all [or any :)] of them,
but you will get an idea of what is possible and how
powerful the language is.
Sams Teach Yourself SQL in 10 Minutes
Also ought to pick yourself up this cheapy while your
at it. A great intro to SQL. It's great for a
reference and an idea of what is possible (and how
simple the majority of what you want to do really is)
You'll probably be using MySQL at some point and this
will help lots to understand how the database can help
you out.
http://www.amazon.com/exec/obidos/external-search/002-6827406-7685618?tag=opera-20&index=blended&keyword=Sams+Teach+Yourself+SQL+10+Minutes
olinux
--- Armoured <thelittlefly
yahoo.com> wrote:
> hello,
>
> i have been told that i should email you to help me
> with my question, and the auestion is:
>
> Can you recommend an GREAT book for someone to learn
> php off. The person will only have knowladge of
> html.
> Is there a really good book out there that will
> teach
> me php???
>
> thanks
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
attached mail follows:
As well as books there are some great PHP/MYSQL tutorials that cover all
aspects that the book do in a more visual way.
http://www.vtc.com - there are mysql and php tutorials there - you can view
the first few tutorials online to see if that is what you are looking for.
On 1/19/03 11:31 PM, "Armoured" <thelittlefly
yahoo.com> wrote:
> hello,
>
> i have been told that i should email you to help me
> with my question, and the auestion is:
>
> Can you recommend an GREAT book for someone to learn
> php off. The person will only have knowladge of html.
> Is there a really good book out there that will teach
> me php???
>
> thanks
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
--
attached mail follows:
As well as books there are some great PHP/MYSQL tutorials that cover all aspects that the book do in a more visual way.
http://www.vtc.com - there are mysql and php tutorials there - you can view the first few tutorials online to see if that is what you are looking for.
On 1/19/03 11:31 PM, "Armoured" <thelittlefly
yahoo.com> wrote:
> hello, > > i have been told that i should email you to help me > with my question, and the auestion is: > > Can you recommend an GREAT book for someone to learn > php off. The person will only have knowladge of html. > Is there a really good book out there that will teach > me php??? > > thanks > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com
--
attached mail follows:
Hi all,
I've encountered myself trapped into a big mystery this time, and that's because of some white spaces.
I have a MySql table which I use to store users and visitors information, but when I want to display this information on screen for them to see and/or correct, every field that has white spaces are stripped to the first word, so I need something more "Address: Avenue" to ship a product don't I?
How can I correct this in PHP? I've tried with stripslashes but white spaces are not treated like quotes (am I right?). FYI, there are Varchars and TEXT fields having this problem.
Thanks in advance,
Cesar L. Aracena
icaam
icaam.com.ar
caracena
infovia.com.ar
(0299) 156-356688
Neuquén (8300) Capital
Argentina
attached mail follows:
I suspect (but could be wrong) that you aren't quoting these values in your forms. Be sure that you are using... <input type="text" name="name" value="quoted value">
Larry
attached mail follows:
You where nothing but right. I didn't know that PHP's html HAD to have all of the quoting right for PHP to work properly.
Thank a lot!
Cesar L. Aracena
icaam
icaam.com.ar
caracena
infovia.com.ar
(0299) 156-356688
Neuquén (8300) Capital
Argentina
-----Mensaje original-----
De: Larry E. Ullman [mailto:LarryUllman
DMCInsights.Com]
Enviado el: lunes, 20 de enero de 2003 2:04
Para: Cesar Aracena
CC: php-general
lists.php.net
Asunto: Re: [PHP] Can I use white spaces?
I suspect (but could be wrong) that you aren't quoting these values in your forms. Be sure that you are using... <input type="text" name="name" value="quoted value">
Larry
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
> You where nothing but right. I didn't know that PHP's html HAD to have > all of the quoting right for PHP to work properly.
Glad it's working but, just to clarify, this is an HTML issue, not a PHP one.
Best wishes, Larry
attached mail follows:
A while() loop will, at some point, break. this is because the script will timeout on the server before you send to any large lists... when I say large, this could be 100 address', or could be 10,000 -- it all depends on your server/ISP and server load at certain times.
A better/simpler solution would be to build a Bcc header field using the while loop, then only send ONE email to 1000's of email address' via the Bcc field, just like you would from Outlook.
BUT, your host may impose restrictions on how many emails you can send in one Bcc... my host has a limit of 100.
So, I tend to send a few emails of 50-ish people per email to my list, balancing the two above issues.
There are also some simple/complex classes on phpclasses.org (esp the one by manuel lemmos) which can overcome both these problems, with various methods.
I haven't used them yet, basically because I don't see the need yet, given my small lists.
Justin
on 20/01/03 3:21 PM, Tim Thorburn (immortal
nwconx.net) wrote:
> Hi, > > I'm working on a mailing solution for a client. His site collects email > address from a 'Send this site to a friend' page (user enters their email > address and up to 10 other addresses - a message is then sent to the 10 > addresses from the users own email address). The addresses are then stored > in a MySQL database - a column for the users email address, and then a > column each for the additional 10 addresses. > > Now the client would like to have the ability to send an email to all > addresses collected at once - to inform the addresses of a sale, etc. I'm > guessing for this to be done, I'd have to select all the DISTINCT email > addresses from the 11 columns (users email, and the 10 addresses), then use > a loop to send the mail out. > > I had planned on using PHP's mail() function - does anyone know of any > limitations imposed by this method? Normally, I'd contact the ISP and ask > them directly, however it's been several weeks since they've answered the > phones. > > Does anyone have any other/better options that I should pursue? This will > be my first mass mailing typed job so I'm not really sure where to begin or > if I'm on the right path at all. > > Thanks > -Tim > >
attached mail follows:
----- Forwarded message from rw
xend.net -----
Date: Sun, 19 Jan 2003 22:07:34 -0700
From: rw
xend.net
Reply-To: rw
xend.net
Subject: Re: [PHP] Mass Mailing with PHP & MySQL
To: Justin French <justin
indent.com.au>
Is Peter McNulty out there anywhere?
Don't have a lot of experience with mailing scripts, but I use the one found at codingclick.com
Anyone else?
RW
Quoting Justin French <justin
indent.com.au>:
### A while() loop will, at some point, break. this is because the script
### will
### timeout on the server before you send to any large lists... when I say
### large, this could be 100 address', or could be 10,000 -- it all depends
### on
### your server/ISP and server load at certain times.
###
### A better/simpler solution would be to build a Bcc header field using the
### while loop, then only send ONE email to 1000's of email address' via the
### Bcc
### field, just like you would from Outlook.
###
### BUT, your host may impose restrictions on how many emails you can send in
### one Bcc... my host has a limit of 100.
###
### So, I tend to send a few emails of 50-ish people per email to my list,
### balancing the two above issues.
###
###
### There are also some simple/complex classes on phpclasses.org (esp the one
### by
### manuel lemmos) which can overcome both these problems, with various
### methods.
###
### I haven't used them yet, basically because I don't see the need yet,
### given
### my small lists.
###
###
### Justin
###
###
###
###
###
###
###
###
###
### on 20/01/03 3:21 PM, Tim Thorburn (immortal
nwconx.net) wrote:
###
### > Hi,
### >
### > I'm working on a mailing solution for a client. His site collects
### email
### > address from a 'Send this site to a friend' page (user enters their
### email
### > address and up to 10 other addresses - a message is then sent to the 10
### > addresses from the users own email address). The addresses are then
### stored
### > in a MySQL database - a column for the users email address, and then a
### > column each for the additional 10 addresses.
### >
### > Now the client would like to have the ability to send an email to all
### > addresses collected at once - to inform the addresses of a sale, etc.
### I'm
### > guessing for this to be done, I'd have to select all the DISTINCT email
### > addresses from the 11 columns (users email, and the 10 addresses), then
### use
### > a loop to send the mail out.
### >
### > I had planned on using PHP's mail() function - does anyone know of any
### > limitations imposed by this method? Normally, I'd contact the ISP and
### ask
### > them directly, however it's been several weeks since they've answered
### the
### > phones.
### >
### > Does anyone have any other/better options that I should pursue? This
### will
### > be my first mass mailing typed job so I'm not really sure where to begin
### or
### > if I'm on the right path at all.
### >
### > Thanks
### > -Tim
### >
### >
###
###
### --
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
###
###
----- End forwarded message -----
attached mail follows:
I had an idea myself to do this. But I've held off because I want to do something rather robust but still flexible.
I was going to use a database table.. with the fields.. to.. from.. subject.. body.. etc I was then going to have a cron task that ran every so often grabbing the records 1000-2000 at a time and sending them... if the script timed out the queue would still be there next time it ran.
Would this be a good solution for a heavy amount of emails? The benefit I guess is I can use any language I like to read the database and send the emails but still queue it up with php or any other language. I could even add a date time field to send emails at a certain time as well.
I think it would also free the user up faster as the records could be added to the database with "Insert delay". The series of inserts would be done and the user can forget about it.
A simple admin page with a Count query could monitor the queues progress.
Am I on the right track? any ideas additions?
Cheers
Brendon
-----Original Message-----
From: rw
xend.net [mailto:rw
xend.net]
Sent: Monday, January 20, 2003 3:09 PM
To: php-general
lists.php.net
Subject: Fwd: Re: [PHP] Mass Mailing with PHP & MySQL
----- Forwarded message from rw
xend.net -----
Date: Sun, 19 Jan 2003 22:07:34 -0700
From: rw
xend.net
Reply-To: rw
xend.net
Subject: Re: [PHP] Mass Mailing with PHP & MySQL
To: Justin French <justin
indent.com.au>
Is Peter McNulty out there anywhere?
Don't have a lot of experience with mailing scripts, but I use the one found at codingclick.com
Anyone else?
RW
Quoting Justin French <justin
indent.com.au>:
### A while() loop will, at some point, break. this is because the script
### will
### timeout on the server before you send to any large lists... when I say
### large, this could be 100 address', or could be 10,000 -- it all depends
### on
### your server/ISP and server load at certain times.
###
### A better/simpler solution would be to build a Bcc header field using the
### while loop, then only send ONE email to 1000's of email address' via the
### Bcc
### field, just like you would from Outlook.
###
### BUT, your host may impose restrictions on how many emails you can send
in
### one Bcc... my host has a limit of 100.
###
### So, I tend to send a few emails of 50-ish people per email to my list,
### balancing the two above issues.
###
###
### There are also some simple/complex classes on phpclasses.org (esp the
one
### by
### manuel lemmos) which can overcome both these problems, with various
### methods.
###
### I haven't used them yet, basically because I don't see the need yet,
### given
### my small lists.
###
###
### Justin
###
###
###
###
###
###
###
###
###
### on 20/01/03 3:21 PM, Tim Thorburn (immortal
nwconx.net) wrote:
###
### > Hi,
### >
### > I'm working on a mailing solution for a client. His site collects
### email
### > address from a 'Send this site to a friend' page (user enters their
### email
### > address and up to 10 other addresses - a message is then sent to the
10
### > addresses from the users own email address). The addresses are then
### stored
### > in a MySQL database - a column for the users email address, and then a
### > column each for the additional 10 addresses.
### >
### > Now the client would like to have the ability to send an email to all
### > addresses collected at once - to inform the addresses of a sale, etc.
### I'm
### > guessing for this to be done, I'd have to select all the DISTINCT
email
### > addresses from the 11 columns (users email, and the 10 addresses),
then
### use
### > a loop to send the mail out.
### >
### > I had planned on using PHP's mail() function - does anyone know of any
### > limitations imposed by this method? Normally, I'd contact the ISP and
### ask
### > them directly, however it's been several weeks since they've answered
### the
### > phones.
### >
### > Does anyone have any other/better options that I should pursue? This
### will
### > be my first mass mailing typed job so I'm not really sure where to
begin
### or
### > if I'm on the right path at all.
### >
### > Thanks
### > -Tim
### >
### >
###
###
### --
### PHP General Mailing List (http://www.php.net/)
### To unsubscribe, visit: http://www.php.net/unsub.php
###
###
----- End forwarded message -----
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
I don't think you can load a different ini based on virtual host. However, you can override most php.ini values in either the httpd.conf or in a .htaccess file. I'm running about 10 vhosts on one box, all with the same IP, and I just use .htaccess, ie...
php_value include_path ".:/webserver/vhosts/beta/include"
to set the include path for my "beta" webserver. Just put the .htaccess file in the document root for that particular vhost.
Jean-Christian Imbeault wrote: > On my web server (Apache) I have two sites and I would like each site to > use a different php.ini. > > What is the correct way for me to have each site use it's own php.ini > file? I figure it's a setting in the apache conf file but I can't figure > out which ... > > Thanks, > > Jc > >
-- By-Tor.com It's all about the Rush http://www.by-tor.com
attached mail follows:
Thanks to everyone for the suggestions. I finally got what I wanted by doing it a <Directory> directive in the httpd.conf file.
Thanks again!
Jc
attached mail follows:
It seems you have register globals set to off, thus when you have variables $price and $qty they are just fresh variables, you might try $HTTP_POST_VARS['price'] and $HTTP_POST_VARS['qty'] (don't forget the single quote).
"Cesar Aracena" <icaam
icaam.com.ar> wrote in message
news:000001c2bfeb$cecbd5c0$7a00a8c0
NOTEBOOK...
Hi all,
I guess this problem might sound childish for most of you, but I'm having it right now. I get two numbers from a FORM, one price and one quantity and I need to make a multiplication with them in order to store the total amount also as a double expression... I'm trying with:
$totalprice = $price * $qty;
but when I echo the, it gives me just plain old 0 (zero). Any suggestions?
Thanks in advance,
Cesar L. Aracena
icaam
icaam.com.ar
caracena
infovia.com.ar
(0299) 156-356688
Neuquén (8300) Capital
Argentina
attached mail follows:
hey does anyone have a good login script that i can i can go buy on a tutorial sake. and also how to add the info correctly into a mysql database. Im kinda of a noobie so bare with me please. the books i have are not being very helpfull on this matter. you can see my username and password login page here. any help would be greatly appreciated. thanks Karl James http://www.ultimatefootballleague.com/index.htm under construction
attached mail follows:
Try this article - code sample available in the code library as well. http://www.phpbuilder.com/columns/tim20000505.php3
Also a 6 part series on www.devarticles.com (5 are done) Here's part five - you can find the rest :) http://www.devarticles.com/art/1/323
zend.com probably has a good article on this as well.
olinux
--- Karl James <karl.james
verizon.net> wrote:
> hey does anyone have a good login script that i can
> i can go buy
> on a tutorial sake. and also how to add the info
> correctly into a
> mysql database.
> Im kinda of a noobie so bare with me please.
>
> the books i have are not being very helpfull on this
> matter.
>
> you can see my username and password login page
> here.
> any help would be greatly appreciated.
>
> thanks
> Karl James
>
> http://www.ultimatefootballleague.com/index.htm
> under construction
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
attached mail follows:
Hey,
Anybody have a php-based guestbook that they like and can be freely downloaded? Don't need anything really fancy, just for a personal website. Easy-to-use, and not hard to integrate into the site would be bonuses (mysql not a problem).
I've looked around, and there's a bunch out there - I'm just looking for recommendations of what people like.
Thanks, Dave
attached mail follows:
dear all,
please, any body who has experienced with jpgraph, tell me how to install this library.
because I want to use this library to create bar chart as dynamic image.
I'm using phpdev5 in my win 98.
thank you in advance
Rizki Salamun http://www.salamun.net
attached mail follows:
hello friends.
I have a MYSql database and also a php application on the web. I need to generate formatted reports from the database - something like a report card with table, marks, aggregate etc. - Something like Crystal Reports for MS Visual Basic. Can this be done with PHP or are there any tools available to do this?
Thanks Denis
attached mail follows:
i used swig to convert C++ module into a .so file. but when i use .so file in a php4 script i get following error :-
Warning: Unable to load dynamic library '/usr/lib/php4/php_kcvsClient.so' - /usr/lib/php4/php_kcvsClient.so: undefined symbol: import__FPcN20 in /var/www.unitedkalinga.com/patro/cvs_swig/kcvsClient.php on line 19
Fatal error: Call to undefined function: checkout() in /var/www.unitedkalinga.com/patro/cvs_swig/runme_.php4 on line 5
Regards Trilochan
attached mail follows:
use ldd /usr/lib/php4/php_kcvsClient.so to find out which library is missing. libsometh.so.6 => /usr/lib/libsometh.so.6 (0x40020000) ^^ you need to get something like this after every library listed
Trilochan wrote:
>i used swig to convert C++ module into a .so file. but when i use .so file >in a php4 script i get following error :- > >Warning: Unable to load dynamic library '/usr/lib/php4/php_kcvsClient.so' - >/usr/lib/php4/php_kcvsClient.so: undefined symbol: import__FPcN20 in >/var/www.unitedkalinga.com/patro/cvs_swig/kcvsClient.php on line 19 > >Fatal error: Call to undefined function: checkout() in >/var/www.unitedkalinga.com/patro/cvs_swig/runme_.php4 on line 5 > > >Regards >Trilochan > > > > >
attached mail follows:
I have an RSS parser that uses PHP's expat XML functions. Recently PHP started complaining about "Call-time pass-by-reference has been deprecated" whenever I used the idiom:
xml_set_object( $this->parser, &$this );
Does that mean the function xml_set_object has been deprecated as well? Is there another preferred way to call xml_set_object? Is there another preferred way to wrap XML parsing inside an object?
Thanks Kellan
ps. the full text of the warning is:
Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/kellan/projs/magpierss/rss_parse.inc on line 124
attached mail follows:
On Monday 20 January 2003 16:43, kellan wrote: > I have an RSS parser that uses PHP's expat XML functions. Recently PHP > started complaining about "Call-time pass-by-reference has been > deprecated" whenever I used the idiom: > > xml_set_object( $this->parser, &$this );
Assuming that xml_set_object() has been defined correctly then to get rid of that error/warning message simply use:
xml_set_object( $this->parser, $this );
-- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development */* With all the fancy scientists in the world, why can't they just once build a nuclear balm? */
attached mail follows:
Hello:
My name is Charles Cedeno. I am now focusing in one online
opportunity.I have tried several of these opportunities full of hype
promising us thousands of dollars every month. I would get all excited and
run to my family and friends with another "Great Money Maker ". It is a
sad fact that many people who are in need of additional income, are being
victimized by these fly by night scam artists.
As a result of trying all these opportunities, I finally found the
company which is true to their words. Not full of hype, but consistently
send me the monthly check. They have given me the best compensation plan
with their high % commission. I didn't have to perform some juggling act
to maintain some 60 to 40% balance in my legs. It is not a pyramid, so
there are no legs. It is not one of those binary compensation plan
failures either. Everyone earns commissions here. They are providing a
real service not the one that simply transfers wealth from the new signups
to the people at the top.
When you join, you will have a team of up line sponsors who will help
you succeed every step of the way. Instead of being left alone, you will
be guided step by step by real people, not those auto responders. Only you
can make your own success together with the help of your sponsors. If you
have 2 to 3 hours a day, you will be able to earn a full income in a few
months. And there is absolutely no limit as to how much you can earn. It
is designed to gain momentum after some time. But I prefer to avoid such
statements as "You will get rich". I read it everywhere and will not allow
myself to sound like them. I experienced it personally, you can be
comfortable.
To get your FREE membership ID, send email to charlescedeno
yahoo.com and
put "REGISTER ME FOR FREE" in the subject and your full name in the body
of your email. Also include the statement below in the body of your email.
"By submitting a request for a FREE DHS Club membership I agree to receive
emails from DHS Club for both their Consumer and Business Opportunities."
I will then register you into the system. You will receive a confirmation
email asking you to verify. Open it up and activate your free membership
immediately. Then set back and watch as your new business explodes.
Best regards,
Charles Cedeno
Note: You don't need to request for removal. This is a one-time email. Your email address will be automatically de-activated in our list if you don't respond to this mail.
attached mail follows:
Hi,
I've created a password protected area on the site I'm working on using PHP Sessions - I've done this several times before without any difficulty. This time, I've copied my old code - made the necessary changes for login/passwd/database names, yet the sessions don't appear to be working.
I've been comparing the PHP settings on each server - the server that works is using 4.2.2, the one that does not is using 4.1.2. Other than that, the only difference is that on the server that works I've changed the path to the PHP include dir (from the server set default into my account).
Can anyone offer any suggestions?
attached mail follows:
Tim Thorburn wrote: > Hi, > > I've created a password protected area on the site I'm working on using > PHP Sessions - I've done this several times before without any > difficulty. This time, I've copied my old code - made the necessary > changes for login/passwd/database names, yet the sessions don't appear > to be working. > > I've been comparing the PHP settings on each server - the server that > works is using 4.2.2, the one that does not is using 4.1.2. Other than > that, the only difference is that on the server that works I've changed > the path to the PHP include dir (from the server set default into my > account). > > Can anyone offer any suggestions? > > >
This is by far the most FAQ on this list...
what changed http://www.php.net/manual/en/language.variables.predefined.php
why it changed http://www.php.net/manual/en/security.registerglobals.php
In PHP 4.2.0 and later, the default value for the PHP directive register_globals is off. This is a major change in PHP. Having register_globals off affects the set of predefined variables available in the global scope. For example, to get DOCUMENT_ROOT you'll use $_SERVER['DOCUMENT_ROOT'] instead of $DOCUMENT_ROOT, or $_GET['id'] from the URL http://www.example.com/test.php?id=3 instead of $id, or $_ENV['HOME'] instead of $HOME.
For related information on this change, read the configuration entry for register_globals, the security chapter on Using Register Globals , as well as the PHP 4.1.0 and 4.2.0 Release Announcements.
Using the available PHP Reserved Predefined Variables, like the superglobal arrays, is preferred.
--Sean
attached mail follows:
Hello,
when I try to open a SSL-connection via ssl:// with fsockopen () on Windows XP and PHP 4.3.0, I get the following error message:
"no SSL support in this build..."
I tried to add "extension=php_openssl.dll" in my php.ini and copied libeay32.dll into the SYSTEM32-directory, but that doesn't help.
Is it possible to use SSL-support in the standard windows binary distribution or do I have to build PHP from the source by myself?
Thanks in advance, alex.
attached mail follows:
Hello!
Is there a way to get to know from which country a user is calling the webside with my php-script?
Martin
attached mail follows:
Yes and no... you can use whois information about the IP class or enlist the services from a GEO firm that provides database information that includes information down to and including Cities etc.
The accuracy of this type of service in some areas of the world is not exactly accurate but usable.
Look for PHP whois classes but remember that most registries restrict the number of requests these days.
Timothy Hitchens (HiTCHO)
Open Source Consulting
e-mail: tim
hitcho.com.au
> -----Original Message-----
> From: Martin Thoma [mailto:martin
radiok2r.de]
> Sent: Monday, 20 January 2003 8:06 PM
> To: php-general
lists.php.net
> Subject: [PHP] Which country?
>
>
> Hello!
>
> Is there a way to get to know from which country a user is
> calling the webside with my php-script?
>
> Martin
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
> Is there a way to get to know from which country a user is > calling the webside with my php-script?
Probably only if you're going to ask them to tell you what country they are in.
You can look at the resolved domain that they are coming from and it's country code - this might be indicative or it might not be (particularly as .com domains are used by many people not in the US, for example).
You can look at the browser's IP address but some companies have IP addresses that they use world-wide and some companies route all traffic through central proxies that may or may not indicate the country of origin of the actual browser.
The only thing left is asking the user. Anything else cannot be considered reliable.
CYA, Dave
attached mail follows:
when building apache 1.3.27 + php 4.3.0 i found out several errors, depending of what options i added with configure.
these are my configure commands
PHP: ./configure --with-apache=../apache_1.3.27 --with-mysql
APACHE: ./configure --with-layout=Apache --prefix=/usr/local/install/apache/ --activate-modules/php4/libmodphp4.a
compiling & installing php without errors, then i configure apache correctly, but when i try to "make" apache i find out:
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DUSE_HSREGEX -DNO_DL_NEEDED `../../apaci` mod_php4.c mod_php4.c:22: php_apache_http.h: No such file or directory make[4]: *** [mod_php4.o] Error 1 make[3]: *** [all] Error 1 make[2]: *** [subdirs] Error 1 make[2]: Leaving directory `/usr/local/src/apache_1.3.27/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/usr/local/src/apache_1.3.27' make: *** [build] Error 2
any int? is it a bug?
thanks
Stain
-- "If there is any, error is human"
attached mail follows:
sorry, i discovered in php INSTALL file my error was related to --activate-module parameter. (and configure command i posted was wrong!)
i apologize.
bye
Il 11:43, lunedì 20 gennaio 2003, Stain ha scritto: > when building apache 1.3.27 + php 4.3.0 i found out several errors, > depending of what options i added with configure. > > these are my configure commands > > PHP: > ./configure --with-apache=../apache_1.3.27 --with-mysql > > APACHE: > ./configure --with-layout=Apache --prefix=/usr/local/install/apache/ > --activate-modules/php4/libmodphp4.a > > compiling & installing php without errors, then i configure apache > correctly, but when i try to "make" apache i find out: > > gcc -c -I../../os/unix -I../../include -DLINUX=22 -DUSE_HSREGEX > -DNO_DL_NEEDED `../../apaci` mod_php4.c > mod_php4.c:22: php_apache_http.h: No such file or directory > make[4]: *** [mod_php4.o] Error 1 > make[3]: *** [all] Error 1 > make[2]: *** [subdirs] Error 1 > make[2]: Leaving directory `/usr/local/src/apache_1.3.27/src' > make[1]: *** [build-std] Error 2 > make[1]: Leaving directory `/usr/local/src/apache_1.3.27' > make: *** [build] Error 2 > > any int? is it a bug? > > thanks > > Stain
-- "If there is any, error is human"
attached mail follows:
I have never heard of "out of range" error, but is it really an error or just a notice? If it is a notice, adjust error reporting to not display notices
andre.lagadec
education.gouv.fr wrote:
>Hello, > >I try to move an Web application in Php-4.0.3 to php-4.2.3, and some >programs >don't work well on some pages. I make search in the code, and after >tests, I find that >the following code doesn't work in php-4.2.3, but works in php-4.0.3pl1 >------------------------------------------------------------------------------------ > ><html> ><body> ><form> ><? >$i = 0; >while ($i<=3) { > $selected = ""; > $selectTab[$i] = "<option value='".$i."' ".$selected."> bla bla ></option>\n"; > $i++; > } >printf("<select name='filiere' multiple size='%d' class='textNoir'>\n", >($i-1) ); >$j = 0; >while ( $j <= $i ) { > printf($selectTab[$j]); > $j++; > } >printf("</select>"); >?> ></body> ></html> >------------------------------------------------------------------------------------ > >It's because there is an error in the code : this instruction is wrong >while ( $j <= $i ), >there is an "out of range" in the array selectTab[] when $j=$i=4 >the good instruction is while ( $j < $i ) > >Is there something changed in the gestion of the error "out of range" in >an array >betwen php-4.0.3pl1 and php-4.2.4 ? > >Thanks for your help ? > >AL > > > >
attached mail follows:
Simply call umask everytime
rw
xend.net wrote:
>Hello all! > >I have a number of scripts that upload 5 files at a time each. >The first one creates the dir using umask(000)and mkdir($dir,0777) >which gives the first five files perms 777, which is what I want. > >I have the subsequent scripts check if the dir exists and if not does the same >thing with umask and mkdir. The problem is the uploaded files in scripts 2 >through 5 do not inherit the perms 777. > >The script: > >if (!is_dir("/mnt/ls6/17/169/00000000/htdocs/2003/uploads/$mls")){ >umask(000); >mkdir($dir,0777)or die("couldn't create directory"); >} >$path1=$dir . "/1.jpg"; > move_uploaded_file( $upload1, $path1)or die("couldn't upload photo"); > $sql = (" UPDATE gallery SET img1 = '1' WHERE mls = '$mls';"); > >Is there a parameter I can include in move_uploaded_file() to set the perms on >the remaining files? > >Any help is greatly appreciated. > >RW > > >
attached mail follows:
Hi
I'm looking for a Opendialog function in php, With a thumb function where I can see examples of the selected photes? Does anyone Know that??
Greetz Steven
attached mail follows:
You can also use your custom save handler and store sessions in sql, and count it there
Justin French wrote:
>If you're on a dedicated server (no other sites on the server), you could
>just count the session files in /tmp.
>
>Otherwise, the general consensus seems to be that you need to decide how
>long a user is "active" for (say a minute, or 3, or an hour?), and save (eg)
>the SID and timestamp in a file or MySQL table.
>
>In theory, you then count the number of sessions that were created or
>reactivated (restamped) within your definition of "active" time (eg 3 mins).
>
>
>This has been discussed waaay too many time on the list... do a search on
>the archives for 'active users', perhaps also try a search with the word
>"ASP" too :)
>
>
>Justin
>
>
>on 19/01/03 10:27 PM, Jeremías Grunge (angelcmateos
hotmail.com) wrote:
>
>
>
>>Sorry I'm novice.
>>
>>There is a way to know how many sessions are active and to get variables or
>>the id of them?
>>
>>Thanks
>>
>>
>>
>>
>
>
>
>
attached mail follows:
Thanks to everybody
I decided to use the way of store the sessions on database and stamped them
Another question
Do you know a way to close a session when client closes the explorer? Perhaps with a client script?
"Marek Kilimajer" <kilimajer
webglobe.sk> escribió en el mensaje
news:3E2BE7DD.6090505
webglobe.sk...
> You can also use your custom save handler and store sessions in sql, and
> count it there
>
> Justin French wrote:
>
> >If you're on a dedicated server (no other sites on the server), you could
> >just count the session files in /tmp.
> >
> >Otherwise, the general consensus seems to be that you need to decide how
> >long a user is "active" for (say a minute, or 3, or an hour?), and save
(eg)
> >the SID and timestamp in a file or MySQL table.
> >
> >In theory, you then count the number of sessions that were created or
> >reactivated (restamped) within your definition of "active" time (eg 3
mins).
> >
> >
> >This has been discussed waaay too many time on the list... do a search on
> >the archives for 'active users', perhaps also try a search with the word
> >"ASP" too :)
> >
> >
> >Justin
> >
> >
> >on 19/01/03 10:27 PM, Jeremías Grunge (angelcmateos
hotmail.com) wrote:
> >
> >
> >
> >>Sorry I'm novice.
> >>
> >>There is a way to know how many sessions are active and to get variables
or
> >>the id of them?
> >>
> >>Thanks
> >>
> >>
> >>
> >>
> >
> >
> >
> >
>
attached mail follows:
By setting cookie_lifetime to 0 (this is default), but the user has to close all browser windows
Jeremías Grunge wrote:
>Thanks to everybody
>
>I decided to use the way of store the sessions on database and stamped them
>
>Another question
>
>Do you know a way to close a session when client closes the explorer?
>Perhaps with a client script?
>
>"Marek Kilimajer" <kilimajer
webglobe.sk> escribió en el mensaje
>news:3E2BE7DD.6090505
webglobe.sk...
>
>
>>You can also use your custom save handler and store sessions in sql, and
>>count it there
>>
>>Justin French wrote:
>>
>>
>>
>>>If you're on a dedicated server (no other sites on the server), you could
>>>just count the session files in /tmp.
>>>
>>>Otherwise, the general consensus seems to be that you need to decide how
>>>long a user is "active" for (say a minute, or 3, or an hour?), and save
>>>
>>>
>(eg)
>
>
>>>the SID and timestamp in a file or MySQL table.
>>>
>>>In theory, you then count the number of sessions that were created or
>>>reactivated (restamped) within your definition of "active" time (eg 3
>>>
>>>
>mins).
>
>
>>>This has been discussed waaay too many time on the list... do a search on
>>>the archives for 'active users', perhaps also try a search with the word
>>>"ASP" too :)
>>>
>>>
>>>Justin
>>>
>>>
>>>on 19/01/03 10:27 PM, Jeremías Grunge (angelcmateos
hotmail.com) wrote:
>>>
>>>
>>>
>>>
>>>
>>>>Sorry I'm novice.
>>>>
>>>>There is a way to know how many sessions are active and to get variables
>>>>
>>>>
>or
>
>
>>>>the id of them?
>>>>
>>>>Thanks
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>
>
>
>
>
attached mail follows:
I'm trying to create web page based on a PDF Form with the action assigned to a php script to parse out the vars. It seems to be working because I can parse and write the vars to a database but it seems that a file is getting passed back to the client containing the output of the php script that was called. If I write in a header("Location") command and route the client to another page their browser opens a file locally on their computer that contains the source code of the page called. How do I just get the results of the form?
TIA,
Ed
attached mail follows:
Hello,
I am new to PHP scripting, but I have read some introdutory material, to know at least the basics of the basics.
But my question here is not about the thing I read, that PHP is used for. I would like to know if I can use PHP to make scripts at home (not on my server, not for woprking inside a homepage).
Example: I make PHP access a certain homepage, get the source, process it in a way I might fancy, or save it, etc., etc., ...
Is that possible with PHP? What should I do then, can anyone give some headlines?
I have seen this done with Perl. Would anyone recommend Perl instead PHP to do this? Or would it just depend on the scripting language you are used to? If someone would kindly do a "PHP X Perl" would be nice.(I think for all the list too :)
Kind regards to all,
-=-=-=-= =Dedeco- -=-=-=-=
-- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signupMeet Singles http://corp.mail.com/lavalife
attached mail follows:
Well, it's quite easy: Just write a php-script and start it with php myscript.php. Thats all.
You could fetch a web-page with fopen: $fp = fopen("http://www.mydomain.com/", "r"); $line = ""; while(!feof($fp)) { $line .= fgets($fp, 4096); } fclose($fp); print $line;
If you are new in programming, I think PHP is easyier to learn than Perl.
Martin
attached mail follows:
Hi,
Can anyone give me any pointers for creating a database abstraction class ? I know there are a few out there already, but I'm doing this purely as an OO learning exercise. I'm only at the paper design right now and I've only got this far;
Properties:
Persistent - Persistent connection ? (Boolean) User - Username (String) Pass - Password (String) Host - Database Server (String) Port - Database Port (3306 default for MySQL Query - Query to run (String) Result - Query Result (String) Error - Error returned (if any) NumRows - Num of rows returned from query (int) NumCols - Num od columns returned from query (int) RowsPerPage - Number of rows per page PagingOn - Return results in page ? (Boolean) CurrentPage - Current page number (int)
Methods:
Connect - Connect to db Close - Close connection SelectDB - Select database RunQuery - Execute query OutputTable - Output query results in table OutputPage - Outputs page of query results (calls OutputTable) FetchRow - Returns single row from query CreateLink - Creates HTML <A> tags for drill down queries
Are there any other properties/methods that would be useful ? Links/advice welcome (read "needed")
Cheers,
Nick
This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox.
attached mail follows:
this is pretty simple but my brain's not working
I get the numerical value of a week in the year thus
e.g $today = date("W");
gives 4 .so this is the 4th week of the year. I want to get the month based on this number. e.g 4 should be january. 7 will be feb etc..
i'm not bothered about being too exact ,where some weeks are in 2 separate months, the earlier month should be displayed.and this is just for 2003.
thanks, adrian
attached mail follows:
Hi Adria,
why not just using $month=date("m")?
Martin
attached mail follows:
Why not just get the month with another call to date("m") as well? Then call date("W) to get the
week, if that's required?
----- Original Message -----
From: "adrian murphy
2020tourism.com" <adrian.murphy
2020tourism.com>
To: <php-general
lists.php.net>
Sent: Monday, January 20, 2003 8:42 AM
Subject: [PHP] simple date question
this is pretty simple but my brain's not working
I get the numerical value of a week in the year thus
e.g $today = date("W");
gives 4 .so this is the 4th week of the year. I want to get the month based on this number. e.g 4 should be january. 7 will be feb etc..
i'm not bothered about being too exact ,where some weeks are in 2 separate months, the earlier month should be displayed.and this is just for 2003.
thanks, adrian
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hello!
You can easily get an webpage with: $fp = fopen("http://www.mydomain.com/", "r"); if ($fp) exit; while(!feof($fp)) { $line .= fgets($fp, 4096); } fclose($fp); print $line;
But this doesn't work with https (SSL). How can I get an https-page?
Martin
attached mail follows:
--- Martin Thoma <martin
radiok2r.de> wrote:
> How can I get an https-page?
I have never tested this myself, but I found this page in the manual:
http://www.php.net/manual/en/function.fsockopen.php
It has this to say:
"As of PHP 4.3.0, if you have compiled in OpenSSL support, you may prefix the hostname with either 'ssl://' or 'tls://' to use an SSL or TLS client connection over TCP/IP to connect to the remote host."
I'm sure you could use the openssl functions, but this sounds much easier.
Chris
attached mail follows:
I would just read up on the CURL functions and either use them or get CURL and use it externally.
"Chris Shiflett" <shiflett
php.net> wrote in message
news:20030120153001.50858.qmail
web14306.mail.yahoo.com...
> --- Martin Thoma <martin
radiok2r.de> wrote:
> > How can I get an https-page?
>
> I have never tested this myself, but I found this page in
> the manual:
>
> http://www.php.net/manual/en/function.fsockopen.php
>
> It has this to say:
>
> "As of PHP 4.3.0, if you have compiled in OpenSSL support,
> you may prefix the hostname with either 'ssl://' or
> 'tls://' to use an SSL or TLS client connection over TCP/IP
> to connect to the remote host."
>
> I'm sure you could use the openssl functions, but this
> sounds much easier.
>
> Chris
attached mail follows:
Hi,
Can PHP run as a different user for different sites on the same server. The reason I ask is a client that has a PHP web site on our RAQ4 has had a PHP application written by someone else and wants us to upload it. Can PHP be configured to allow certain web sites access to files and directories within their web root only?
TIA
Phil Ewington
Technical Director
----------------------------
43 PLC
35 Broad Street, Wokingham
Berkshire RG40 1AU
T: +44 (0)118 978 9500
F: +44 (0)118 978 4994
E: phil.ewington
43plc.com
W: http://www.43plc.com
attached mail follows:
--- Phil Ewington <phil
n-igma.net> wrote:
> Can PHP be configured to allow certain web sites
> access to files and directories within their web
> root only?
I would suggest looking into safe mode. It sounds like it may work for you:
http://www.php.net/manual/en/features.safe-mode.php
Chris
attached mail follows:
> -----Original Message-----
> From: Cal Evans [mailto:cal
calevans.com]
> Sent: 18 January 2003 14:41
>
> use [] in your select box name. When it comes back in the
> $_POST array you
> will have an array of options. It breaks HTML standard
No, it does not break HTML standards -- that is a PHP urban myth (which, to my chagrin, I helped to propagate before a wiser head sent me to read said standards in minute detail). It does not even break XHTML standards.
Believe me -- I've interrogated the damn standards to within an inch of their lives, and they nonetheless insist that [] are legal characters in form element name= attributes, and form element name= attributes are *not* deprecated.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford
lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
I just changed my server to SSL, everything worked before that. now if I have a form with an input box (named "searchstring" for example) with a value of "TEST", when that form is posted (submitted) I get the following:
foreach($_POST as $key => $value) { echo "[POST]Key: '$key'; Value: '$value'<br>\n"; }
will print: Key:'searchstring' ; Value: 'TESTsearchstring=TEST'
can anyone tell me where the second "searchstring=TEST" is coming from? I have tried register globals on and off.
kbrill
multi.com
attached mail follows:
--- Kenneth Brill <kbrill
multi.com> wrote:
> can anyone tell me where the second
> "searchstring=TEST" is coming from? I
> have tried register globals on and off.
Can you also show us the HTML for your form on the previous page? The simplest test case that produces this problem would be best.
Chris
attached mail follows:
I will try to shortly. The server in question is password protected and has lot of information I don;t need hacked into right now. I'll set up a limited short term account and post everything then.
On another note, I have found that if I include (and use) the submit button everything works perfectly, HOWEVER if I just enter data and hit return then it messes up. That make no sence to me but maybe someone out there can put it together.
thanks
"Chris Shiflett" <shiflett
php.net> wrote in message
news:20030120160125.30321.qmail
web14305.mail.yahoo.com...
> --- Kenneth Brill <kbrill
multi.com> wrote:
> > can anyone tell me where the second
> > "searchstring=TEST" is coming from? I
> > have tried register globals on and off.
>
> Can you also show us the HTML for your form on the previous
> page? The simplest test case that produces this problem
> would be best.
>
> Chris
attached mail follows:
--- Kenneth Brill <kbrill
multi.com> wrote:
> I will try to shortly. The server in question is
> password protected and has lot of information I
> don;t need hacked into right now. I'll set up a
> limited short term account and post everything then.
So you do not have access to the server that has the code you are trying to debug? That seems like a bigger problem.
If you can at least test this with a browser, you can use it to view the source. This will reveal the HTML, and you can just show us the relevant parts.
Of course, if we notice the problem, it sounds like it is useless anyway, since you cannot access the server to fix anything. Unless I am missing something...
Chris
>
> On another note, I have found that if I include (and use)
> the submit button
> everything works perfectly, HOWEVER if I just enter data
> and hit return then
> it messes up. That make no sence to me but maybe someone
> out there can put
> it together.
>
> thanks
>
> "Chris Shiflett" <shiflett
php.net> wrote in message
>
news:20030120160125.30321.qmail
web14305.mail.yahoo.com...
> > --- Kenneth Brill <kbrill
multi.com> wrote:
> > > can anyone tell me where the second
> > > "searchstring=TEST" is coming from? I
> > > have tried register globals on and off.
> >
> > Can you also show us the HTML for your form on the
> previous
> > page? The simplest test case that produces this problem
> > would be best.
> >
> > Chris
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]