you close the input file in while loop ( fclose($fp); )
"Bryan Koschmann - Gkt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Can someone give me a hand here? I am really lost as to what is
going on.
> I have a file that looks like this
>
> user1,Store 1 - ABC street
> user2,Store
hi all,
' .
'CRYPT_STD_DES ' . CRYPT_STD_DES . "\n" .
'CRYPT_EXT_DES ' . CRYPT_EXT_DES . "\n" .
'CRYPT_MD5 ' . CRYPT_MD5 . "\n" .
'CRYPT_BLOWFISH ' . CRYPT_BLOWFISH . '';
echo crypt('clear_pass', '$1$salt1234$');
?>
// outputs
CRYPT_STD_DES 1
CRYPT_EXT_DES 0
CRYPT_MD5 1
CR
At http://www.php.net/ChangeLog-4.php#4.2.0 there is a note (Note: Apache2
support is EXPERIMENTAL.)
Is this note still justified for PHP/4.2.2? Is it about security?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
There is a note at http://www.php.net/ChangeLog-4.php for Version 4.2.0
(Note: Apache2 support is EXPERIMENTAL.)
Is it still justified?
adu
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
All you have to do is to call
session_name("EmailSess");
session_start();
in rest of pages.
BTW: You don't really need to call session_name()
"Manisha" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am facing so many problems - first file lock and now fo
No validating user input is needed if you are using OCIBindByName.
See also the Avertisment at www.php.net/OCIBindByName
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi the M.L.
>
> I have to validate forms user inputs before the construction of my query
t
You can use the 'magic constants' __FILE__ and __LINE__
For example, if you have an editor that can replace the newline "\n"
character, you can replace all "\n" with
"\nerror_log(__FILE__ . '[' . __LINE__ . ']');"
"Nico Van Der Dussen" <[EMAIL PROTECTED]> wrote in message
3CC45EB5.6064.19C3129@l
"Craig Westerman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a simple count file named count_db that contains ONLY the
following:
>
> {
> 'total' => 3954
> }
>
> How do I open file, find numbers in the file, add $newnumbers to existing
> number
"Kris Vose" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
How would you go about deleting a specific line in a textfield via PHP? For
example, I want to delete line 2 only and save the changes. How would I go
about doing this using fopen and fwrite?
Kris
I get the "PHP Fatal error: Allowed memory size of N bytes exhausted" and I
want to check free memory at some point in a script. How can I do that?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
{ header("Location: http://www.XXX.edu/index.php?variable=$variable";);
exit;}
"Joe" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am using header function to redirect browser.
>
> { header("Location: http://www.XXX.edu/index.php";);
> exit;}
>
> Alth
http://php.net/ereg
"Ron" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How would I compare to variables where I would want one variable to equal
> only part or some of the other variable?
> Here is the code
>
> if ($HTTP_USER_AGENT !== "%MSIE 5.5%") {
> pr
ROTECTED]> wrote
> Make sure you have GD 2.0.1 and PHP 4.0.6 or later for creating true-color
> PNGs, per the manual:
>
> http://php.net/manual/en/function.imagecreatetruecolor.php
>
> -Andy
>
>
> > -Original Message-
> > From: Adrian Ciutureanu [mailt
Is there any way to tell ImagePNG() to create PNG24 images instead of PNG8
images? Seems that ImageCreateFromPNG() can read PNG24, but ImagePNG()
writes only PNG8.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
All messages in this thread reffers to applications for edit PHP/HTML. The
question was about a WSIWYG Editor for HTML files that runs in browser, not
an application that you install and edit local files! Did anybody click on
the link to EZEdit?
"Bob Clingan" <[EMAIL PROTECTED]> wrote in message
http://php.net/manual/en/language.variables.predefined.php
$REMOTE_HOST = gethostbyaddr($REMOTE_ADDR);
"Dominic" <[EMAIL PROTECTED]> wrote
> It's there anyway to find out the client machine name by using php?
> Thanks!
>
> Dominic
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
Note that using strings without quotes generates a warning that is not
displayed in the default configuration of PHP. The message looks like
"Warning: Use of undefined constant anyString - assumed 'anyString' in
test.php on line 3"
(line 3: echo anyString;)
If you want to see these warnings, set
EZEdit editor works 99% on client (JavaScript) and it works only in a IE5+
browser. You'll need ColdFusion only for remote file acces (commands like
insert picture).
"Bob Clingan" <[EMAIL PROTECTED]> wrote
> Does anyone know of any WSIWYG editors that you can plug into a site using
> PHP. I recen
--- example.php ---
"Denis Croombs" <[EMAIL PROTECTED]> wrote in message
004701c11426$b94b7f10$[EMAIL PROTECTED]">news:004701c11426$b94b7f10$[EMAIL PROTECTED]...
> Hi
> I am transfering a NT IIS website with forms to APACHE and PHP, but need
> exampl
http://php.net/require_once
> -Original Message-
> From: ROsen [mailto:[EMAIL PROTECTED]]
> Sent: 23 iulie 2001 14:17
> To: [EMAIL PROTECTED]
> Subject: [PHP] Check for exist function
>
>
> Hi,
> How can I check, thath some function is declared and to do
> not declare it
> second time
> -Original Message-
> From: Richard Kurth [mailto:[EMAIL PROTECTED]]
> Sent: 23 iulie 2001 02:36
> To: php
> Subject: [PHP] removing lines from array
>
>
>
> I an trying to figure out how to remove lines from a text file from
> within an array.
>
> I fill the array with this
Default settings for sessions is to use cookies that expires when you
close (all instances of) the browser. If you are simply type 1.php and
then 2.php in Address your code must work. But, again: if you are using
the default configuration.
> -Original Message-
> From: Bernie Kruger [mailt
http://php.net/number_format
> -Original Message-
> From: Tim Olsen [mailto:[EMAIL PROTECTED]]
> Sent: 18 iulie 2001 10:52
> To: [EMAIL PROTECTED]
> Subject: [PHP] formating numbers to two decimal points - money - best
> ways
>
>
> Anyone have functions for formatting numbers being m
$content = '';
$new_str = ''
> -Original Message-
> From: Jeroen Olthof [mailto:[EMAIL PROTECTED]]
> Sent: 17 iulie 2001 17:38
> To: [EMAIL PROTECTED]
> Subject: [PHP] regexp. king needed (is it possible ???)
>
>
> ereg_replace("$opentag([^*]*)$closetag",
> $this->OPENTAG.$loopHandle.$
$MyArray['BUYVAL'] = 1.23;
> -Original Message-
> From: Sharat Hegde [mailto:[EMAIL PROTECTED]]
> Sent: 17 iulie 2001 13:11
> To: [EMAIL PROTECTED]
> Subject: [PHP] Adding elements to an array
>
>
> Hello,
>
> I have a requirement to add elements to an associate array
> dynamically ba
How do you know it worked? :)
> -Original Message-
> From: Morten Winkler Jørgensen [mailto:[EMAIL PROTECTED]]
> Sent: 17 iulie 2001 12:54
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Output (Urgent!)
>
>
>
> >> How you want to get a value from client side to php on the
> same page?
>
I don't think this code do what he want... You are trying to mix
client-side code with server-side code, but you can't do in that way.
The ONLY way to obtain client screen resolution into a PHP variable is
send data from client to server.
> -Original Message-
> From: Morten Winkler Jørgen
$printerFriendlyContent = eregi_replace(']*>', '', $htmlContent);
You can also use
$printerFriendlyContent = eregi_replace('src="[^"]*"',
'src="images/spacer.gif"', $htmlContent);
to preserve formatting (spacer.gif = 1x1 px transparent)
> -Original Message-
> From: [EMAIL PROTECTED] [mai
foreach($oldArray as $a)) {
list($key, $value) = each($a);
$newArray[$key] = $value;
}
> -Original Message-
> From: Michael Champagne [mailto:[EMAIL PROTECTED]]
> Sent: 12 iulie 2001 17:37
> To: PHP General Mailing List
> Subject: [PHP] Array problem in PHP. Please help.
$result = mysql_db_query("database","select item1, item2 from table");
while ($row = mysql_fetch_array($result)) {
$myArray[$row['item1']] = $row['item2'];
}
> -Original Message-
> From: Martin Lucas [mailto:[EMAIL PROTECTED]]
> Sent: 12 iulie 2001 16:25
> To: '[EMAIL PROTECTED]'
http://www.w3.org/TR/WD-html40-970708/charset.html
> -Original Message-
> From: Mark Lo [mailto:[EMAIL PROTECTED]]
> Sent: 12 iulie 2001 08:46
> To: [EMAIL PROTECTED]
> Subject: [PHP] charset
>
>
> Hi,
>
>What will the problem if i don't specific what charset to
> use in the
> metal t
http://php.net/rename
> -Original Message-
> From: Randy Johnson [mailto:[EMAIL PROTECTED]]
> Sent: 13 iulie 2001 20:53
> To: Randy Johnson; Chris Lambert - WhiteCrown Networks;
> [EMAIL PROTECTED]
> Subject: [PHP] Rename a File?
>
>
> How do I rename a file on Linux in PHP?
>
> Thanks
If I know well, "Undefined index" is a warning, not an error.
If you have
error_reporting = E_ALL
in php.ini (not error_reporting = E_ALL & ~E_NOTICE)
$a = array('a' => 'xxx', 'b' => 'yyy');
and you try to access $a['c'], then PHP will report that you are trying
to access an undefined index array.
you probably mean
$cookie_expire = time() + 86400 * 365;
> -Original Message-
> From: James Holloway [mailto:[EMAIL PROTECTED]]
> Sent: 11 iulie 2001 16:02
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Cookie Expiry Dates?
>
>
> Hi Jeff,
>
> Yes, use time()
>
> Example 86400 secon
int setcookie (string name [, string value [, int expire [, string path
[, string domain [, int secure])
expire = time() + 3600*24*30;
Note that 'expire' is the client relative to GMT time. So, if the client
has the local time set to 01/01/1985, your cookie will be born dead ;)
> -Origina
', '',
eregi_replace('.*', '', $s));
?>
> -Original Message-
> From: Heiko Wilms [mailto:[EMAIL PROTECTED]]
> Sent: 11 iulie 2001 13:32
> To: [EMAIL PROTECTED]
> Subject: [PHP] Getting the title of a web page
>
>
> Hi,
>
> when I open a web page within my php-script with fopen(...) I
That's IMPOSIBLE!
> -Original Message-
> From: James Bartlett [mailto:[EMAIL PROTECTED]]
> Sent: 11 iulie 2001 05:27
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Variables
>
>
> I have tried that also...it still does not want to work...
> - Original Message -
> From: Dallas
Use $HTTP_REFERER
http://php.net/manual/en/language.variables.predefined.php
> -Original Message-
> From: Jack [mailto:[EMAIL PROTECTED]]
> Sent: 11 iulie 2001 01:23
> To: [EMAIL PROTECTED]
> Subject: [PHP] http header
>
>
> Dear all folks,
> I want to get the url of the previous page t
http://www.PostgreSQL.org
> -Original Message-
> From: kachaloo [mailto:[EMAIL PROTECTED]]
> Sent: 9 iulie 2001 16:58
> To: [EMAIL PROTECTED]
> Subject: [PHP] mysql, interbase, etc
>
>
> Hi,
> Which db supports trigers and stored procedures and is
> also free ? I
> thought mysql
http://php.net/isset
> -Original Message-
> From: James Bartlett [mailto:[EMAIL PROTECTED]]
> Sent: 9 iulie 2001 14:44
> To: [EMAIL PROTECTED]
> Subject: [PHP] Help with a variable
>
>
> Hi,
>
> Is there some way that I can check to see if a variable is present?
>
> e.g.
>
> if (vari
http://php.net/array_unique
> -Original Message-
> From: Aaron Bennett [mailto:[EMAIL PROTECTED]]
> Sent: 8 iulie 2001 08:52
> To: [EMAIL PROTECTED]
> Subject: [PHP] Getting any possible value inside an array
>
>
> Hi everyone...
>
> Does someone have a quick and dirty way of returning
You probably want to make statistics for web pages. The most common way
to do that is to use a PHP script that outputs an image and writes to a
database some data. The code may look like this:
/** stat.php /
/** any_file.html ***/