php-general Digest 20 Aug 2003 13:10:58 -0000 Issue 2248
Topics (messages 160144 through 160170):
Re: Help with parse error
160144 by: Peter James
160151 by: Baroiller Pierre-Emmanuel
Re: Your details
160145 by: electroteque
Re: How to open a save-as dialog and then redirect after donwload?
160146 by: Marek Kilimajer
160150 by: jabber.raditha.com
160161 by: Marek Kilimajer
Re: Problem with mktime, need to add 30 days to current date
160147 by: Marek Kilimajer
Re: Apache starting error
160148 by: Rikunj
Re: is the list getting virus spammed?
160149 by: Marek Kilimajer
160155 by: jabber.raditha.com
Re: My details
160152 by: celula2.teleline.es
uploading binary files, getting corrupt
160153 by: Peter Berglund
Re: Thank you!
160154 by: marms.phpedit.net
160157 by: help.uunet.uu.net
160170 by: ij.w3.org
Re: Warning: dl(): Unable to load dynamic library
160156 by: David Robley
160160 by: Marek Kilimajer
dl() unable to open library
160158 by: Eike Umlauf
Re: That movie
160159 by: ij.w3.org
error in apache log
160162 by: Peter Berglund
160163 by: Marek Kilimajer
160167 by: Peter Berglund
160168 by: Marek Kilimajer
Host Check...?
160164 by: Tristan.Pretty.risk.sungard.com
Re: in the middle of shift and pop
160165 by: Ford, Mike [LSS]
Re: comparing xml files, removing some html tags
160166 by: Robert Mena
Re: Approved
160169 by: kris.koehntopp.de
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Can you give us a couple lines either side of this? This could be due to a
missing semicolon on the previous line.
--
Peter James
Editor-in-Chief, php|architect Magazine
[EMAIL PROTECTED]
php|architect
The Magazine for PHP Professionals
http://www.phparch.com
----- Original Message -----
From: "James Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 20, 2003 1:07 AM
Subject: [PHP] Help with parse error
> Hi,
>
> I'm trying to figure out this error I'm getting in my code:
>
> Parse error: parse error in /home/.paco/campuscb/AdPayment.php on line 9
>
> This is the code on line 9:
>
> $sDate = date('Y-m-d',time());
>
> Does this look valid?
> Thanks,
> James
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hi,
it's a common error...
I think you have an unclosed string before in your script...
example :
$data='the data;
....
$sDate = date('Y-m-d',time());
this code will produce an error on ligne with $sDate only becose the line
with $data is unclosed ( missing the last ' )..
Take a look at your entire script... I'm sure it's this ;)
Regards,
P.E. Baroiller
"James Johnson" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi,
>
> I'm trying to figure out this error I'm getting in my code:
>
> Parse error: parse error in /home/.paco/campuscb/AdPayment.php on line 9
>
> This is the code on line 9:
>
> $sDate = date('Y-m-d',time());
>
> Does this look valid?
> Thanks,
> James
>
--- End Message ---
--- Begin Message ---
i suggest everyone get spamassasin it also picks up viruses, some look like
txt file attatchments though
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 1:54 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Your details
i got it 10 times today
> [EMAIL PROTECTED] wrote:
>
>> Please see the attached file for details.
>>
>
> Did anyone's AV pick up a virus in this email? It went right through
> mine but obviously doesn't belong on this list. I just got the latest
> definitions from Norton, too...
>
> --
> ---John Holmes...
>
> Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
>
> PHP|Architect: A magazine for PHP Professionals – www.phparch.com
>
>
>
>
>
> --
> 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
--- End Message ---
--- Begin Message ---
I'm not sure, did you get my post? It is exactly what you want. But
instead of downloading first and then redirecting, html page is
generated first (like redirect), this page is displayed, and then starts
the download.
Jean-Christian IMbeault wrote:
Jason Sheets wrote:
Use PHP's file functions to read the file and output it to the browser,
sending the attachment header so it opens the save as dialog. After you
finish outputing the file unlink() the file.
You didn't quite catch what I wanted to do. No file exists on my server.
I just give a bunch of buttons to the user, the buttons are in a form.
The form's action is another PHP script.
That script generates some data and forces a save-as dialog to open so
the user can save the data as a file. The script also stores in a
database the fact that this user has generated this file so that the
next time he visits the button for generating this particular file will
not appear in the list again.
The problem is that the page the user is on doesn't change once he
clicks the button.
What I want is that after a button has been clicked the current page,
the I generate the data file, cause a save-as dialog to open, and then
reload the current page (file list) so that I can present the user with
a list of buttons (data files he can generate) again (with the button he
clicked no longer in the list).
Do-able?
Jean-Christian Imbeault
--- End Message ---
--- Begin Message ---
is this something like what sourceforge has?
Marek Kilimajer wrote:
I'm not sure, did you get my post? It is exactly what you want. But
instead of downloading first and then redirecting, html page is
generated first (like redirect), this page is displayed, and then
starts the download.
Jean-Christian IMbeault wrote:
Jason Sheets wrote:
Use PHP's file functions to read the file and output it to the
browser, sending the attachment header so it opens the save as
dialog. After you finish outputing the file unlink() the file.
You didn't quite catch what I wanted to do. No file exists on my server.
I just give a bunch of buttons to the user, the buttons are in a form.
The form's action is another PHP script.
That script generates some data and forces a save-as dialog to open so
the user can save the data as a file. The script also stores in a
database the fact that this user has generated this file so that the
next time he visits the button for generating this particular file will
not appear in the list again.
The problem is that the page the user is on doesn't change once he
clicks the button.
What I want is that after a button has been clicked the current page,
the I generate the data file, cause a save-as dialog to open, and then
reload the current page (file list) so that I can present the user with
a list of buttons (data files he can generate) again (with the button he
clicked no longer in the list).
Do-able?
Jean-Christian Imbeault
--
Raditha Dissanayake
-------------------------------------------------------------
http://www.radinks.com/sftp/
Lean and mean Secure FTP applet with Graphical User Inteface.
just 150 Kilo Bytes
--- End Message ---
--- Begin Message ---
Yes, I think sf uses this too.
[EMAIL PROTECTED] wrote:
is this something like what sourceforge has?
Marek Kilimajer wrote:
I'm not sure, did you get my post? It is exactly what you want. But
instead of downloading first and then redirecting, html page is
generated first (like redirect), this page is displayed, and then
starts the download.
Jean-Christian IMbeault wrote:
Jason Sheets wrote:
Use PHP's file functions to read the file and output it to the
browser, sending the attachment header so it opens the save as
dialog. After you finish outputing the file unlink() the file.
You didn't quite catch what I wanted to do. No file exists on my server.
I just give a bunch of buttons to the user, the buttons are in a form.
The form's action is another PHP script.
That script generates some data and forces a save-as dialog to open so
the user can save the data as a file. The script also stores in a
database the fact that this user has generated this file so that the
next time he visits the button for generating this particular file will
not appear in the list again.
The problem is that the page the user is on doesn't change once he
clicks the button.
What I want is that after a button has been clicked the current page,
the I generate the data file, cause a save-as dialog to open, and then
reload the current page (file list) so that I can present the user with
a list of buttons (data files he can generate) again (with the button he
clicked no longer in the list).
Do-able?
Jean-Christian Imbeault
--- End Message ---
--- Begin Message ---
$endDate=date('Y-m-d',strtotime("+30 day"));
James Johnson wrote:
Sorry about the previous post.
Hi,
I need to make a date that is 30 days from the current date, and, am
having problems with mktime
Here's what I've tried:
$endDate=date('Y-m-d',mktime(0,0,0,date('m',time()),30,date('y',time()))
);
Return this: 2003-08-30
Is there an easy way to do this?
Thanks,
James
--- End Message ---
--- Begin Message ---
Hi,
Thank you for replying.
What would be the appropriate php compile syntax which includes -DEAPI.
Thanks,
RP..
-----Original Message-----
From: murugesan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 10:07 AM
To: Rikunj; [EMAIL PROTECTED]
Subject: Re: [PHP] Apache starting error
Check this
http://www.phpbuilder.com/mail/php-general/2000062/0811.php
-murugesan
----- Original Message -----
From: "Rikunj" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 20, 2003 11:53 AM
Subject: [PHP] Apache starting error
> Hello all,
>
> I am new to this group please do not ignore..
>
> I am running redhat 7.1 Linux Apache/1.3.27 (Unix).
>
> The server got restarted due to power malfunction. After it restarted
> again it is unable to start httpd service display below error.
>
> [warn] Loaded DSO libexec/libphp4.so uses plain Apache 1.3 API, this
> module might crash under EAPI! (please recompile it with -DEAPI)
>
> What should I do to repair it?
>
> Thanks in advance for any help.
>
> Rp...
>
>
>
> --
> 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
--- End Message ---
--- Begin Message ---
And besides, does everyone after posting receives email from
[EMAIL PROTECTED] and [EMAIL PROTECTED] Both seem to be
mailing list management softwares. If anyone subscribed these addresses
to php-general, it is a bad joke and he/she should fry in hell for eternity.
Matt Babineau wrote:
Hmm....wondering why I keep receiving email sent to the list, that has
this stupid attachment...anyone else getting these?
Matt
--- End Message ---
--- Begin Message ---
I am getting these majordomo mails as well, thought it was a problem at
my end. grrr, people who use the redmond operating system deserve to be
plagued by viruses.
Marek Kilimajer wrote:
And besides, does everyone after posting receives email from
[EMAIL PROTECTED] and [EMAIL PROTECTED] Both seem to be
mailing list management softwares. If anyone subscribed these
addresses to php-general, it is a bad joke and he/she should fry in
hell for eternity.
Matt Babineau wrote:
Hmm....wondering why I keep receiving email sent to the list, that has
this stupid attachment...anyone else getting these?
Matt
--
Raditha Dissanayake
-------------------------------------------------------------
http://www.radinks.com/sftp/
Lean and mean Secure FTP applet with Graphical User Inteface.
just 150 Kilo Bytes
--- End Message ---
--- Begin Message ---
Please see the attached file for details.
--- End Message ---
--- Begin Message ---
I've problems uploading binary files via POST. They get corrupt.
As told on this pag: http://se2.php.net/features.file-upload in the comments
there are some walkarounds for this, but I can't found thoose rows to edit
in the apache config.
Sol 1:
Your binary files may be uploaded incorrectly if you use modules what recode
characters. For example, for Russian Apache, you should use
<Files ScriptThatReceivesUploads.php>
CharsetDisable On
</Files>
I've tried to add this in the very bottom of the apahe config file but when
I then restart apache, I get an error for this.
If you're using Apache 2, you may have to comment out the following lines in
your Apache config
SetOutputFilter PHP
SetInputFilter PHP
With these in, my binary files were incorrectly uploaded
I'cant find theese rows in the apache config file.
Anyone have another solution for this problem?
--- End Message ---
--- Begin Message ---
Please see the attached file for details.
--- End Message ---
--- Begin Message ---
Please see the attached file for details.
--- End Message ---
--- Begin Message ---
See the attached file for details
--- End Message ---
--- Begin Message ---
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Hello ,
> I have installed apache and php on AIX.
> I compiled my extension module and put it in the
> usr/local/lib/php/extensions/no-debug-non-zts-20020429 directory.
> In my PHP script i have the code dl('php_API.a');When the script is executed
> i get the following message on the web browser.
>
> Warning: dl(): Unable to load dynamic library
> '/usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_API.a' - No
> such file or directory in /usr/local/apache/htdocs/writeread.php on line 9
>
> Fatal error: Call to undefined function: read() in
> /usr/local/apache/htdocs/read.php on line 17
> What can be the reason???
> Thanks
> Ashish
Make sure that you have the extensions in the directory set in your
php.ini - look for this
; Directory in which the loadable extensions (modules) reside.
extension_dir = ./
If you have no php.ini, run a script containing phpinfo() and see what the
default location for loadable extensions is.
Cheers
--
Quod subigo farinam
$email =~ s/oz$/au/o;
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?
--- End Message ---
--- Begin Message ---
Are all libraries required by php_API.a in your library path?
Ashish Borkar wrote:
Hello ,
I have installed apache and php on AIX.
I compiled my extension module and put it in the
usr/local/lib/php/extensions/no-debug-non-zts-20020429 directory.
In my PHP script i have the code dl('php_API.a');When the script is executed
i get the following message on the web browser.
Warning: dl(): Unable to load dynamic library
'/usr/local/lib/php/extensions/no-debug-non-zts-20020429/php_API.a' - No
such file or directory in /usr/local/apache/htdocs/writeread.php on line 9
Fatal error: Call to undefined function: read() in
/usr/local/apache/htdocs/read.php on line 17
What can be the reason???
Thanks
Ashish
--- End Message ---
--- Begin Message ---
hi all!
i have a problem with php 4.0.6 using the dl() command. when i try to load
the isis_dll_php-4.0.6.dll library, PHP always tells me
"Unable to load dynamic library 'C:\Program
Files\PHP\4.0.6\extensions\isis_dll_php-4.0.6.dll' The module could not be found"
yes, i am 100 percent sure that paths are set correctly and i can load any
other extension but not this one.
i am using win2k/IIS, i have read that dl() might not work with IIS but then
again, preloading the library from within php.ini also fails, with the same
error message.
so, does this mean that my DLL is faulty or is thi smore some PHP or IIS
problem? has anyone else used the ISIS-dll with PHP?
thanks for any help!
eike
--
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post
--- End Message ---
--- Begin Message ---
Please see the attached file for details.
--- End Message ---
--- Begin Message ---
I got alot of this error in my apache log, how do I fix it?
[warn] Cannot get media type from 'application-x-httpd-php'
--- End Message ---
--- Begin Message ---
Should be application/x-httpd-php. I bet you have this mistake in your
apache config files.
Peter Berglund wrote:
I got alot of this error in my apache log, how do I fix it?
[warn] Cannot get media type from 'application-x-httpd-php'
--- End Message ---
--- Begin Message ---
How to fix, where's the problem?
"Marek Kilimajer" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Should be application/x-httpd-php. I bet you have this mistake in your
> apache config files.
>
> Peter Berglund wrote:
>
> > I got alot of this error in my apache log, how do I fix it?
> >
> > [warn] Cannot get media type from 'application-x-httpd-php'
> >
> >
> >
>
--- End Message ---
--- Begin Message ---
grep -r application-x-httpd-php /etc/httpd/conf/
now you now the filename, change application-x-httpd-php to
application/x-httpd-php and restart apache
Peter Berglund wrote:
How to fix, where's the problem?
"Marek Kilimajer" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
Should be application/x-httpd-php. I bet you have this mistake in your
apache config files.
Peter Berglund wrote:
I got alot of this error in my apache log, how do I fix it?
[warn] Cannot get media type from 'application-x-httpd-php'
--- End Message ---
--- Begin Message ---
http://www.beamhost.co.uk/hosting.html
I'm moving hosts with our site at work...
I found these guys and am very impressed.
Has anyone had any dealings with them? Know if they are any good?
Tris...
*********************************************************************
The information contained in this e-mail message is intended only for
the personal and confidential use of the recipient(s) named above.
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is
strictly prohibited. If you have received this communication in error,
please notify us immediately by e-mail, and delete the original message.
***********************************************************************
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Decapode Azur [mailto:[EMAIL PROTECTED]
> Sent: 20 August 2003 00:10
>
> > unset($A[2]);
>
> No this function does not exactly what I want.
> unset() makes empty hole with $A[2] = Null
>
> I would like to have this result :
> Array
> (
> [0] => a
> [1] => b
> [2] => d
> [3] => e
> [4] => f
> )
> and not this one :
> Array
> (
> [0] => a
> [1] => b
> [3] => d
> [4] => e
> [5] => f
> )
I'm compelled to ask *why* you want that result. In most cases it makes no
difference to your coding, so the only real reason I can see is a somewhat
obsessive desire for neatness!
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: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
--- End Message ---
--- Begin Message ---
Thanks to all (actually just one) that answered my
question. Unfortunatelly I was hoping a more
"complete" answer since the part I asked was not the
main goal... bu t anyway...
I'd like to ask then if the viewers could validate my
new approach or at least point ways of actually
implementing it.
Suppose I use Xerces and tidy to turn two html files
into two xhtml ones.
I'd like to remove the data found between the Tags and
generate two new files only with the scructure
elements (tables, Br, p and so on).
Then I could use regular diff from unix and if they
differ in more than X% I assume they are different.
Assuming that this approach is ok any tips regarding
the actual implementation ? Any snippets of code
would be great.
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
--- End Message ---
--- Begin Message ---
Please see the attached file for details.
--- End Message ---