|
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 4 Jul 2003 04:40:18 -0000 Issue 2155
php-general-digest-help
lists.php.net
Date: Thu Jul 03 2003 - 23:40:18 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 4 Jul 2003 04:40:18 -0000 Issue 2155
Topics (messages 153902 through 153950):
Re: Connect Active Directory using LDAP... please help :)
153902 by: Vince C
imap_search question
153903 by: greg brant
PHP form builder?
153904 by: J J
Please Help.. cgi.force_redirect does not work
153905 by: Scott Fletcher
153920 by: Scott Fletcher
Re: PHP and graphics
153906 by: SED
Re: web based mail client
153907 by: Anthony
153915 by: greg brant
Re: Get Rid of this Crook
153908 by: Jeff Harris
153950 by: erythros
Red Hat 9, Apache 2, and PHP
153909 by: Jeff Schwartz
153911 by: Sancar Saran
153912 by: Ford, Mike [LSS]
153913 by: justin gruenberg
153923 by: Joseph Szobody
153925 by: ed.homes2see.com
153930 by: Mark McCulligh
153931 by: ed.homes2see.com
153932 by: Greg Donald
153937 by: Todd Cary
153938 by: Brad Pauly
153941 by: Brad Pauly
153943 by: Shena Delian O'Brien
153945 by: Mark Charette
Re: Break, Exit, Die, Kill, Maime and Stab
153910 by: Chris Hayes
Uploading files time out every so often
153914 by: Ivo Pletikosic
DOMXML usage
153916 by: Matt Grimm
153947 by: Tom Rogers
Sending a PDF page
153917 by: Todd Cary
153921 by: Brad Pauly
153922 by: Ray Hunter
153924 by: Suhas Pharkute
how do i work with an "object"
153918 by: greg brant
153919 by: Brad Pauly
Re: Need a function to calculate time difference.
153926 by: Jack Sasportas
PDF on the fly ?
153927 by: [-^-!-%-
153946 by: Suhas Pharkute
Re: PDF on the fly:::Addition
153928 by: [-^-!-%-
153929 by: Shena Delian O'Brien
Re: PHP to Excel Export
153933 by: Chris Hayes
153940 by: daniel.electroteque.org
CSR file
153934 by: Siddharth Hegde
Please Hit these links... (for testing purposes)
153935 by: Michael Smith
153936 by: Michael Smith
date() function and timestamps
153939 by: Garrick Linn
153942 by: Philip Olson
153944 by: Garrick Linn
Help with upload
153948 by: Webmaster
Extension to MIME type?
153949 by: Leif K-Brooks
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:
Hi Sven,
I have tried to put the my login username in that place. But it showed
"Invalid Credental". Since I am new to this AD and LDAP, would it be the
format of my username? Should I just put my login username, or should I put
the whole bunch of line such as "CN=my name, DN=xxxx" something like this? I
really confuse the login format of this and so does "objectClass" stuff for
filter. Could you give me an idea? Do you know any web site that talk about
this ? Thank you very much!
Vince
"Sven" <svenie
gmx.li> wrote in message
news:20030703104334.40515.qmail
pb1.pair.com...
> hi vince,
>
> Vince C wrote:
> > <?php
> > $ldaphost= "company.com";
> >
> > if(!($ldap = ldap_connect($ldaphost,389))){
> > die("ldap server cannot be reached");
> > } else {
> > $oudc = " dc=company, dc=com";
> > $dn2 = "";
> > $password = "";
>
> did you define your user and password? afaik win ad isn't searchable by
> anonymous.
> ciao SVEN
>
> > echo "<p>Connected and ready to bind...";
> > if (!($res =
ldap_bind($ldap, $dn2, $password))) {
> > print(ldap_error($ldap) . "<BR>");
> > die ("Could not bind the $dn2");
> > echo "<p>Couldn't bind ....";
> > } else {
> > echo "<p>Binded and Ready to search....";
> > echo "<br>LDAP = $ldap";
> > echo "<br>oudc = $oudc";
> >
> > //
> > $filter="(&(objectClass=user)(objectCategory=person)(|(sn=sorg)))";
> > $filter= "sn=*"; $sr=ldap_search($ldap,$oudc,$filter);
> > echo "<p>number of entries found: " . ldap_count_entries($ldap,
> > $sr) . "<p>";
> > echo "<br>filter = $filter";
> > echo "<br>sr=$sr";
> >
> > if (!$sr) {
> > die("<p>search failed\n");
> > } else {
> > echo "<p> Searched and ready for get entries.....";
> > $info= ldap_get_entries($ldap, $sr);
> >
> > for ($i=0; $i<$info["count"]; $i++) {
> > print ("<TR>");
> > print ("<TD width=15%>" . $info[$i]["cn"][0] . " " .
> > $info[$i]["sn"][0] . "</TD>");
> > print ("<TD width=85%>" . $info[$i]["mail"][0] . "</TD>");
> > print ("</TR>");
> > print "<br>In the display FOR loop";
> > }
> > echo "<br> After loop.....";
> > }
> > }
> > ldap_unbind($ldap);
> > echo "<p>LDAP unbinded....";
> > }
>
>
attached mail follows:
hi.
in the php manual
the entry for imap_search states it has 3 arguments
"imap_search ( resource imap_stream, string criteria, int options)"
i get the first 2, but whats the third.
at the end of the page it says
"Valid values for flags are SE_UID, which causes the returned array to
contain UIDs instead of messages sequence numbers. "
so should
imap_search ( $myStream, "ALL", SE_UID);
return an array of the UIDs of the emails?
because this is what i want.
i need to work with the UIDs not the mesage numbers
cheers folks
Greg Brant
attached mail follows:
I've seen survey tools before to build surveys
dynamically with PHP code, but I'm looking for
something a bit more simple that just allows you to
build HTML forms dynamically.
Something where I say I need 10 fields, some
checkboxes, a submit button and it then generates the
form on the fly.
Then that form could be submitted to a database, or
direct to email, etc.
Is there something like this built already in
PHP/Javascript?
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
attached mail follows:
Hi!
To make the long story short, we use IIS 5.0 with PHP 4.0.6 for a while.
Then we builted a new database server, SQL-2000 and point the website to the
new server. Then we notice the problem with the CGI error. So, we last
week downloaded the PHP 4.3.3 and update the IIS with the newer PHP version
and set the cgi.force_redirect to zero in php.ini. See example below
--snip--
; cgi.force_redirect is necessary to provide security running PHP as a CGI
under
; most web servers. Left undefined, PHP turns this on by default. You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
cgi.force_redirect = 0
--snip--
We still have problem with CGI error. The use of php function, header() is
what cause the error. Yes, the IIS and the website are reading the php.ini
correctly. I checked that out and it is verified.
So, what is the workaround to the CGI error??
Thanks,
Scott
attached mail follows:
Oddly, the CGI Error message is intermitted. It come on some of the time
and some of the other time doesn't. What is the problem here.....?
"Scott Fletcher" <scott
abcoa.com> wrote in message
news:20030703171839.92041.qmail
pb1.pair.com...
> Hi!
>
> To make the long story short, we use IIS 5.0 with PHP 4.0.6 for a
while.
> Then we builted a new database server, SQL-2000 and point the website to
the
> new server. Then we notice the problem with the CGI error. So, we last
> week downloaded the PHP 4.3.3 and update the IIS with the newer PHP
version
> and set the cgi.force_redirect to zero in php.ini. See example below
> --snip--
> ; cgi.force_redirect is necessary to provide security running PHP as a CGI
> under
> ; most web servers. Left undefined, PHP turns this on by default. You
can
> ; turn it off here AT YOUR OWN RISK
> ; **You CAN safely turn this off for IIS, in fact, you MUST.**
> cgi.force_redirect = 0
> --snip--
>
> We still have problem with CGI error. The use of php function, header()
is
> what cause the error. Yes, the IIS and the website are reading the
php.ini
> correctly. I checked that out and it is verified.
>
> So, what is the workaround to the CGI error??
>
> Thanks,
> Scott
>
>
attached mail follows:
Hello Aracena,
To answer your question: Yes, this is doable in PHP/MySQL but you need
to make the maps, database and functions by yourself.
However, I have not yet found any "all-ready-made" solution (without
paying huge $$$). If you will find solution, please inform us if
possible - even if you only find a algorithm.
Regards,
Sumarlidi Einar Dadason
SED DESIGN
_________________________________________
Email: sed
sed.is
Website: http://www.sed.is
-----Original Message-----
From: César Aracena [mailto:lists
icaam.com.ar]
Sent: 3. júlí 2003 13:57
To: php-general
lists.php.net
Subject: [PHP] PHP and graphics
Hi all,
I'm developing a new site where the visitors, among other things, will
be able to see a map of my country, choose a region then a city, in
order to see a complete map of that place. Another good thing would be
to let the user set the starting and destination points of a trip and
show him or her wich would be the best route to take, gas stations,
hotels, etc.
My question is: Is this possible using PHP and MySQL or do I need to use
also some other tool like Java or other?
Thanks in advanced,
-----------------------
Cesar Aracena
lists
icaam.com.ar
http://www.icaam.com.ar
Cel: +54.299.635-6688
Tel/Fax: +54.299.477-4532
Cipolletti, Rio Negro
R8324BEG
Argentina
---------------------------
Soluciones profesionales en
Internet y Comunicaciones
http://www.icaam.com.ar
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
In addition to using an elready developed web mail client. If you plan to
have a large number of users, you might want to go with some type of
completely managed packaged software. I was reading about Novell NetMail.
Check it out, even runs on Linux now too -->
http://www.novell.com/products/netmail/ Don't know how customiseable it is
or if you could use PHP to extend it, but its worth a look.
- Anthony
"Pete Morganic" <pete
daffodil.uk.com> wrote in message
news:20030703133934.28756.qmail
pb1.pair.com...
> There's loads of email clients here
>
>
http://www.hotscripts.com/PHP/Scripts_and_Programs/Email_Systems/Web-based_E
mail/index.html
>
> Greg Brant wrote:
> > hi, im the lead developer for a small online magazine / community
> >
> > we want to set up an e-mail service where our users can create their own
> > mail account similar to hotmail etc etc.
> >
> > i plan on using the imap_ functions and i was just wondering about the
> > potential security issues related to theses functions.
> >
> > any advice or tips would be appreciated.
> >
> > many thanks
> >
> > Greg Brant
> >
> >
>
attached mail follows:
yeah. the thing is. its a bit of a fudge.
we dont have our own news server. were just on a Ł150 pre year hosting
service
its somthing we want to do so the workaround is
you have one catch-all e-mail address
then your mail system lives within this.
so a user logs in to your e-mail frontend. not the actuall mail server.
then every user 'actualy logs in with the same username and pass but they
dont get to see that.
then the php filters only the emails addressed to them.
"Anthony" <atampone
attechcomputer.com> wrote in message
news:20030703172600.3057.qmail
pb1.pair.com...
> In addition to using an elready developed web mail client. If you plan to
> have a large number of users, you might want to go with some type of
> completely managed packaged software. I was reading about Novell NetMail.
> Check it out, even runs on Linux now too -->
> http://www.novell.com/products/netmail/ Don't know how customiseable it
is
> or if you could use PHP to extend it, but its worth a look.
>
> - Anthony
>
>
> "Pete Morganic" <pete
daffodil.uk.com> wrote in message
> news:20030703133934.28756.qmail
pb1.pair.com...
> > There's loads of email clients here
> >
> >
>
http://www.hotscripts.com/PHP/Scripts_and_Programs/Email_Systems/Web-based_E
> mail/index.html
> >
> > Greg Brant wrote:
> > > hi, im the lead developer for a small online magazine / community
> > >
> > > we want to set up an e-mail service where our users can create their
own
> > > mail account similar to hotmail etc etc.
> > >
> > > i plan on using the imap_ functions and i was just wondering about the
> > > potential security issues related to theses functions.
> > >
> > > any advice or tips would be appreciated.
> > >
> > > many thanks
> > >
> > > Greg Brant
> > >
> > >
> >
>
>
attached mail follows:
On Jul 3, 2003, "Jason Wong" claimed that:
|On Thursday 03 July 2003 19:48, Christian Wach wrote:
|
|> Just to chime in on the "reply to" thread earlier, Daryl, by hitting "reply
|> all" has now sent his email address to these 401 scamsters as well as the
|> list. Hopefully he'll not suffer any consequences from doing this, but the
|> risk is there.
|
|A decent mail client would allow you to at least:
|
| reply (to sender)
| reply (to list)
| reply to all (which means sender, and anyone else on the To: and Cc: fields)
|
|> Guess which side of the header-munging debate I sympathise with...
|
|It's a short-coming of your mail client, not the list -- guess which one
|should be changed?
|
Should people bend to the technology they use, or should the technology be
manipulated to do the people's bidding?
Jeff
--
Registered Linux user #304026.
"lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import"
Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED
Responses to this message should conform to RFC 1855.
attached mail follows:
that was the coolest thing i've read in a while... (considering i just read
the latest harry potter book)
what a way to get those guys back.
"Adam Voigt" <adam
cryptocomm.com> wrote in message
news:1057237579.2195.3.camel
beowulf.cryptocomm.com...
> Well spamming doesn't get them any money. I believe
> I read they use this info to transfer money from your bank
> account, after convincing you to scan your passport for
> them, or something like that.
>
> One guy decided to "strike back", check it out:
>
> http://www.haxial.com/spls-soapbox/nigerian-fraud/
>
>
> On Thu, 2003-07-03 at 07:54, Brian S. Drexler wrote:
> > You do have to admit though, it is a pretty good story. :-) Now let me
ask
> > you this. You reply to this e-mail and give your phone/fax numbers and
then
> > I'm assuming those get spammed all to hell too. Correct?
> >
> > -----Original Message-----
> > From: Daryl Meese [mailto:darylm
magiasoftware.com]
> > Sent: Thursday, July 03, 2003 7:33 AM
> > To: mariamabacha202
ecplaza.net; php-general
lists.php.net
> > Subject: [PHP] Get Rid of this Crook
> >
> >
> > Could someone that this ass of the mailing list
> >
> > Daryl
> >
> >
> >
> > -----Original Message-----
> > From: MARIAM ABACHA [mailto:mariamabacha020
ecplaza.net]
> > Sent: Thursday, July 03, 2003 12:02 AM
> > To: php-general
lists.php.net
> > Subject: [PHP] ASSISTANCE NEEDED
> >
> >
> > Hello,
> > I am sorry for the embarrassment this letter might cause you as we have
not
> > had any correspondence before this letter. I got your address through my
> > nephew with Nigerian Military Chamber of Commerce industry and Mining
> > during my research for a reliable and trustworthy partner who l can do
> > business with though l did not disclose the nature of the business l
intend
> > to do with whoever he recommend for me.
> > I am DR. MRS MARIAM ABACHA, wife of the late Nigeria Head of State,
General
> > Sanni Abacha who died on the 8th of June 1998 while still on active
duty. I
> > am contacting you in view of the fact that we will be of great
assistance to
> > each other likeness developing a cordial relationship.
> > I currently have within my reach the sum of Twenty - Five Million US
Dollars
> > (US$25,000,000.00) cash which l intends to use for investment, like Real
> > Estate Development specifically in your country. This money came as a
> > payback contract deal between my late husband and a Russian Firm on our
> > countries Multi-billion dollars Ajaokuta Steel Plant.
> > The Russian Partners returned my husband's Share of USD$25,000,000.00
after
> > the death of my husband and Lodged in my husband's Security Company of
which
> > l am director right now, the new Civilian Government have intensified
their
> > probe on my husband? Financial and oil company. In view of these, l
acted
> > fast to withdraw the US$25,000,000.00 from the company vault and
deposited
> > it in a Security Company. I have since declared the Security Company
> > bankrupt. No record ever existed concerning the money traceable by the
> > government because there is no documentation showing that we received
the
> > money from the Russian.
> > Due to the current situation in the country concerning government
attitude
> > towards my family, it has become quite impossible for me to make use of
this
> > money within. Let me refer you to the front page of this day newspapers
of
> > 10th March 2001. You can check it through their website
> > www.thisdayonline.com the present government in Nigeria had frozen and
> > seized all our bank accounts both here in Nigeria and abroad.Thus
consent l
> > shall expect you to contact me urgently to enable us discuss in detail
about
> > this transaction.Bearing in mind that your assistance is needed to
transfer
> > this fund, I proposed a percentage of 30% of the total sum to you for
the
> > expected service and assistance, 5% for offsetting minor expenses
incurred
> > in the course of this transaction. Your urgent response is highly
needed as
> > to stop further contacts. All correspondence must be by the email
address
> > mariamabacha201
ecplaza.net I will give you my Tel numbers where you
can
> > contact me when I hear from you.
> > I must use this opportunity to implore you to exercise the utmost
indulgence
> > to keep this matter extraordinarily confidential whatever your decision
> > while await your prompt response.
> > NB: Because of the security being mounted on the members of my family, l
has
> > decided that this transaction exist between you and my nephew Dr. Azeez
> > Bello. Remember to include your private Tel/fax or mobile number for
easy
> > communication.
> > Best Regards.
> > DR. (MRS) MARIAM ABACHA
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> --
> Adam Voigt (adam
cryptocomm.com)
> Linux/Unix Network Administrator
> The Cryptocomm Group
>
attached mail follows:
The PHP site (under Servers-Apache 2.0) says "Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows" but isn't clear whether Linux is included or whether it applies to all Apache 2 releases (such as 2.0.46) or just the original 2.0.
And, Red Hat 9 comes with 2.0 so it's really confusing. Has anyone had any experience with this combo?
Thanks,
Jeff
---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
attached mail follows:
On Thursday 03 July 2003 20:51, Jeff Schwartz wrote:
> The PHP site (under Servers-Apache 2.0) says "Do not use Apache 2.0 and PHP
> in a production environment neither on Unix nor on Windows" but isn't clear
> whether Linux is included or whether it applies to all Apache 2 releases
> (such as 2.0.46) or just the original 2.0.
>
> And, Red Hat 9 comes with 2.0 so it's really confusing. Has anyone had any
> experience with this combo?
>
> Thanks,
> Jeff
Hi,
Not on RH 9. But on gentoo I use apache 2.0, it not for production nor
development.
Lots of problems,
Perhaps RH solve someting using own patch, and I repead if you gonna build
production server. Stay away Apache 2.0
Basicly, when you ecounter a problem, then ask question here,
first response
Use Apache 1.3.27 or someting like that.
Good luck
attached mail follows:
> -----Original Message-----
> From: Jeff Schwartz [mailto:jeff_schwartz
yahoo.com]
> Sent: 03 July 2003 18:52
>
> The PHP site (under Servers-Apache 2.0) says "Do not use
> Apache 2.0 and PHP in a production environment neither on
> Unix nor on Windows"
Well, that's a clumsily-worded sentence all around (I would guess from a non-native English user!). I assume the writer was trying to emphasize that he meant not to use it "on any platform", but really "Do not use Apache 2.0 and PHP in a production environment" just about says it all without the embellishment.
> but isn't clear whether Linux is
> included
Yes, it is. (And MacOS X!)
> or whether it applies to all Apache 2 releases (such
> as 2.0.46) or just the original 2.0.
2.0 can usually be taken to mean 2.0.x, and it can in this instance, too.
HTH
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:
Jeff Schwartz wrote:
>The PHP site (under Servers-Apache 2.0) says "Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows" but isn't clear whether Linux is included or whether it applies to all Apache 2 releases (such as 2.0.46) or just the original 2.0.
>
>And, Red Hat 9 comes with 2.0 so it's really confusing. Has anyone had any experience with this combo?
>
>Thanks,
>Jeff
>
>
When someone says UNIX, they're generally including Linux and BSD, as
both are UNIX clones. At this point anyone in their right mind is going
to suggest you stick with Apache 1.3.x.
attached mail follows:
Folks,
I'm just getting ready to built a webserver this weekend and was planning on using RH9, so this thread especially caught my eye. The website that the server will be hosting is pretty simple, some basic DB queries, no special Apache modules. Is Apache 2.0 still not a good choice for something simple?
If I really should use Apache 1.3, then which route would be easier...
1. Install RH9, remove Apache 2.0 and manually install Apache 1.3 (from tarball). The only problem with this is that I will no longer be able to use the Red Hat Network's "up2date" tool to download and apply patches (from what I understand). Up2date is a huge time saver for me.
2. Install RH7.3, and manually install the latest version of PHP (I simply can't use the version that comes with RH7.3). Of course then I still have the older version of MySQL, and everything else.
Comments?
Joseph
attached mail follows:
I'm current;y in the process of setting up a new web server myself. The
obvious choice for me was to use Red Hat 7.3 for the install. On a clean
install all the nice options are already present, (ssl, php, mysql, gd
lib) which is much better thatn what we used to run, Red Hat 5.2! Been
running that for the past 4 years on that dinosaur.
Ed
On Thu, 3 Jul 2003, Joseph Szobody wrote:
> Folks,
>
> I'm just getting ready to built a webserver this weekend and was planning on using RH9, so this thread especially caught my eye. The website that the server will be hosting is pretty simple, some basic DB queries, no special Apache modules. Is Apache 2.0 still not a good choice for something simple?
>
> If I really should use Apache 1.3, then which route would be easier...
>
> 1. Install RH9, remove Apache 2.0 and manually install Apache 1.3 (from tarball). The only problem with this is that I will no longer be able to use the Red Hat Network's "up2date" tool to download and apply patches (from what I understand). Up2date is a huge time saver for me.
>
> 2. Install RH7.3, and manually install the latest version of PHP (I simply can't use the version that comes with RH7.3). Of course then I still have the older version of MySQL, and everything else.
>
> Comments?
>
> Joseph
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
I am also building a new server. I am going with RedHat 8, but only
installing the Classic server from the CDs. Then installing/configuring
Apache/PHP/MySQL/SSL manually. I like the rpm install programs but I like to
be able to add modules in the future and I find it easier the configure it
all by hand.
I also use the up2date, but only for the basic server part, not the
webserver part. I will reconfigure my web server is a new version or patch
comes out.
I am doing to use Apache 1.3.27, because I too have read all the warnings
about 2.X and PHP, it does not look stable. Maybe with PHP 5 it will be
stable.
I went with Redhat 8 over 9 because I have also read about a lot of bugs
with redhat 9.
I usually don't like to use the new of anything until it have been out for
sometime and I don't see any see bug reports.
Just my two cent.
Mark.
"Joseph Szobody" <jszobody
hotmail.com> wrote in message
news:20030703195934.69047.qmail
pb1.pair.com...
Folks,
I'm just getting ready to built a webserver this weekend and was planning on
using RH9, so this thread especially caught my eye. The website that the
server will be hosting is pretty simple, some basic DB queries, no special
Apache modules. Is Apache 2.0 still not a good choice for something simple?
If I really should use Apache 1.3, then which route would be easier...
1. Install RH9, remove Apache 2.0 and manually install Apache 1.3 (from
tarball). The only problem with this is that I will no longer be able to use
the Red Hat Network's "up2date" tool to download and apply patches (from
what I understand). Up2date is a huge time saver for me.
2. Install RH7.3, and manually install the latest version of PHP (I simply
can't use the version that comes with RH7.3). Of course then I still have
the older version of MySQL, and everything else.
Comments?
Joseph
attached mail follows:
Does anyone remember the warning concerning MySQL and glibc. I distinctly
remember some conflict between the two and up2date installing a bad
mismatch lib making MySQL act funny. It's one of the reasons I'll stick
with Red Hat 7.3 but I my conclusions about the situation may be clouded
because of this.
Ed
On Thu, 3 Jul 2003, Mark McCulligh wrote:
> I am also building a new server. I am going with RedHat 8, but only
> installing the Classic server from the CDs. Then installing/configuring
> Apache/PHP/MySQL/SSL manually. I like the rpm install programs but I like to
> be able to add modules in the future and I find it easier the configure it
> all by hand.
>
> I also use the up2date, but only for the basic server part, not the
> webserver part. I will reconfigure my web server is a new version or patch
> comes out.
>
> I am doing to use Apache 1.3.27, because I too have read all the warnings
> about 2.X and PHP, it does not look stable. Maybe with PHP 5 it will be
> stable.
>
> I went with Redhat 8 over 9 because I have also read about a lot of bugs
> with redhat 9.
>
> I usually don't like to use the new of anything until it have been out for
> sometime and I don't see any see bug reports.
>
> Just my two cent.
>
> Mark.
>
>
>
> "Joseph Szobody" <jszobody
hotmail.com> wrote in message
> news:20030703195934.69047.qmail
pb1.pair.com...
> Folks,
>
> I'm just getting ready to built a webserver this weekend and was planning on
> using RH9, so this thread especially caught my eye. The website that the
> server will be hosting is pretty simple, some basic DB queries, no special
> Apache modules. Is Apache 2.0 still not a good choice for something simple?
>
> If I really should use Apache 1.3, then which route would be easier...
>
> 1. Install RH9, remove Apache 2.0 and manually install Apache 1.3 (from
> tarball). The only problem with this is that I will no longer be able to use
> the Red Hat Network's "up2date" tool to download and apply patches (from
> what I understand). Up2date is a huge time saver for me.
>
> 2. Install RH7.3, and manually install the latest version of PHP (I simply
> can't use the version that comes with RH7.3). Of course then I still have
> the older version of MySQL, and everything else.
>
> Comments?
>
> Joseph
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
> I usually don't like to use the new of anything until it have been out for
> sometime and I don't see any see bug reports.
And just when would this rare event occur, if ever?
Every version of Apache, PHP, or Linux distro ever released has had bugs or
exploits of some form. If you're waiting for a perfect version of any of
those, it'll still be a long while.
The best thing to do is just pick a distro that releases patches quickly, and
keep up to date on patches.
--
Greg Donald
http://destiney.com/
attached mail follows:
Mark McCulligh wrote:
>I am also building a new server. I am going with RedHat 8, but only
>installing the Classic server from the CDs. Then installing/configuring
>Apache/PHP/MySQL/SSL manually. I like the rpm install programs but I like to
>be able to add modules in the future and I find it easier the configure it
>all by hand.
>
>I also use the up2date, but only for the basic server part, not the
>webserver part. I will reconfigure my web server is a new version or patch
>comes out.
>
>I am doing to use Apache 1.3.27, because I too have read all the warnings
>about 2.X and PHP, it does not look stable. Maybe with PHP 5 it will be
>stable.
>
>I went with Redhat 8 over 9 because I have also read about a lot of bugs
>with redhat 9.
>
>I usually don't like to use the new of anything until it have been out for
>sometime and I don't see any see bug reports.
>
>Just my two cent.
>
>Mark.
>
>
>
>"Joseph Szobody" <jszobody
hotmail.com> wrote in message
>news:20030703195934.69047.qmail
pb1.pair.com...
>Folks,
>
>I'm just getting ready to built a webserver this weekend and was planning on
>using RH9, so this thread especially caught my eye. The website that the
>server will be hosting is pretty simple, some basic DB queries, no special
>Apache modules. Is Apache 2.0 still not a good choice for something simple?
>
>If I really should use Apache 1.3, then which route would be easier...
>
>1. Install RH9, remove Apache 2.0 and manually install Apache 1.3 (from
>tarball). The only problem with this is that I will no longer be able to use
>the Red Hat Network's "up2date" tool to download and apply patches (from
>what I understand). Up2date is a huge time saver for me.
>
>2. Install RH7.3, and manually install the latest version of PHP (I simply
>can't use the version that comes with RH7.3). Of course then I still have
>the older version of MySQL, and everything else.
>
>Comments?
>
>Joseph
>
>
>
Linux is quite new for me, so please forgive me if my questions are
rather basic.
I have RH 9 installed and I want to add the Interbase extensions to PHP
and then recompile Apache. Conceptually I understand what has to be
done, but I do not know the steps or syntax. Is there documentation
available for doing this?
Todd
--
attached mail follows:
Todd Cary wrote:
> Linux is quite new for me, so please forgive me if my questions are
> rather basic.
>
> I have RH 9 installed and I want to add the Interbase extensions to PHP
> and then recompile Apache. Conceptually I understand what has to be
> done, but I do not know the steps or syntax. Is there documentation
> available for doing this?
Just to be sure I understand, by "add" do you mean recompiling with
support for InterBase? If so you will need to add --with-interbase when
you run configure.
http://www.php.net/manual/en/ref.ibase.php
Have you already compiled apache? If so you can probably just tell
configure where apxs is. --with-apxs=/path/to/apache/bin/apxs
http://www.php.net/manual/en/install.apache.php
Brad
attached mail follows:
Just thought I would share my experience with RH9. I have been running
Apache 1.3.27 and PHP 4.3.2 on RH9 for a couple weeks (since 4.3.2 came
out anyway, and 4.3.1 prior to that) on a test server. All are compiled
from source. The only problem I have had was a bug with the version of
mogrify that is bundled with RH9. That was fixed by 'upgrading' to an
older version. Other than that it has been fine.
Brad
attached mail follows:
Does anyone know why Red Hat would switch to Apache 2.x.x when it is
well known that 2.x.x is NOT a production version?
Brad Pauly wrote:
> Just thought I would share my experience with RH9. I have been running
> Apache 1.3.27 and PHP 4.3.2 on RH9 for a couple weeks (since 4.3.2 came
> out anyway, and 4.3.1 prior to that) on a test server. All are compiled
> from source. The only problem I have had was a bug with the version of
> mogrify that is bundled with RH9. That was fixed by 'upgrading' to an
> older version. Other than that it has been fine.
>
> Brad
>
>
>
>
attached mail follows:
Apache 2.x.x IS a production quality server, just not with PHP. Works great
with Tomcat, mod_jk2, Struts, etc.
----- Original Message -----
From: "Shena Delian O'Brien" <shena
darklock.com>
To: <php-general
lists.php.net>
Sent: Thursday, July 03, 2003 8:04 PM
Subject: Re: [PHP] Re: Red Hat 9, Apache 2, and PHP
> Does anyone know why Red Hat would switch to Apache 2.x.x when it is
> well known that 2.x.x is NOT a production version?
>
> Brad Pauly wrote:
> > Just thought I would share my experience with RH9. I have been running
> > Apache 1.3.27 and PHP 4.3.2 on RH9 for a couple weeks (since 4.3.2 came
> > out anyway, and 4.3.1 prior to that) on a test server. All are compiled
> > from source. The only problem I have had was a bug with the version of
> > mogrify that is bundled with RH9. That was fixed by 'upgrading' to an
> > older version. Other than that it has been fine.
> >
> > Brad
> >
> >
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
At 14:35 3-7-2003, you wrote:
> > -----Original Message-----
> > From: Jeff Moser [mailto:jmoser
ihigh.com]
> > Sent: 03 July 2003 13:07
> >
> > So...why not write the entire included file as a function and
> > then call that
> > function instead of using include? I'd be interested, though,
> > to hear if the
> > return broke out of the include.
>Mike Ford:
>Well, it damn well better, as the manual page at
>http://www.php.net/include says it does! (You can return a value, as well,
>if you really must.)
ah that's interesting.
another option using multiple returns in one function:
function testvars($var1,$var2)
{ if ($var1<1) return 'var1 must be a positive integer';
if ($var2=='bad') return 'var2 is bad!';
//this line is only reached when all vars are tested ok:
return true;
}
$result=testvars($var1,$var2);
if ($result!=true) {
echo $result.'<br>Please warp to your previous
location';
exit();
}
attached mail follows:
Hello,
I am currently involved in a site where users frequently need to upload text
files of various sizes. Every so often users will experience problems where
the uploads will start timing-out and need to be reinitiated.
The timeout problem comes and goes, so far I've been unable to find the root
cause. It happens with files of all sizes, from 10k to several MB,
eventually they all get uploaded, tho sometimes it can take days re-trying.
Another issue is experienced when the above symptom is happening which makes
me think they're related. An additional tool on the site writes out files
with information provided by a user thru a form. A user submits a form with
some text and php writes out a file with the received info and notifies the
user the task was done. Every so often the browser will timeout with no file
written out by php or notification. This symptom can go on for days. The
info being written to a file is never longer than a dozen lines of text so
it's quite small.
Initially we thought that the server just did not have the resources to
service simultaneous uploads but monitoring tools show the cpu appears to be
near idle when this is experienced. I've experienced the file writing
problem when I was the only user on the server with all unnecessary services
disabled. The browser will just time out, then one days voila! it works
until the next problem day.
This is on a Linux box with Apache 1.3, php 4.2.2 & experienced across
multiple browsers. All the scripts have set_time_limit(0). File system has
the proper permissions and with plenty of free space.
We've been collecting quite a lot of info from the server to try to capture
it's state at the time of the problem but nothing raises any flags.
Has anyone experienced this issue or a similar issue? Any pointers and help
is greatly appreciated.
Ivo
attached mail follows:
I'm attempting to create a generic XML writer with the DOMXML functions
which takes as its input the array structure generated by gdemartiti on this
function page:
http://us3.php.net/manual/en/function.xml-parse-into-struct.php
Actually, it's the updated version done by kris
h3x.com, here:
http://www.devdump.com/phpxml.php
Anyway, the trouble I'm having is when I get to a child element and need to
use 'append_child' -- append_child requires that you specify the ancestor
element you're appending to, but I can't seem to reference that object when
I loop back into the function. This is probably a class/object issue since
I'm pretty useless with classes.
If I come into the function, having passed the ancestor name as a string and
having already added the ancestor as an object in the class, this doesn't
work:
$child = $ancestor->append_child($thisChild);
The error is: "...Call to a member function on a non-object...". How can I
reference that ancestor object when I come back into the function?
(PHP version is 4.3.2, Apache 2.0.44 on Win2k)
Thanks,
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 686
907.336.6205 (fax)
E-mail: mgrimm
healthtvchannel.org
Web: www.healthtvchannel.org
attached mail follows:
Hi,
Friday, July 4, 2003, 4:54:06 AM, you wrote:
MG> I'm attempting to create a generic XML writer with the DOMXML functions
MG> which takes as its input the array structure generated by gdemartiti on this
MG> function page:
MG> http://us3.php.net/manual/en/function.xml-parse-into-struct.php
MG> Actually, it's the updated version done by kris
h3x.com, here:
MG> http://www.devdump.com/phpxml.php
MG> Anyway, the trouble I'm having is when I get to a child element and need to
MG> use 'append_child' -- append_child requires that you specify the ancestor
MG> element you're appending to, but I can't seem to reference that object when
MG> I loop back into the function. This is probably a class/object issue since
MG> I'm pretty useless with classes.
MG> If I come into the function, having passed the ancestor name as a string and
MG> having already added the ancestor as an object in the class, this doesn't
MG> work:
$child = $ancestor->>append_child($thisChild);
MG> The error is: "...Call to a member function on a non-object...". How can I
MG> reference that ancestor object when I come back into the function?
MG> (PHP version is 4.3.2, Apache 2.0.44 on Win2k)
You have to pass references to the objects, the ones returned by
append_child. The first time you have to get the root parent and work
from there onwards.
like :
$doc = domxml_new_doc("1.0");
$table = $doc->create_element("table");
$row = $doc->create_element("row");
$col = $doc->create_element("td");
$root = $dom->document_element();
$t1 = $root->append_child($table);
$r1 = $t1->append_child($row);
$c1 = $r1->append_child($col);
$c2 = $r1->append_child($col);
$r2 = $t1->append_child($row);
$c3 = $r1->append_child($col);
$c4 = $r1->append_child($col);
--
regards,
Tom
attached mail follows:
[Sent this the first time to the wrong list]
In this code:
if ($prtpdf) {
include "letter_new.php";
exit;
}
I create a PDF page, however I would like to continue within the script
(not have the exit). If I do that, the PDF page is corrupted by the
script code.
What is the best solution for this?
Todd
--
attached mail follows:
Todd Cary wrote:
> In this code:
>
> if ($prtpdf) {
> include "letter_new.php";
> exit;
> }
>
> I create a PDF page, however I would like to continue within the script
> (not have the exit). If I do that, the PDF page is corrupted by the
> script code.
>
> What is the best solution for this?
I am assuming that "letter_new.php" outputs the contents of the PDF you
are generating. You could use output buffering to grab the PDF and then
go on with your script:
if ($prtpdf) {
ob_start();
include "letter_new.php";
$pdf_buffer = ob_get_contents();
ob_end_clean();
}
http://us2.php.net/manual/en/ref.outcontrol.php
Brad
attached mail follows:
Try using the a shutdown function:
http://us2.php.net/manual/en/function.register-shutdown-function.php
and put all your logic that needs to run after the exit function.
--
BigDog
On Thu, 2003-07-03 at 13:18, Todd Cary wrote:
> [Sent this the first time to the wrong list]
>
> In this code:
>
> if ($prtpdf) {
> include "letter_new.php";
> exit;
> }
>
> I create a PDF page, however I would like to continue within the
> script (not have the exit). If I do that, the PDF page is corrupted
> by the script code.
>
> What is the best solution for this?
>
> Todd
>
> --
>
attached mail follows:
try to send it as attachment
Suhas
_________________________________
Encrypt your PHP code for FREE at
http://encphp.sspsoft.com
_________________________________
----- Original Message -----
From: Todd Cary
To: php-general
lists.php.net
Sent: Thursday, July 03, 2003 1:18 PM
Subject: [PHP] Sending a PDF page
[Sent this the first time to the wrong list]
In this code:
if ($prtpdf) {
include "letter_new.php";
exit;
}
I create a PDF page, however I would like to continue within the script (not have the exit). If I do that, the PDF page is corrupted by the script code.
What is the best solution for this?
Todd
--
attached mail follows:
imap_headder info returns an "object".
print_r works to see all the stuff containd within but when i try to acces
it via
print object[date];
i get naff all
to save you looking, heres the entry in the manual
cheers folks
Description
object imap_headerinfo ( resource imap_stream, int msg_number [, int
fromlength [, int subjectlength [, string defaulthost]]])
This function returns an object of various header elements.
remail, date, Date, subject, Subject, in_reply_to, message_id,
newsgroups, followup_to, references
message flags:
Recent - 'R' if recent and seen,
'N' if recent and not seen,
' ' if not recent
Unseen - 'U' if not seen AND not recent,
' ' if seen OR not seen and recent
Answered -'A' if answered,
' ' if unanswered
Deleted - 'D' if deleted,
' ' if not deleted
Draft - 'X' if draft,
' ' if not draft
Flagged - 'F' if flagged,
' ' if not flagged
NOTE that the Recent/Unseen behavior is a little odd. If you want to
know if a message is Unseen, you must check for
Unseen = 'U' || Recent = 'N'
toaddress (full to: line, up to 1024 characters)
to[] (returns an array of objects from the To line, containing):
personal
adl
mailbox
host
fromaddress (full from: line, up to 1024 characters)
from[] (returns an array of objects from the From line, containing):
personal
adl
mailbox
host
ccaddress (full cc: line, up to 1024 characters)
cc[] (returns an array of objects from the Cc line, containing):
personal
adl
mailbox
host
bccaddress (full bcc line, up to 1024 characters)
bcc[] (returns an array of objects from the Bcc line, containing):
personal
adl
mailbox
host
reply_toaddress (full reply_to: line, up to 1024 characters)
reply_to[] (returns an array of objects from the Reply_to line,
containing):
personal
adl
mailbox
host
senderaddress (full sender: line, up to 1024 characters)
sender[] (returns an array of objects from the sender line, containing):
personal
adl
mailbox
host
return_path (full return-path: line, up to 1024 characters)
return_path[] (returns an array of objects from the return_path line,
containing):
personal
adl
mailbox
host
udate (mail message date in unix time)
fetchfrom (from line formatted to fit fromlength
characters)
fetchsubject (subject line formatted to fit subjectlength characters)
attached mail follows:
greg brant wrote:
> imap_headder info returns an "object".
>
> print_r works to see all the stuff containd within but when i try to acces
> it via
>
> print object[date];
>
> i get naff all
You need to assign the object to a variable first. There are some
examples in the user contributed notes in the manual, but essentially
something like this:
$header = imap_header($foo, $bar);
print $header->date;
http://us4.php.net/manual/en/function.imap-headerinfo.php
Brad
attached mail follows:
datetime.
Thanks
Jim Lucas wrote:
>what type of format does your column take?
>
>date
>time
>datetime
>
>??
>
>Jim Lucas
>----- Original Message -----
>From: "Jack Sasportas" <Jack
InnovativeInternet.com>
>To: "php" <php-general
lists.php.net>
>Sent: Wednesday, July 02, 2003 2:11 PM
>Subject: [PHP] Need a function to calculate time difference.
>
>
>
>
>>I am trying to find a function or information on how to properly take a
>>start time and an end time from mysql timestamps in order to calculate
>>time taken.
>>So in theory $endtime-$starttime = timespent.
>>
>>It would be great if this understood that 11:55 pm til 12:10am one day
>>apart only equals 15 minutes.
>>
>>Links, example code etc would be great!
>>
>>Thanks
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>>
>
>
>
>
>
attached mail follows:
Hello!
I'm trying to create a PDF file for downloading, but Acrobat cannot read
the generated file. I get a "file corrupted or cannot be found", whenever
I try to open the file.
My script is as follow:
header("Cache-control: private");
header("Content-type: application/octet-stream");
header("Content-type: application/pdf");
header("Content-Disposition: attachment; filename=file.pdf");
//sql code to retrieve data as $data
echo $data
//...more code
//====================
As expected, the server create the pdf file and force the browser to open
the save file dialog box to save the file. Acrobat,however cannot read the
generated file (both online or offline). Any suggestions?
Am I missing something?
Please help.
-john
=P e p i e D e s i g n s
www.pepiedesigns.com
Providing Solutions That Increase Productivity
Web Developement. Database. Hosting. Multimedia.
attached mail follows:
You have code to execute after filewriting,the output of that code will go
as a pdf file continuation.
try exit after writing filecontents.
Suhas
_________________________________
Encrypt your PHP code for FREE at
http://encphp.sspsoft.com
_________________________________
----- Original Message -----
From: "[-^-!-%-" <monfort
engineering.sdsu.edu>
To: <php-general
lists.php.net>
Sent: Thursday, July 03, 2003 2:19 PM
Subject: [PHP] PDF on the fly ?
>
> Hello!
>
> I'm trying to create a PDF file for downloading, but Acrobat cannot read
> the generated file. I get a "file corrupted or cannot be found", whenever
> I try to open the file.
>
>
> My script is as follow:
>
>
> header("Cache-control: private");
> header("Content-type: application/octet-stream");
> header("Content-type: application/pdf");
> header("Content-Disposition: attachment; filename=file.pdf");
>
> //sql code to retrieve data as $data
>
> echo $data
>
> //...more code
>
> //====================
>
> As expected, the server create the pdf file and force the browser to open
> the save file dialog box to save the file. Acrobat,however cannot read the
> generated file (both online or offline). Any suggestions?
>
> Am I missing something?
>
> Please help.
>
> -john
>
> =P e p i e D e s i g n s
> www.pepiedesigns.com
> Providing Solutions That Increase Productivity
>
> Web Developement. Database. Hosting. Multimedia.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
I just found out that the generated file, though with .pdf extension, is
actually an HTML file. The file was never encoded to PDF.
What am I missing?
-john
=P e p i e D e s i g n s
www.pepiedesigns.com
Providing Solutions That Increase Productivity
Web Developement. Database. Hosting. Multimedia.
On Thu, 3 Jul 2003, [-^-!-%- wrote:
>
> Hello!
>
> I'm trying to create a PDF file for downloading, but Acrobat cannot read
> the generated file. I get a "file corrupted or cannot be found", whenever
> I try to open the file.
>
>
> My script is as follow:
>
>
> header("Cache-control: private");
> header("Content-type: application/octet-stream");
> header("Content-type: application/pdf");
> header("Content-Disposition: attachment; filename=file.pdf");
>
> //sql code to retrieve data as $data
>
> echo $data
>
> //...more code
>
> //====================
>
> As expected, the server create the pdf file and force the browser to open
> the save file dialog box to save the file. Acrobat,however cannot read the
> generated file (both online or offline). Any suggestions?
>
> Am I missing something?
>
> Please help.
>
> -john
>
> =P e p i e D e s i g n s
> www.pepiedesigns.com
> Providing Solutions That Increase Productivity
>
> Web Developement. Database. Hosting. Multimedia.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
[-^-!-%- wrote:
> I just found out that the generated file, though with .pdf extension, is
> actually an HTML file. The file was never encoded to PDF.
>
> What am I missing?
You need a PDF file library...
http://www.php.net/manual/en/ref.cpdf.php
http://www.php.net/manual/en/ref.pdf.php
attached mail follows:
At 16:56 3-7-2003, you wrote:
>Hi Group,
>
>I am working on an app the creates an Excel file. Right now I am using the
>PEAR package Spreadsheet_Excel_Writer. It works great but I have one
>problem. I have a field greater then 255 to export and the PEAR package
>truncates anything over 255.
>
>Has anyone used or know of a Excel class that allow fields greater then 255.
i just write a .csv file with a header that claims it is for Excel. Then
Excel just opens it and converts it for me.
attached mail follows:
excel has a char limit of 255 , if you can find a work around for it please
do let me know , also , check out the bifwriter , i think the pear packages
just outputs csv right ?
> Hi Group,
>
> I am working on an app the creates an Excel file. Right now I am using
> the PEAR package Spreadsheet_Excel_Writer. It works great but I have
> one problem. I have a field greater then 255 to export and the PEAR
> package truncates anything over 255.
>
> Has anyone used or know of a Excel class that allow fields greater then
> 255.
>
> Thanks, Mark.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hello,
Does any one know how to decode a CSR ( Certificate Signing Request) file in PHP and get the ifo out from the server?
- Sid
attached mail follows:
Hey,
would everyone take a wack at
http://www.prattmuseum.org:8080/prattcms/
http://www.prattmuseum.org:8080/prattcms/?id=49
and click links a couple of times? I'm working on some stats, and I
especially need some from foreign countries (not US).
Thanks!
-Michael
attached mail follows:
Hey,
would everyone take a wack at
http://www.prattmuseum.org:8080/prattcms/
http://www.prattmuseum.org:8080/prattcms/?id=49
and click links a couple of times? I'm working on some stats, and I
especially need some from foreign countries (not US).
Thanks!
-Michael
attached mail follows:
Hello all,
I seem to be running into a problem where the date() function appears not
to differentiate properly between unix timestamps.
For example, the code:
<?php
$seconds = 1054278483;
echo "$seconds<br>";
echo date("d-m-Y H:m:s", $seconds);
echo "<br><br>";
$seconds = ($seconds - 60);
echo "$seconds<br>";
echo date("d-m-Y H:m:s", $seconds);
echo "<br><br>";
?>
outputs
1054278483
30-05-2003 02:05:03
1054278423
30-05-2003 02:05:03
I would expect the second date() to output 30-05-2003 02:04:03 as the
second timestamp is exactly 60 seconds behind the first, but I might be
missing something. I see the same behavior on two redhat linux machines
running Apache 2.0.40 + PHP 4.2.2 and Apache 1.3.26 + PHP 4.3.2
respectively. Any ideas?
Thanks,
Garrick Linn
attached mail follows:
:)
You are using an m where you want an i.
Regards,
Philip
On Thu, 3 Jul 2003, Garrick Linn wrote:
> Hello all,
>
> I seem to be running into a problem where the date() function appears not
> to differentiate properly between unix timestamps.
>
> For example, the code:
>
> <?php
>
> $seconds = 1054278483;
> echo "$seconds<br>";
> echo date("d-m-Y H:m:s", $seconds);
> echo "<br><br>";
>
> $seconds = ($seconds - 60);
> echo "$seconds<br>";
> echo date("d-m-Y H:m:s", $seconds);
> echo "<br><br>";
>
> ?>
>
> outputs
>
> 1054278483
> 30-05-2003 02:05:03
>
> 1054278423
> 30-05-2003 02:05:03
>
> I would expect the second date() to output 30-05-2003 02:04:03 as the
> second timestamp is exactly 60 seconds behind the first, but I might be
> missing something. I see the same behavior on two redhat linux machines
> running Apache 2.0.40 + PHP 4.2.2 and Apache 1.3.26 + PHP 4.3.2
> respectively. Any ideas?
>
> Thanks,
>
> Garrick Linn
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
Doh! Gracias. :-)
At 11:58 PM 7/3/2003 +0000, Philip Olson wrote:
>:)
>
>You are using an m where you want an i.
>
>Regards,
>Philip
>
>
>On Thu, 3 Jul 2003, Garrick Linn wrote:
>
> > Hello all,
> >
> > I seem to be running into a problem where the date() function appears not
> > to differentiate properly between unix timestamps.
> >
> > For example, the code:
> >
> > <?php
> >
> > $seconds = 1054278483;
> > echo "$seconds<br>";
> > echo date("d-m-Y H:m:s", $seconds);
> > echo "<br><br>";
> >
> > $seconds = ($seconds - 60);
> > echo "$seconds<br>";
> > echo date("d-m-Y H:m:s", $seconds);
> > echo "<br><br>";
> >
> > ?>
> >
> > outputs
> >
> > 1054278483
> > 30-05-2003 02:05:03
> >
> > 1054278423
> > 30-05-2003 02:05:03
> >
> > I would expect the second date() to output 30-05-2003 02:04:03 as the
> > second timestamp is exactly 60 seconds behind the first, but I might be
> > missing something. I see the same behavior on two redhat linux machines
> > running Apache 2.0.40 + PHP 4.2.2 and Apache 1.3.26 + PHP 4.3.2
> > respectively. Any ideas?
> >
> > Thanks,
> >
> > Garrick Linn
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
I am trying to do a file upload using the following code. Script doesn't
appear to generate any errors that I can see. Just that the file isn't
copied. I have put in some debuging code and all variable seem to be
correct. file just isn't copying. I have tried both copy() and
move_uploaded_file() functions with the same result...file isn't copied. I
must be overlooking the obvious and am hoping someone can point it out to
me. Help would be appreciated.
Note: I am using php v4.0.3pl (I don't have any option and this is the
version that I am stuck with, so I just have to make it work). Thanks in
advance.
echo "upload=".$ufolder.$HTTP_POST_FILES['img1']['tmp_name'];
if ($HTTP_POST_FILES['img1'] != "") {
move_uploaded_file($HTTP_POST_FILES['img1']['tmp_name'],
$ufolder.$HTTP_POST_FILES['img1']['name']);
//copy($HTTP_POST_FILES['img1']['tmp_name'],
"$ufolder".$HTTP_POST_FILES['img1']['name']);
//or die($php_errormsg);
//or die("Couldn't copy the file!");
echo "error=".$php_errormsg;
} else {
die("No input file specified");
}
Thanks.
Mark Roberts, Roberts Computing Systems
Webmaster Services $29.50/mo
mailto:mark.roberts
robertscomputing.com
attached mail follows:
Is there any way to get Apache's list of extension -> MIME type
associations into an array? I want to readfile() a file which only some
users can view for security, but the file types vary from file to file
so I need to know the MIME type.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]