[PHP] Re: fopen/fgets

2003-03-06 Thread Adrian Ciutureanu
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

[PHP] crypt() MD5 problem on PHP 4.2.3

2003-02-24 Thread Adrian Ciutureanu
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

[PHP] Apache 2 and PHP

2002-08-21 Thread Adrian Ciutureanu
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

[PHP] Apache 2

2002-08-20 Thread Adrian Ciutureanu
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

[PHP] Re: Session problem

2002-05-24 Thread Adrian Ciutureanu
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

[PHP] Re: validating user input

2002-04-24 Thread Adrian Ciutureanu
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

[PHP] Re: From where was function called?

2002-04-22 Thread Adrian Ciutureanu
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

[PHP] Re: adding numbers to a file

2002-04-22 Thread Adrian Ciutureanu
"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

[PHP] Re: deleting lines in a textfield

2002-04-22 Thread Adrian Ciutureanu
"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

[PHP] How to get allocated memory?

2002-04-22 Thread Adrian Ciutureanu
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

[PHP] Re: [HELP] redirect browser & pass variable !

2002-04-21 Thread Adrian Ciutureanu
{ 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

[PHP] Re: Comparrison

2002-03-27 Thread Adrian Ciutureanu
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

[PHP] Re: ImagePNG problem

2001-08-20 Thread Adrian Ciutureanu
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

[PHP] ImagePNG problem

2001-08-20 Thread Adrian Ciutureanu
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

[PHP] Re: WSIWYG Editor using PHP?

2001-07-26 Thread Adrian Ciutureanu
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

[PHP] Re: Client Machine Name

2001-07-25 Thread Adrian Ciutureanu
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

[PHP] Re: String Comparison

2001-07-25 Thread Adrian Ciutureanu
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

[PHP] Re: WSIWYG Editor using PHP?

2001-07-24 Thread Adrian Ciutureanu
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

[PHP] Re: Example forms

2001-07-24 Thread Adrian Ciutureanu
--- 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

RE: [PHP] Check for exist function

2001-07-23 Thread Adrian Ciutureanu
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

RE: [PHP] removing lines from array

2001-07-22 Thread Adrian Ciutureanu
> -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

RE: [PHP] Session problems

2001-07-19 Thread Adrian Ciutureanu
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

RE: [PHP] formating numbers to two decimal points - money - best ways

2001-07-18 Thread Adrian Ciutureanu
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

RE: [PHP] regexp. king needed (is it possible ???)

2001-07-17 Thread Adrian Ciutureanu
$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.$

RE: [PHP] Adding elements to an array

2001-07-17 Thread Adrian Ciutureanu
$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

RE: [PHP] Output (Urgent!)

2001-07-17 Thread Adrian Ciutureanu
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? >

RE: [PHP] Output (Urgent!)

2001-07-17 Thread Adrian Ciutureanu
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

RE: [PHP] how to strip just the tag from html file?

2001-07-16 Thread Adrian Ciutureanu
$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

RE: [PHP] Array problem in PHP. Please help.

2001-07-12 Thread Adrian Ciutureanu
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.

RE: [PHP] associative arrays

2001-07-12 Thread Adrian Ciutureanu
$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]'

RE: [PHP] charset

2001-07-11 Thread Adrian Ciutureanu
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

RE: [PHP] Rename a File?

2001-07-11 Thread Adrian Ciutureanu
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

RE: [PHP] Undefined index?

2001-07-11 Thread Adrian Ciutureanu
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.

RE: [PHP] Re: Cookie Expiry Dates?

2001-07-11 Thread Adrian Ciutureanu
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

RE: [PHP] Cookie Expiry Dates?

2001-07-11 Thread Adrian Ciutureanu
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

RE: [PHP] Getting the title of a web page

2001-07-11 Thread Adrian Ciutureanu
', '', 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

RE: [PHP] Variables

2001-07-10 Thread Adrian Ciutureanu
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

RE: [PHP] http header

2001-07-10 Thread Adrian Ciutureanu
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

RE: [PHP] mysql, interbase, etc

2001-07-09 Thread Adrian Ciutureanu
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

RE: [PHP] Help with a variable

2001-07-09 Thread Adrian Ciutureanu
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

RE: [PHP] Getting any possible value inside an array

2001-07-08 Thread Adrian Ciutureanu
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

RE: [PHP] $phpvar = javascriptvar???

2001-07-06 Thread Adrian Ciutureanu
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 ***/