php-general Digest 31 Dec 2004 19:40:00 -0000 Issue 3201
Topics (messages 205411 through 205421):
Re: How to argue with ASP people...
205411 by: Robby Russell
205415 by: John Holmes
205417 by: Richard Davey
205418 by: Richard Davey
for win, does sapi/cgi fastcgi handle only 1 request at a time?
205412 by: Xuefer Tinys
Hosting woes and PHP 4.3.8 install (Interland)
205413 by: Info.Best-IT
Re: Quick compile question --with-oci8
205414 by: Brian Duke
205416 by: John Nichel
Quickref on search (php.net)
205419 by: � isso ai!
Re: Understanding flock()
205420 by: Gerard Samuel
Apache 2.0.52 / PHP 4.3.10 Integration Question...
205421 by: Robin Getz
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 ---
sure, add this to the top of your file:
ob_start();
On Fri, 2004-12-31 at 04:50 +0000, mail.pmpa wrote:
> Can I do any session handling before calling header("Location: $url"); ?
>
> Pedro Almeida.
>
>
> -----Mensagem original-----
> De: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]
>
> mail.pmpa wrote:
> > Don't mean to start a discussion whatsoever, I love php, but one thing i
> > can't do in php is Response.Redirect .
> > Apart from that no complains so far :)
>
> header("Location: $url");
>
> which, by the way, makes a hell of a lot more sense. It's just an HTTP
> response header like any other response header and it is called
> Location, not Redirect.
>
> -Rasmus
>
--
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON | www.planetargon.com
* Portland, OR | [EMAIL PROTECTED]
* 503.351.4730 | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
* --- Now supporting PHP5 ---
****************************************/
--- End Message ---
--- Begin Message ---
mail.pmpa wrote:
Can I do any session handling before calling header("Location: $url"); ?
Yeah, sure. You just can't have any output before you redirect with a
Location header (unless you use output buffering as a workaround).
This is basic HTTP and ASP has to play by the same rules. If you can
have output before Response.Redirect, then ASP is just doing the
buffering for you before it sends a Location header.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
--- End Message ---
--- Begin Message ---
Hello John,
Friday, December 31, 2004, 8:14:31 AM, you wrote:
JH> This is basic HTTP and ASP has to play by the same rules. If you
JH> can have output before Response.Redirect, then ASP is just doing
JH> the buffering for you before it sends a Location header.
Which is exactly what it does. It would be interesting to see a "how
to do X from ASP in PHP" article perhaps :)
Doing a reverse type article would require lots of "you must buy this
component, install this DLL, etc" though ;)
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I am not young enough to know everything." - Oscar Wilde
--- End Message ---
--- Begin Message ---
Hello Tony,
Thursday, December 30, 2004, 4:38:18 PM, you wrote:
TDC> I am not totally against ASP, but it would have to be pretty good
TDC> to get me to switch at this point (PHP seems to do everything I
TDC> need)... But I will need to convince him of this...
While I know for sure that there is nothing ASP can do that PHP
cannot, I think your question should perhaps relate to your business
venture more than a personal "is it better or worse?". ASP, on a
Windows server, is actually a very stable development platform - just
as PHP is. If you have specific needs for components that already
exist in the ASP world, then perhaps it is a better route for you. Or
if you simply must host on a Windows server (although that's another
security related kettle of fish altogether), then again ASP would
work. Ultimately what are you express needs? because PHP can
confidently do anything you realistically need of it - so it doesn't
really come down to features at the end of the day. It comes down to
requirements.
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I am not young enough to know everything." - Oscar Wilde
--- End Message ---
--- Begin Message ---
seems it will block all other php requests
i've looked into the source, and seems it's only pre-fork under *nix not win
any ideas?
--- End Message ---
--- Begin Message ---
My hosting company is very stubborn when it comes to functionality. They do
not compile their version of PHP 4.3.8 with DOM so now none of my XML
generating code works.
The environment is a virtual host meaning that I share space on a server
with other users but only I have access to my stuff. The software packages
including Apache and PHP are installed with scripts that create links from
where the files should be to where the files actually are (their home in
virtual package land). For example the httpd.conf file is not in the
/etc/httpd directory, a link is there to point Apache to the actual file.
I have access to make changes to these files, that is not my problem. My
problem is breaking the other PHP dependent applications such as Squirrel
Mail.
So my question is, where is php actually installed on a normal machine? I
would like to compile 4.3.8 with DOM support, and point Apache to the new
.so file, in a location of my choice. Does this sound possible if so would
it be this simple?
Thanks for the insight!
Tim
--- End Message ---
--- Begin Message ---
Thanks John,
Can you (or someone on the list) direct me to the oracle site where I can
download the client files? The only client files I saw were for the 10g
instantclient. Our current build says the libraries need don't exist with
that one.
> -----Original Message-----
> From: John Nichel [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 30, 2004 6:19 PM
> To: [email protected]
> Subject: Re: [PHP] Quick compile question --with-oci8
>
> Brian Duke wrote:
> > This has been going on for about a week now. I have an oracle client
> > installed. I have php4 source installed all on a stripped down fedora
> > server. We get various errors. Like the infamous ld can find XXX in
> > -lclntsh.
> >
> > Correct me if I'm wrong but we will have to install oracle8 || 9i before
> we
> > can compile php --with-oci8. I don't really want to run oracle. Our
> local
> > server only needs to use the oci8 functions to log into the
> datawarehouse
> > and update our local mysql database but after a week of frustration I
> think
> > that's what we have to do.
> >
> > Thanks all.
>
> You only need the client libraries, not the db itself. If you have the
> Oracle CD's, the libraries will be on there (you can also download this
> from Oracle).
>
> --
> By-Tor.com
> ...it's all about the Rush
> http://www.by-tor.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Brian Duke wrote:
Thanks John,
Can you (or someone on the list) direct me to the oracle site where I can
download the client files? The only client files I saw were for the 10g
instantclient. Our current build says the libraries need don't exist with
that one.
http://www.oracle.com/technology/software/products/oracle9i/index.html
--
By-Tor.com
...it's all about the Rush
http://www.by-tor.com
--- End Message ---
--- Begin Message ---
anyone know how to make it works?
I get files from CVS, created funclist.txt, put some functions and type
"make" to generate pages, everything works fine but when i try to open
'test.html' i got javascript error....
Anyone know how to make it work?
thanks!
--- End Message ---
--- Begin Message ---
Marek Kilimajer wrote:
Gerard Samuel wrote:
Im trying to simulate conditions, to see how flock works.
Can anyone verify with the example code below,
that data, never gets written to the file.
//1 & //2 are supposed to be processes???
For me, the var_dump() reports ->
int(7) bool(false)
Thanks
$fp = fopen('foo.txt', 'w'); //1
flock($fp, LOCK_EX) or die('Unable to lock'); //1
unlink('foo.txt') or die('Unable to remove foo.txt'); //2
$bytes = fwrite($fp, 'testing'); //1
fclose($fp); //1
var_dump($bytes, file_get_contents('foo.txt')); //1
To my knowledge (and might apply to unices only) unlink only "unlinks"
file, it does not delete it. Unlinking removes link (reference,
filename) to an inode that holds the file. Inode is deleted by the
kernel once the link count referencing the inode reaches zero and the
inode is no longer opened by any process. I hope I did not confuse you
:-)
So the result is that even if process 2 unlinked the filename link,
process 1 had opened the file (inode) so it's not removed untill it's
closed and process 1 can write to it. file_get_contents() failed
because the link no longer exists.
After the first time reading your reply, its starting to make sense.
I'll have to think about it some more.
Thanks for your reply, and have a happy new year...
--- End Message ---
--- Begin Message ---
Hi.
I am trying to get Apache 2.0.52 / PHP 4.3.10 working with some scripts I
am using.
I have a file named /www/projects which is a php script.
When I type the url: www.site/projects/variable
I want variable passed to the script "projects"
I have the the http.conf set up as:
<Files projects>
SetInputFilter PHP
SetOutputFilter PHP
AcceptPathInfo On
</Files>
Which used to work with apache 2.0.40 and php 4.2.3 - but what happens now,
is I actually get passed the php script back as text to the browser.
Any thoughts? I poked around on google, and saw at
http://dan.drydog.com/apache2php.html
"However, SetOutputFilter / SetInputFilter no longer works for me. It used
to work with an earlier PHP 4.x or Apache 2 version, but not with Apache
2.0.47/PHP 4.3.3. I understand this (PHP as an Apache 2 filter) is
experimental, so I don't use it anymore"
I tried things like:
AddType text/html php
But I keep getting the same thing in my browser:
<?php
/**
* Projects Redirector
*
---snip---
?>
Any thoughts? Thanks in advanced.
-Robin
--- End Message ---