"Andrew Perevodchik" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Why doesn't this simple example work?
>
> ereg ("aaa(?:bbb|ccc)aaa", $string);
>
> It causes an error. However "?:" command is
> documented in a manual of my version of PHP4.
It would probably
"Jeremy Morano" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi everone...
> I'm having a little problem. The code below pops up a password dialog box
> where the user types in a username and a password to be able to proceed.
> However, if the user does no
"Balaji Ankem" <[EMAIL PROTECTED]> wrote in message
01bc01c137e0$280b0f60$[EMAIL PROTECTED]">news:01bc01c137e0$280b0f60$[EMAIL PROTECTED]...
> Hi friends,
> I would like to implement sending an e-mail through SMTP server.
>
> Here my SMTP server needs authentication.
>
> How to pass the usern
"Theodore Brinkman" <[EMAIL PROTECTED]> wrote in
message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I wrote a small script to generate an image file containing a version
number
> for use in some web apps we are coding at work. The problem is, that with
> an up-to-date version of IE, the imag
> thanks, another question is what does the ? means in this line?
>From the PHP manual:
Another conditional operator is the "?:" (or ternary) operator, which
operates as in C and many other languages.
(expr1) ? (expr2) : (expr3);
This expression evaluates to expr2 if expr1 evaluates to TRUE, a
> Does anyone know if there's a php command line parser,
> that lets you run php-scripts from the command prompt instead of running
> them over http. (much like perl)
Make sure you compiled php as a binary.. and then start your script with:
#!/path/to/php -q
Then simply perform a chmod 755 or
ng the manual every now and then wouldn't hurt... really, it
wouldn't :).
auto_prepend_file string
Specifies the name of a file that is automatically parsed before the
main file. The file is included as if it was called with the include()
function, so include_path is used.
The speci
ts = fread($toread, filesize($filename));
>fclose($toread);
>echo "$contents";
> ?>
>
>
It would be useful if you would point out which error it is you are
encountering.
/ franklin
--
Franklin van Velthuizen [EMAIL PR
me?
header("Content-Disposition: filename=$filename");
/ franklin
--
Franklin van Velthuizen [EMAIL PROTECTED]+46-(0)70-6786613
Ebiris Applications AB http://www.ebiris.se/ +46-(0)19-109917
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMA
Nic Skitt wrote:
>Hi all,
>
>I am constantly getting Headers already sent errors.
>
>What I dont understand is why when I read something that could have come
>from a cookie or session does that right out to headers.
>
>eg:
>
>if (!$HTTP_COOKIE_VARS["TrackID"]){
>
>}
>
>The header error refers to
Brandon Orther wrote:
>Hello,
>
>Is there a way to put an if statement in a variable?
>
>For example:
>
>$var = "Hello".IF($var2 = 1) { ."Mr. Bean". } else { ."New Comer". }."
>To The Coffee House.";
>
$var = "Hello ".($var2==1 ? "Mr. Bean" : "New Comer");
/franklin
--
PHP General Maili
[EMAIL PROTECTED] wrote:
>Whatever I do (phpinfo(), echo $HTTP_POST_FILES['userfile']['type']) to
>display the array $HTTP_POST_FILES , I get nothing.
>
Did you include enctype="multipart/form-data" in your form tag?
/franklin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
Kyle Smith wrote:
>ok i have this code to do whats below, but its not working
>
Try to use file(), which will return an array.
So that would be:
$lines = file(filename);
for($i=0; $i<2; $i++)
{
print($lines[$i]);
}
/franklin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
*no* idea what causes it though... :(
Any ideas, anyone?
/Franklin
--
Franklin van Velthuizen [EMAIL PROTECTED]+46-(0)19-10 99 17
Ebiris AB www.ebiris.se +46-(0)19-10 99 10
like:
http://blabla/file.php/value
and use "value" as a parameter, obviously.
I just tried it, but all I got was an internal server error :(.
Anyone who knows *anything* about this?
Take care,
/franklin
--
Franklin van Velthuizen [EMAIL PROTECTED]+46-(0)19-10 99 17
15 matches
Mail list logo