Re: [PHP] Automatic include of files containing functions

2002-12-11 Thread R'twick Niceorgaw
I don't know about the efficiency .. but to do it .. you can use
function_exists() to see if a function is already defined if not include the
file for that function before using a function.

HTH

- Original Message -
From: "Dave [Hawk-Systems]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 10:40 AM
Subject: [PHP] Automatic include of files containing functions


> On a few sites we have used a master include or function file containing
all the
> unctions required for the site...  Some of these function files may
contain
> 30-40 functions and some pages use only 1 function from the file.
>
> Would like to be a little more dynamic in our approach of this, and have
started
> moving all the functions into their own files...  for example moving
connectdb()
> from the functions.php file to a connectdb.php or connectdb.inc file.
>
> Then for any particular php page, we would pull in only the functions that
we
> need for that particular page.  From a script/function management
perspective
> this would be ideal.
>
> Questions//
>
> What would this do as far as speed and efficiency (having to load 4 or 5
> includes/requires rather than one larger include that has 25 functions
that
> aren't needed or used)?
>
> Then the hard one...
>
> Is there a way to have the PHP script dynamically pull in the required
include
> files?  for example, have a function at the top of each page to include
any
> files required as a result of functions that exist in the script...  ie:
this
> page uses abc() 123() and so it include/require ./includes/abc.php and
> ./includes/123.php which contain the appropriate functions.
>
> OR
>
> is there an easier way to manage what is becoming an over abundance of
functions
> for particular sites.
>
> Have gotten in the habit of creating a function for anything I have to do
more
> than 1 or 2 times on seperate pages just to speed and simplify code from a
> design and readability point of view.
>
>
> Appreciate any comments.
>
> Dave
>
>
>
> --
> 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




[PHP] GD 2.0 Souce tar ball ?

2002-12-20 Thread R'twick Niceorgaw
Hi guys,
does any one have latest GD 2.0 source tarball and care to share ?
seems like the url http://www.boutell.com/gd is down 

Regards
-R'twick



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php+html help

2002-12-30 Thread R'twick Niceorgaw
Print "Organisation name : .$row[OrgName]."\n"."";


- Original Message -
From: "Denis L. Menezes" <[EMAIL PROTECTED]>
To: "PHP general list" <[EMAIL PROTECTED]>
Sent: Monday, December 30, 2002 11:10 AM
Subject: [PHP] php+html help


Hello friends,

I have the following php output line that works fine :
Print "Organisation name : ".$row[OrgName]."\n"."";

However, I want this line to be in bold, red and size=5. I tried the
following code but fails. Can someone please tell me what is wrong?

Print "Organisation name : .$row[OrgName]."\n"."";

Thanks
Denis




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] ImageCreateFromPNG

2003-01-03 Thread R'twick Niceorgaw
I have something that I use to create simple buttons. I use the command line
interface version of php to create the buttons offline. However, the
function can also be used on an web application easily.
I am creating the image with fixed height and width, you can change it by
using $i_width and $i_height variables in call to ImageCreate /
ImageRectangle/ImageFtText function.

Change it as you like.  One thing, is the fontfile has to be an absolute
file path.

HTH
-R'twick

Code ---
#!/usr/local/bin/php-cli
 1));
$s_width = $string_size[4];
$s_height = $string_size[5];
$i_width = $s_width+2;
$i_height = -1 * $s_height+2;

$im = imagecreate(115, 22);
$white = imagecolorallocate ($im, 255, 255, 255);
$black = imagecolorallocate ($im,   0,0  ,0);
ImageRectangle ( $im, 0,0, 114, 21,$black);

ImageFtText($im, $pointsize, 0, (122 - $s_width)/2 - 1, 22-(22+$s_height)/2,
$black, $fontfile, $string, array("linespacing" => 1));

ImagePNG ($im,$imagefile);
ImageDestroy ($im);
}
if ($argc <3) {

echo "usage: ". $argv[0]."  \n";
exit (-1);
}
create_image ($argv[1],$argv[2]);
?>
 End
Code ---
- Original Message -
From: "Michael Weiner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 11:58 AM
Subject: [PHP] ImageCreateFromPNG


> Does someone have a script of php function or page that has this code
> working that i can review? I am wanting to create a webpage that will
> let a user enter in an image name (i.e. a png or whatever) and have php
> create an image from that...
>
> Thanks in advance
> Michael Weiner
>
>
> --
> 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




[PHP] help with perl equivalent ?

2003-01-24 Thread R'twick Niceorgaw
Hi all,
I'm pretty much a stranger to perl and now got to convert a perl script to
php. however, at once place I can not understand what the lines are doing
and what could be the equivalent of them in php. Could some one help me with
this ?

Here's my perl code :

   $choice=~s/\.rm//;
   $choicedir=substr($choice, 0, 3);
   $choicedir=~s/^AKM/ogx/;

Regards
-R'twick



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] help with perl equivalent ?

2003-01-24 Thread R'twick Niceorgaw
Thanks Sean

That worked :)

-R'twick

- Original Message -
From: "Sean Burlington" <[EMAIL PROTECTED]>
To: "R'twick Niceorgaw" <[EMAIL PROTECTED]>
Cc: "php" <[EMAIL PROTECTED]>
Sent: Friday, January 24, 2003 11:07 AM
Subject: Re: [PHP] help with perl equivalent ?


> R'twick Niceorgaw wrote:
> > Hi all,
> > I'm pretty much a stranger to perl and now got to convert a perl script
to
> > php. however, at once place I can not understand what the lines are
doing
> > and what could be the equivalent of them in php. Could some one help me
with
> > this ?
> >
> > Here's my perl code :
> >
> >$choice=~s/\.rm//;
> $choice = str_replace('.rm', '', $choice);
> >$choicedir=substr($choice, 0, 3);
> $choicedir=substr($choice, 0, 3);
> >$choicedir=~s/^AKM/ogx/
> $choice = preg_replace('/^AKM/', 'ogx', $choice);
>
>
>
> --
>
> Sean
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] A way to break up the string????

2003-01-29 Thread R'twick Niceorgaw
how about 

$name_array = explode(" ",$name);
$first_name = $name_array[0];
$last_name = $name_array[count($name_array) - 1];
unset($name_array[0]);
unset ($name_array[count($name_array)]);
$middle_name = implode(" " ,$name_array);


-R'twick


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] mySql session handler

2003-01-30 Thread R'twick Niceorgaw
Hi all,

Is it possible to setup a mysql session handler on a server basis (
something in php.ini file) so that individual pages do not have to set it up
using call to session_set_save_handler() ?

-R'twick



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] image size from text/font size

2003-02-03 Thread R'twick Niceorgaw
ImageFtBbox() can do this for you.

Here's a portion of my code that uses it. >>

$string="This is some text";
$pointsize = 15;
$fontfile = getcwd()."/arial.ttf";
$string_size = ImageFtBbox($pointsize, 0, $fontfile, $string,
array("linespacing" => 1));
$s_width = $string_size[4];
$s_height = $string_size[5];
$i_width = $s_width+2;
$i_height = -1 * $s_height+2;
$im = imagecreate($i_width,$i_height );

do whatever you want ot do with $im and destroy it finally


HTH
-R'twick


- Original Message -
From: "Brian V Bonini" <[EMAIL PROTECTED]>
To: "PHP Lists" <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 10:57 AM
Subject: [PHP] image size from text/font size


> Trying to set the image size based on the amount if text/fontsize,
> etc...  Looked through a bunch of the functions but nothing is jumping
> out at me. Does anyone have an example and or can point me to the
> correct function(s) for this.
>
>
>
>
> --
> 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




Re: [PHP] text color in image

2003-02-03 Thread R'twick Niceorgaw
The first ImageColorAllocate(0 function always sets the background color .
So add one more call to ImageColorAllocate() to set the background color
before line
$tx_color = ImageColorAllocate($png,255,255,255);

and then the text will be as you set in $tx_color

HTH
-R'twick
- Original Message -
From: "Brian V Bonini" <[EMAIL PROTECTED]>
To: "PHP Lists" <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 1:42 PM
Subject: [PHP] text color in image


> Any idea why this would NOT create white text?
>
> $png = ImageCreatefrompng("images/menu0.png");
> $tx_color = ImageColorAllocate($png,255,255,255);
> imagettftext($png,12,0,25,16,$tx_color,$font,$text);
>
>
> There IS white (255,255,255) in the source png's palette, I don't know
> weather that makes a difference or not.
>
>
> --
> 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




[PHP] Re: help please

2003-02-25 Thread R'twick Niceorgaw
Please don't multi post.

How you getting the $ToName $FirstName etc fields ? Are they submitted via a
form? If so, check the register_globals setting on the server where it is
not working. You need to set it on or use $_POST /$_GET variables.

HTH
R'twick
"Bionicegg" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello all,
>
>
> I am having problems with a script.  The script works great on one of
my
> sights, however, when I transferred it to another site, it does not
> function.  I contacted my hosting company (both sites are on the same
> server), they told me that I needed to check the script and that it has
> nothing to do with them, since they ran a  test.php and it worked fine.
>Here is the script:
>
> 
> $ToEmail = "[EMAIL PROTECTED]";
>
> $ToSubject = "Flash Contact Form";
>
> $EmailBody = "Sent By: $FirstName\nSenders Email: $Email\n\nMessage
> Sent:\n$ToComments\n";
>
> mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From:
".$FirstName."
> <".$Email.">");
>
> ?>
>
> Please if anyone knows anything about this stuff (Im a newbie to this) You
> help is greatly appreciated!
>
> Thanks in advance,
> mark johnson
>
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] make error on solaris

2003-02-27 Thread R'twick Niceorgaw
Hi all,
I'm trying to get a vanila installation of php 4.3.1(only the cli version)
on a solaris 8 system. This is my first day on a solaris box so I don't know
much about it. I'm running into some errors in the final linking stage. Any
one experienced this problem and got any idea to fix it? (error and my
configuration follows below).

Regards
R;twick

Here's the errors I'm getting

Undefined   first referenced
 symbol in file
wtcLerr
/opt/oracle/app/oracle/product/8.1.7/lib/libclient8.a(kpucc.o)  (symbol
belongs to implicit dependency
/opt/oracle/app/oracle/product/8.1.7/lib/libwtc8.so)
wtcMerr
/opt/oracle/app/oracle/product/8.1.7/lib/libclient8.a(kpucc.o)  (symbol
belongs to implicit dependency
/opt/oracle/app/oracle/product/8.1.7/lib/libwtc8.so)
wtcsrin
/opt/oracle/app/oracle/product/8.1.7/lib/libclient8.a(kpuini.o)  (symbol
belongs to implicit dependency
/opt/oracle/app/oracle/product/8.1.7/lib/libwtc8.so)
wtcsrfre
/opt/oracle/app/oracle/product/8.1.7/lib/libclient8.a(kpuini.o)  (symbol
belongs to implicit dependency
/opt/oracle/app/oracle/product/8.1.7/lib/libwtc8.so)
wtcstu
/opt/oracle/app/oracle/product/8.1.7/lib/libclient8.a(kpucc.o)  (symbol
belongs to implicit dependency
/opt/oracle/app/oracle/product/8.1.7/lib/libwtc8.so)
wtclkm
/opt/oracle/app/oracle/product/8.1.7/lib/libclient8.a(kpucc.o)  (symbol
belongs to implicit dependency
/opt/oracle/app/oracle/product/8.1.7/lib/libwtc8.so)
ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

And here is my configure line
./configure --prefix=/export/home/hdradmin/php --disable-cgi --with-pear --e
nable-ftp --without-mysql --with-oci8




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: date problem

2003-02-27 Thread R'twick Niceorgaw
$date_array=explode("-",$newdate);
$day = $date_array[2];
$month = $date_array[1];
$year = $date_array[0];

Or,
$timestamp - strtotime($newdate);
$today = getdate($timestamp);
$month = $today['month'];
$mday = $today['mday'];
$year = $today['year'];


"Alexander Tsonev" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
> I would ask you a question about date type
> if I have a variable from date type ($newdate) such as 2003-02-17
> how can I separate $newdate into 3 different variables? I want to create
> such variables:
> $day=17
> $month=2
> $year=2003
> I searched a lot, but I didn't find how to do this.
> I'll be very happy if someone helps!
>
> Thanks in advance, Alexander Tsonev
>
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Can't run PHP cli script from Cron

2003-02-28 Thread R'twick Niceorgaw
Shouldn't it be 
#!/usr/local/bin/php 

Or was it just a typo here?

- Original Message - 
From: "Justin Michael Couto" <[EMAIL PROTECTED]>
To: "'Ernest E Vogelsinger'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 12:09 PM
Subject: RE: [PHP] Can't run PHP cli script from Cron


> I can run it from the shell prompt perfectly fine.  I just won't run
> from cron.  
> 
> I do have the statement:
> 
> #!/usr/local/php
> 
> In the beginning of my script.  Like I said it works perfect when I run
> it by hand from the shell prompt.  I think the reason it is not running
> has to do with the cron environment, but I am not ssure what it is.
> 
> Justin Michael Couto[EMAIL PROTECTED]
> Director of Operations  805.781.0420
> Somnio World Web Solutions  http://www.somnioworld.com
>  
> 
> -Original Message-
> From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED] 
> Sent: Friday, February 28, 2003 12:55 AM
> To: Justin Michael Couto
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Can't run PHP cli script from Cron
> 
> At 05:30 28.02.2003, Justin Michael Couto said:
> [snip]
> >Here is my crontab entry:
> > 
> >* * * * * /path/to/file/file_name.php
> > 
> >I also have 
> > 
> >* * * * * /path/to/file/bash_test_script
> [snip] 
> 
> Did you try to run the php file interactively, from the shell prompt?
> 
> You need at last this statement on top of your PHP files:
> #!/usr/local/php
> 
> 
> -- 
>>O Ernest E. Vogelsinger
>(\)ICQ #13394035
> ^ http://www.vogelsinger.at/
> 
> 
> 
> -- 
> 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



Re: [PHP] RE: Need help with ?> vs. php?>

2003-03-05 Thread R'twick Niceorgaw
set register_globals=on in php.ini or use $_POST/$_GET  super global array
- Original Message -
From: "LeTortorec, Jean-Louis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 05, 2003 12:14 PM
Subject: [PHP] RE: Need help with ?> vs. php?>


> That's fixed. Thanks.
>
> Now, another problem. The data I capture in a form (web page 1) are not
> received by the PHP page (web page 2). Is there something different with
the
> previous version of PHP?
>
>
>  Thanks to all of you for your help.
>
>
> Jean-Louis
>
>
> >  -Original Message-
> > From: LeTortorec, Jean-Louis
> > Sent: Wednesday, March 05, 2003 11:59 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: Need help with ?> vs. php?>
> >
> > Hello everyone,
> >
> > I've installed the Apache v2.0.44 with PHP4.3.1., under Windows.
> >
> > My pages starting and ending with "" don't work anymore. I would
> > have to change them to "".
> >
> > Do you know if there is a way for keeping " >
> > Thanks for your help.
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Error Opening acid_main.php page

2003-03-11 Thread R'twick Niceorgaw
in your httpd.conf or whatever apache configuration file you are using,
search for

   AddType application/x-httpd-php .php

If its not there, add it and restart apache.

HTH
R'twick

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 11:59 AM
Subject: [PHP] Error Opening acid_main.php page


> Hello,
>
> This problem is probably an obvious configuration I
> am missing, but I am a bit new to this and I haven't found
> the answer yet.
>
>
> I have Apache on a Sun Ultra 1 running Solaris 8.
> When I try to bring up the acid_main.php page,
> my browser always comes back and asks
> "Open using an application" or " Save this file to disk"
>
> This happens no matter if the browser is Mozilla 1.0.2, Opera 7,
> Netscape 4.x, or IE 6
>
> Any ideas?
>
> Thanks,
> Jim
>
>
>
>
>
>
>
>
>
> --
> 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



Re: [PHP] Pre-Compiled PHP Module: php_imap.so

2003-07-08 Thread R'twick Niceorgaw
On 8 Jul 2003 at 11:17, [-^-!-%- wrote:

> 
> Is there anyplace to download a pre-compiled PHP module?
> I'm looking for the php_imap.so module.
> 
> Environment: PHP 4.2.3/Apache on Redhat Linux i386.
> Please advise.
> 
get the php-imap rpm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] newbY prob

2003-07-23 Thread R'twick Niceorgaw
On 23 Jul 2003 at 15:38, Phillip Blancher wrote:

> Problem with Count.
> 
> ! am trying to count the number of items in this table. The table has
> ! one field in it. 
> 
> The code I am using is: 
> 
> $dbquerymeal = "select COUNT(*) from mealtype"; 
> $resultmeal = mysql_db_query($dbname,$dbqueryshipping1);

shouldn't the second argument be $dbquerymeal ?

R'twick


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] removing parts of a string...

2003-07-24 Thread R'twick Niceorgaw
On 24 Jul 2003 at 15:03, [EMAIL PROTECTED] wrote:

> I wanna be able to take a URL
> http://www.mysite.com/downloads/file_1_a.pdf
> 
> and then remove:
> http;//www.mysite.com/
> 
> then add:
> /host/sites/site1/web/
> 
> to
> downloads/file_1_a.pdf
> 
> Turning:
> http://www.mysite.com/downloads/file_1_a.pdf
> Into:
> /host/sites/site1/web/downloads/file_1_a.pdf
> 
> I know I need to look up strings, but can someone point me in the
> right direction (I wanna learn, so don't give too much away!)
> 

str_replace() ?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: if statment

2003-03-31 Thread R'twick Niceorgaw
if ( !isset($HTTP_GET_VARS["pr_ID"]) OR empty($HTTP_GET_VARS["pr_ID"]) )

HTH
R'twick
"Tim Haskins" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm used to asp and not php, but what would the code be for and if
statement
> that was like:
>
>  if $HTTP_GET_VARS["pr_ID"] = "nothing" then
> "there are no products"
> end if
>
> Also does anyone know a great resource that lists different examples of
php
> variables, if statements, and so on?
>
> Thanks so much!
> --
> Tim Haskins
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] delete lines from text file

2003-06-05 Thread R'twick Niceorgaw
On Thursday 05 June 2003 11:53 pm, Matt Palermo wrote:
> Can anyone help me figure out how to search for a string in a text file,
> then delete the whole line of text that it occurs in?
>
> For example:  I have a text file which contains the following.
>
> //** text.txt **
> Keep this line.
> Also keep this line.
> Delete this line.
> Keep this one too.
>
>
> Now I want to do a search on this text file for the word "delete" and if
> it finds that word, it will delete the whole line it occurs on.  So
> after this, the text file will look like this one:
>
> //** text.txt **
> Keep this line.
> Also keep this line.
> Keep this one too.
>
> Can anyone help me with this?  Thanks.
>
> Matt

I think there's a better way to do it but here's whaqt I think

$f=file($file_name);
$new_file_data=Array();
$match_string="delete";
while (list($k,$v)=each($f)) {
if ( !strstr($match_string,$v)) 
$new_file_data[count($new_file_data)] = $v;
}

$fd=fopen($file_name,"w");
while (list($k,$v)=each($new_file_data)) {
fwrite($fd,$v);
}


HTH 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] greater than question

2003-05-27 Thread R'twick Niceorgaw
put them in an array an sort it ?
- Original Message - 
From: "Steve Buehler" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Tuesday, May 27, 2003 3:45 PM
Subject: [PHP] greater than question


> Hopefully someone has done this and has an easy answer.  I know that I can
> do what I need with a LOT of code, but am trying to come up with something
> a little shorter that 50 lines of code.  Here is the problem.  I have 4
> variables that each have a number in them.  I need to find which one has
> the highest number.  I then just need to do something with that number.
If
> two or more have the same "highest" number, than I need to do the same
> thing with them.  So..
> $a=5
> $b=1
> $c=5
> $d=3
>
> $a and $c are the highest number.  I need to run something on those two
> variables.
>
> Thanks in Advance
> Steve
>
>
> -- 
> 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



Re: [PHP] Apache problem:PHP will not execute

2003-06-03 Thread R'twick Niceorgaw
Make sure your have the following line in your apache config file (usually
httpd.conf). If its not there then add it somewhere and restart apache.


AddType application-x-httpd-php .php

HTH
R'twick
- Original Message - 
From: "Kjell Hansen" <[EMAIL PROTECTED]>
To: "Gurhan Ozen" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, June 02, 2003 2:28 PM
Subject: Re: [PHP] Apache problem:PHP will not execute


Sorry, for the delay in responding and for not indicating my OS...
Linux SuSE8.1 is where I can't get i working, on my w2k it's functioning
like it's supposed.

/Kjell
- Original Message - 
From: "Gurhan Ozen" <[EMAIL PROTECTED]>
To: "Kjell Hansen" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, May 25, 2003 6:38 PM
Subject: Re: [PHP] Apache problem:PHP will not execute


> On Sun, 2003-05-25 at 06:55, Kjell Hansen wrote:
> > Hi ye all,
> > I've just installed an Apache-server and it reports that PHP is enabled
> > but when I try to open a test page it will not execute but rather
> > download (like an unknown file type)
> >
> > Where's the setting I've missed?!?!?
> >
> > Thanx
> > /Kjell
> >
>Hi Kjell,
>  There is step-by-step instructions here:
> http://www.thesitewizard.com/archive/php4install.shtml
>
>   Go through it, and make sure you have done all steps correctly
> Gurhan
>
>
>
> >
> > -- 
> > 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




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread R'twick Niceorgaw
on top of your script add
extract ($_POST);

or may be a little more checking to see if its actually a form submission by
POST method like

if ($_SERVER["REQUEST_METHOD"] == 'POST')
extract($_POST);

same thing goes for GET
Then you can access all form variables just as you were accessing.

HTH
R'twick
"ØYstein HåLand" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm not sure what you mean. To give ONE example:
> Earlier I could use this code on top of every page:
> if  ($printout != "yeah") { include("header.php"); }
> This code gives an error today. The variable $printout is set if the
visitor
> choose to click on the 'print_page_image', otherwise the variable has no
> value.
>
> "Esteban FernáNdez" <[EMAIL PROTECTED]> skrev i meddelandet
> news:[EMAIL PROTECTED]
> > When you recivied that error ?, in a form ?, if is in a Form just put in
> the
> > top of .php files this code
> >
> > $HTTP_GET_VARS["variable2"];
> > $HTTP_GET_VARS["variable3"];
> >
> > Of course if you send with other method (post) change the GET for POST
> >
> > $HTTP_POS_VARS["variable2"];
> > $HTTP_POS_VARS["variable3"];
> >
> > Regards.
> >
> > Esteban.
> >
> >
> >
> > "ØYstein HåLand" <[EMAIL PROTECTED]> escribió en el mensaje
> > news:[EMAIL PROTECTED]
> > > None of my old scripts worx nowadays and the most common error message
> is
> > > 'undefined variable'. What is the best/simplest way to work around
this
> > > situation?
> > > if !isset($myvar) {
> > > do this
> > > blah blah
> > > }
> > > ?
> > >
> > >
> >
> >
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread R'twick Niceorgaw
probably because $_SESSION is a server side thing not coming from the client
side in a Request ?

R'twick
- Original Message - 
From: "Wouter van Vliet" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 03, 2003 12:48 PM
Subject: RE: [PHP] Re: Migration from register_globals=on to
register_globals=off


> One little addit:
>
> use indeed $_GET for vars passed through the query string and $_POST to
read
> out postdate .. $_COOKIE for cookies, but you'll find a combination of
them
> all in $_REQUEST
>
> (nobody happens to know why $_SESSION is not included in that one .. or
> knows one that includes $_SESSION in it..?)
>
> Wouter
>
>
> -Oorspronkelijk bericht-
> Van: Øystein Håland [mailto:[EMAIL PROTECTED]
> Verzonden: dinsdag 3 juni 2003 18:45
> Aan: [EMAIL PROTECTED]
> Onderwerp: [PHP] Re: Migration from register_globals=on to
> register_globals=off
>
>
> I tried changing my code to (since the variable $printout in this case is
> sent with GET)
> ($_GET['printout'] != "yeah") { include("header.php"); }
> and got the following error:
> Undefined index: printout
>
>
>
> --
> 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
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Migration once again

2003-06-05 Thread R'twick Niceorgaw
May be this will fix ?
 myWin=window.open(\"?skrivut=yeah&target=$target\",\"printout\",\"scrollba
rs=yes,status=yes,screenX=0,screenY=0,WIDTH=640,height=500 \");


 : You need to enclose $_SERVER["PHP-SELF"] with
 tags to be parsed by php.

"ØYstein HåLand" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Now when I've learned that $_SERVER['PHP_SELF'] is correct and
> $_SERVER[PHP_SELF] is wrong I wonder why the following code
> 
> 
> 
> parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or
> T_VARIABLE or T_NUM_STRING
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Migration once again

2003-06-05 Thread R'twick Niceorgaw
Are you echoing the javascript ? or its just like the way you written below
in your code ? can you include few lines above and below this code ?
My guess is you just enclosed the javascript within php tag. You might want
to take it outside php or echo it.

"ØYstein HåLand" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Sorry, that is no help. You will see that I have escaped all double
> quotation marks since the javascript is inside a php-script.
> The problem is, if I use $_SERVER[PHP_SELF] I get no errors (yepp,
> error_reports=E_ALL)
>
> "R'Twick Niceorgaw" <[EMAIL PROTECTED]> skrev i meddelandet
> news:[EMAIL PROTECTED]
> > May be this will fix ?
> >  myWin=window.open(\" >
>
$_SERVER['PHP_SELF']?>?skrivut=yeah&target=$target\",\"printout\",\"scrollba
> > rs=yes,status=yes,screenX=0,screenY=0,WIDTH=640,height=500 \");
> >
> >
> >  : You need to enclose $_SERVER["PHP-SELF"]
with
> >  tags to be parsed by php.
> >
> > "ØYstein HåLand" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > Now when I've learned that $_SERVER['PHP_SELF'] is correct and
> > > $_SERVER[PHP_SELF] is wrong I wonder why the following code
> > > 
> > > <!--//
> > > function openPrintCloseWindow(){
> > >
> > >
> >
>
myWin=window.open(\"$_SERVER['PHP_SELF']?skrivut=yeah&target=$target\",\"pri
> > >
> >
>
ntout\",\"scrollbars=yes,status=yes,screenX=0,screenY=0,WIDTH=640,height=500
> > > \");
> > > }
> > > //-->
> > > 
> > > parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING
or
> > > T_VARIABLE or T_NUM_STRING
> > >
> > >
> >
> >
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: howto write a DOS file output into a file...

2003-06-09 Thread R'twick Niceorgaw
look at ob_start() function.

HTH
R'twick
"Ferhat Bingol" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> When I use my system command in PHP I can run a old EXE file. It makes an
> output and output is automaticly printing on the web browser. I wanna save
> this output at the same time into a txt.
>
> Anyone knows howto do it?
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: check is pop address

2003-06-10 Thread R'twick Niceorgaw
check the IMAP functions If you have the pop server address (ip, port), user
name and password you can do it

http://us4.php.net/imap

HTH
R'twick

"Philip S" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi there,
> I was wondering whether someone could tell me whether it is possible to
use
> PHP to check whether a user supplied email address is a pop address as
> opposed to a web based address like hotmail. Have done some searching but
> cant seem to turn any answers up.
> Thanx in advance for any replys,
> Phil S
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] SMTP setting correct mail() not working?

2003-06-10 Thread R'twick Niceorgaw
On Wednesday 11 June 2003 03:57 am, Ben Houlton wrote:
> I've set the SMTP setting correctly (I've checked like 50 times) but it
> sill comes up with: Warning: mail(): Failed to connect to mailserver at
> "mail.ihug.com.au" port 25, verify your "SMTP" and "smtp_port" setting in
> php.ini or use ini_set() in C:\Inetpub\wwwroot\test1.php on line 6
>
> Any ideas?
> Thanks.
> -Ben

does your smtp server requires authentication ?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: array

2003-06-12 Thread R'twick Niceorgaw
Your code works fine here (Apache 1.3.27/PHP 4.3.2)
However you can try

 $room_type=array();
$room_type[0]=Array();
 $room_type[0][0]=4;
 echo "value in array is ".$room_type[0][0];

HTH
R'twick
"Diana Castillo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If I write a code like this,
> $room_type=array();
> $room_type[0][0]=4;
> echo "value in array is ".$room_type[0][0];
> yet I dont get any results out, what did i do wrong?
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] POST detection

2003-06-12 Thread R'twick Niceorgaw
if ( isset($_POST['var_1']) and isset($_POST['var_2']) ) {
your code
}


- Original Message - 
From: "Johnny Martinez" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Thursday, June 12, 2003 5:08 PM
Subject: [PHP] POST detection


> Hi all,
> I have a self referring script that $_POST's two times at the beginning.
The
> problem is that the first time the script comes up those two $_POST vars
> aren't being submitted and the webserver complains.
>
> If I could detect if the vars were passed and if not then skip that would
be
> great. What's a good trick to detect for the first time?
>
> Johnny
>
> -- 
> 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



Re: [PHP] Naming a variable with a variable

2003-06-17 Thread R'twick Niceorgaw
$$foo or ${$foo} somethinbg like that ?

http://us2.php.net/manual/en/language.variables.variable.php

R'twick

- Original Message - 
From: "Antti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 17, 2003 2:19 PM
Subject: [PHP] Naming a variable with a variable


> Ho can I create (name) a variable with other variables value?
> 
> If $foo = "bar";
> 
> then the variable I want to create is $bar.
> 
> How do I do this?
> 
> -antti
> 
> 
> -- 
> 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



Re: [PHP] User's Screen Resolution Size

2003-06-18 Thread R'twick Niceorgaw
Use javascript to get the screen resolution and pass it back to your php script thru a 
hidden form field or some other means.

On 18 Jun 2003 at 16:21, Vernon wrote:

> I what to be able to set a variable based on user's screen resolution.
> 
> Can anyone tell me who to do that?
> 
> Thanks
> 
> 
> 
> -- 
> 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



Re: [PHP] switch structure...

2003-06-19 Thread R'twick Niceorgaw
On 19 Jun 2003 at 13:52, Dan Joseph wrote:

> Hi All,
> 
>   Looking for some guidance on something I want to be able to do with switch,
> and I don't think it exists, but I'd like to consult the list as a last
> resort.
> 
>   I have a switch setup similar to:
> 
>   switch ($step) {
>   case 0 :
>   blah...
>   break;
> 
>   case 1 :
>   blah...
>   breakl
>   }
> 
>   Under case 0, I'd like to do a few things, and then if a certain condition
> is met, move into case 1.  Is this possible?  Am I off the wall here?  Is
> there a better way of doing this madness I've come up with?
> 
> -Dan Joseph
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

case 0:
blah blah blah.
if (my condition == false)
break;
case 1:
blah blah ..




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread R'twick Niceorgaw

Here's what I think may work, not sure though..

set a session variable form_submitted=false before displaying the form for
input.
when posted, check if form_submitted==false, then only set the session
variable form_submitted to true and process it. Else show an error message
If the user hits BACK button and resubmits it, then form_submitted will
evaluate to true and in this case it will not be further processed.

R'twick
- Original Message -
From: "Petre" <[EMAIL PROTECTED]>
To: "Martin Clifford" <[EMAIL PROTECTED]>
Cc: "php-general" <[EMAIL PROTECTED]>
Sent: Wednesday, July 31, 2002 1:42 PM
Subject: Re: [PHP] Disabling Browser "BACK" button


> Well, OK, then, How do you  design the app NOT to allow the form to POST
> again when the user hits "BACK"
>
> Martin Clifford wrote:
>
> >There is never a way to disable back, forward, home, etc buttons.  They
all have shortcuts that will ALWAYS work, so there's really no point.
Additionally, it's all nice and good that your site works fine without using
cookies, and don't take this offensively, but if the client cannot use the
back button without getting mishapen results, then it doesn't sound as if
the site is designed very efficiently.
> >
> >Just my opinion.
> >
> >Martin Clifford
> >Homepage: http://www.completesource.net
> >Developer's Forums: http://www.completesource.net/forums/
> >
> >
> Petre <[EMAIL PROTECTED]> 07/31/02 01:16PM >>>
> 
> >HI
> >Is there a way I can disable the client's browser back button, forcing
> >them to use the navigation I built into the page?
> >Ideally, when they try to press "BACK" on browser, a popup asking them
> >to use the navigation instead would win first prize.
> >
> >The reason I'm asking is again to do with sessions, I have an app
> >running 100% now without using cookies, but if the user hits BACK and
> >ignores the expire warning, the app produces unwanted results ( adds
> >form data again to the db etc.)
> >Just want to patch the holes.
> >
> >Maybe write my own little browser that has no back button??
> >
> >
> >
>
>
>
> --
> 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




RE: [PHP] Help!!! CVS install broke for me!

2002-08-02 Thread R'twick Niceorgaw

I also got exactly the same errors this morning. Thought may be its
because I'm using a beta version of RedHat Linux (Limbo).

-Original Message-
From: Rick Kukiela [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 02, 2002 4:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Help!!! CVS install broke for me!

ok, i do a make and it makes fine but when the make install i get an
infinite loop of this error:

Warning: mkdir(): File exists in /usr/local/src/php4/pear/System.php on
line
235

I went to the code and i tried putting a line that says this:

if(file_exists("$newdir")) { $ret = exec("/bin/rm -rf $newdir"); }

I put that right above the line thats erroring in the while loop. It
fixed
the problem with that but then when it gets to XML_RPC the CPU usage
goes up
to 100% and will not output any errors or anything. It looks  like its
caught in a loop

anyway, anyone have any ideas??

my systems is FreeBSD 4.6
apache 1.3.26
libtool 1.4
autoconf 2.53
automake 1.5

configure line:
./configure --with-imap=/usr/local --with-xml --with-mysql
--enable-track-va
rs --with-mm=/usr/local --with-gettext --with-mcrypt=/usr/local
--enable-ftp
 --enable-sockets --with-apache=../apache_1.3.26





-- 
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




[PHP] FreeType 2 support ?

2002-08-02 Thread R'twick Niceorgaw

Hi all,
I'm getting this error while running a simple script.

Warning: imageftbbox(): No FreeType 2 support in this PHP build in
/home/www/htdocs/button_create.php on line 11

Here's my phpinfo https://utkalika.yi.org/phpinfo.php (note the https)

While compiling PHP, It says freetype(2) support yes. FreeType 1.x no

What might be the problem ?

R'twick






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] help with installation

2002-09-09 Thread R'twick Niceorgaw

Sure I'm missing some thing silly here but its monday morning :)
I have just installed php 4.2.3 with apache 1.3.26.
I have all loadmodule/addmodule as well as AddType x-httpd-php .php
directives present in httpd.conf. http://myhost/server-info  shows I have
php module loaded. But, when I browse a .php page, it asks me to save/open
the file and if I open it contains the actual source ofthe php file.

Any hints to fix it ?

R'twick



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] help with installation

2002-09-09 Thread R'twick Niceorgaw

I'm sorry.
but that's what I have in the config file. I just wrote it wronge here.
Here's my complete php related configuration



LoadModule php4_moduleextramodules/libphp4.so



AddModule mod_php4.c


AddType aplication/x-httpd-php .php
AddType application/x-httpd-php-source .phps

- Original Message -
From: "Matt Schroebel" <[EMAIL PROTECTED]>
To: "'R'twick Niceorgaw'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 10:37 AM
Subject: RE: [PHP] help with installation


> > From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, September 09, 2002 10:32 AM
> > Subject: [PHP] help with installation
> >
> > Sure I'm missing some thing silly here but its monday morning :)
> > I have just installed php 4.2.3 with apache 1.3.26.
> > I have all loadmodule/addmodule as well as AddType x-httpd-php .php
>
> Isn't it:
> Addtype application/x-httpd-php .php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Mail Question

2002-11-14 Thread R'twick Niceorgaw
put the following line in the .qmail file for that user

|/path/to/your/script/yourscript.php

HTH
R'twick

- Original Message - 
From: "Mike D" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 13, 2002 3:12 PM
Subject: [PHP] Mail Question


> Does anyone know of a way to achieve the following on 
> linux/apache/qmail/php server
> 
>  >  I want to have an email address that when people send a message to, 
> a php script is triggered and the data of the email is extracted and 
> inserted into a DB for use in a ticketing system.
> 
> I know how to do all of the above except how to trigger a php script 
> from an incoming email.
> 
> Any ideas anyone?
> 
> Thanks,
> Mike Dunlop
> 
> 
> 
> 
> 
> Mike Dunlop
> Webmaster - AWN, Inc.
> [E] [EMAIL PROTECTED]
> [P] 323.606.4237
> [F] 323.466.6619
> 
> 
> 
> -- 
> 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




Re: [PHP] getting help on php

2002-06-14 Thread R'twick Niceorgaw

1. use META TAGS to refresh the page
2. use javascript to open a new window
- Original Message - 
From: "Hotmail" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 14, 2002 10:36 AM
Subject: [PHP] getting help on php


Dear sir,

I have two questions :

1- Is there a function in php that refreshes my page ?

2- Is there a function that lets me open a new window ?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] wwwwwwwwwwwwwwwwwwwwipoh'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

2002-07-09 Thread R'twick Niceorgaw

are you doped  or mentally challenged ?
- Original Message -
From: "Erik Hegreberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 09, 2002 12:26 PM
Subject: [PHP]
ipoh'%%%
%%%






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP]Erik Hegreberg

2002-07-09 Thread R'twick Niceorgaw

I just setup a rule in OE to forward his own mail to himself and delete it
form my machine
- Original Message -
From: "Jeff Lewis" <[EMAIL PROTECTED]>
To: "R'twick Niceorgaw" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 09, 2002 12:42 PM
Subject: Re: [PHP]Erik Hegreberg


> He is both, he has been emailed how to get off. For now, I keep just
sending
> my read receipts :)
>
>
> - Original Message -
> From: "R'twick Niceorgaw" <[EMAIL PROTECTED]>
> To: "Erik Hegreberg" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, July 09, 2002 6:30 PM
> Subject: Re: [PHP]
>
ipoh'%%%
> %%%
>
>
> > are you doped  or mentally challenged ?
> > - Original Message -
> > From: "Erik Hegreberg" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 09, 2002 12:26 PM
> > Subject: [PHP]
> >
>
ipoh'%%%
> > %%%
> >
> >
> >
> >
> >
> >
> > --
> > 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




Re: [PHP] if syntax

2002-07-10 Thread R'twick Niceorgaw

read here for the alternative control structures in php
http://www.php.net/manual/en/control-structures.alternative-syntax.php
- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Alexander Ross" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, July 10, 2002 7:28 AM
Subject: Re: [PHP] if syntax


> This will only work if you have a single line of code after the else and 
> if.  At least that is my understanding of all languages :)
> 
> J
> 
> 
> 
> 
> 
> "Alexander Ross" <[EMAIL PROTECTED]>
> 07/10/2002 08:25 AM
> 
>  
> To: [EMAIL PROTECTED]
> cc: 
> Subject:[PHP] if syntax
> 
> 
> I know this is correct:
> 
> if ($something)
> {
> ...
> }
> else
> {
> ...
> }
> 
> But I recently saw someone use this instead:
> 
> if($something):
>  ...
> else:
> ...
> 
> Is that also correct??   No brackets needed?
> 
> 
> 
> -- 
> 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




Re: [PHP] How to know if we're using http or https

2002-07-11 Thread R'twick Niceorgaw

if  ( $_SERVER["HTTPS"]=="on" )
user using HTTPS
else
user usin http
- Original Message - 
From: "LeTortorec, Jean-Louis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 11, 2002 8:32 AM
Subject: [PHP] How to know if we're using http or https


> Hello all!
> 
> Is there a flag that would tell me if the page requested is using SSL, by
> https, or regular http?
> 
> I'm not sure I could get that from PHP, or from Apache/PHP.
> 
> Thanks for your help.
> 
> 
> Jean-Louis
> 
> -- 
> 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




[PHP] is php.net down ?

2002-07-22 Thread R'twick Niceorgaw

Hi guys,
any one else able to get into www.php.net ?

I'm getting this

Warning: main("geoip.inc") - No such file or directory in
/local/Web/sites/phpweb/include/prepend.inc on line 6

Fatal error: Failed opening required 'geoip.inc'
(include_path='.:/local/Web/sites/phpweb/include') in
/local/Web/sites/phpweb/include/prepend.inc on line 6





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] is php.net down ?

2002-07-22 Thread R'twick Niceorgaw

cool...
thanks guys
- Original Message -
From: "Sam Masiello" <[EMAIL PROTECTED]>
To: "'Jay Blanchard'" <[EMAIL PROTECTED]>; "'R'twick
Niceorgaw'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 22, 2002 11:59 AM
Subject: RE: [PHP] is php.net down ?


>
> You could try one of the mirrors.  For example, http://php.ca is up and
> running.
>
> HTH
>
> Sam Masiello
> Software Quality Assurance Engineer
> Synacor
> (716) 853-1362 x289
> [EMAIL PROTECTED]
>
>
>
> -Original Message-
> From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 11:56 AM
> To: 'R'twick Niceorgaw'; [EMAIL PROTECTED]
> Subject: RE: [PHP] is php.net down ?
>
>
> [snip]
> any one else able to get into www.php.net ?
> [/snip]
>
> Nope... :^[
>
> Jay
>
>
> --
> 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




Re: [PHP] help with message from tech support

2003-09-12 Thread R'twick Niceorgaw
Sam Folk-Williams said the following on 9/12/2003 12:32 PM>>

Hi,

I posted about the below issue yesterday, following is the follow-up from
tech support. Are they saying the server was hacked? Is there anything I can
do on my end, or does this sound like their problem?
 

When I try to visit the site I get this strage error message: php-engine:
   

file /home/k/h/user191796/html/myAdmin/index.php has incorrect uid/gid for
effective uid 51 (2116/2116)
 

Or, the browser (IE 6 with latest update) displays a file download
   

dialogue instead of displayng the page.
 

This site has worked completely fine for the past 6 months, so I'm sure
   

it's not the code. This just suddenly started happening late last night.
This seems like a server problem to me.
 

Sam



Solution history on ticket:
9/11/2003 6:49:55 PM - Yemi A.:
Sam Folk-Williams,
Thanks for contacting technical support.
Our engineers have determined that these issues are being caused by
   

malicious activity. This is being done by a footer being inserted into the
pages by IIS.  It is not actually modifying any of your code or compromising
any of your passwords. Due to the severity of this issue, we are directing
all available external and internal resources to minimize the impact to our
customers and to prevent future re-occurrences.
 

We are committed to continue working around the clock to resolve these
   

issues. We apologize for the inconvenience and thank you for your patience.
 



 

Are you sure they have IIS running? the erro message you mentioned on 
top gives me a feeling its a *nix system?

could it be possible that they upgraded their system recently and 
screwed up something?

R'twick

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Returning form vars from popup

2003-09-18 Thread R'twick Niceorgaw
Rich Fox said the following on 9/18/2003 12:24 PM>>

I have a popup window, itemSelect.php, from which I would like to reload the
calling page. itemSelect.php has a form, and I want to reload the calling
page with these form variables. How can I do this? I can reload the page
easily enough, with
you can use javascript to set form variables in the calling page like

window.opener.docuemnt.forms.your_element.value= whatever_value_you_want

HTH
R'twick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] config file

2003-09-19 Thread R'twick Niceorgaw
Payne said the following on 9/19/2003 11:23 AM>>

Hi,

I have a project that I need to write and in the past I would hard code 
a lot of information in pages that I should have put into a config file. 
I am wanting to know if there a website that example how to write a 
config file and how to the php call them.

Thanks

Chuck

take a look at parse_ini() function

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Attention: List Administrator

2003-09-19 Thread R'twick Niceorgaw
David T-G said the following on 9/19/2003 12:25 PM>>

Dan, et al --

...and then Dan Joseph said...
% 
% the computer web server.  Kinda hilarious if you ask me.  Good excuse to
% install Norton also.

s/Norton/linux+qmail/

*grin*

:-D
s/linux+qmail/linux+qmail+spamassassin+tmda+f-prot/ :)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Opening new browser window

2003-09-19 Thread R'twick Niceorgaw
Rich Fox said the following on 9/19/2003 12:33 PM>>
I would like to open a new browser window from within my php script
(edit.php), a window in which another php page is run (search.php).
search.php should be able to receive $_POST vars etc. from edit.php. I am
not sure that the javascript solution to popup a window is correct, because
then the popup does not behave normally.
By normally, I mean that when I use javascript to popup a new window
(search.php), and in search.php I have a form

 
window is a javascript object and so you should be calling some 
javascript function to set the value here, something like



document.form.caller.value=window.opener.location.href;

  >
  >
 
 

clicking OK or Cancel does absolutely nothing. So, I would like to avoid
javascript and simply open a new browser window to run search.php. What is
the accepted way to do this in php?
btnOK and btnCancel are not instructed to do anything when clicked and 
so there's nothing wrong they are doing! what work these two buttons are 
supposed to do?
I assume
1. btnOK is to post the data to server?
in that case, you should have it as button=submit or
an onClick="javascript function()"?

2. btnCancel is to close the window and go back to the parent page?
in that case also, you should have a onClick function.
HTH
R'twick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] um...

2003-09-19 Thread R'twick Niceorgaw
Comex said the following on 9/19/2003 3:33 PM>>

<[EMAIL PROTECTED]>
[EMAIL PROTECTED]:
Please contact your system administrator.

The scanned document was deleted.

Violation Information:
The subject violated the content filtering rule PHP as subject is a
malacious code - Not Allowed.  No attempt was made to repair.
umm... since it doesn't come from [EMAIL PROTECTED], spells things wrong, and
raises issues over the subject "Re: [PHP-WIN] generate img with fonts...", I
think it's fake... let me know if I'm wrong.
its because of the new PHP virus (PHP.virdrus) and opussoft's anti virus 
  program decided not to accept any mails that contains the word php. 
aparently some one from that company subscribed to php lists but is not 
aware of their mail server settings now. I tried to mail the tech 
contact for opussoft.com ( [EMAIL PROTECTED] as listed in 
whois) but seems his a/c is over quota.

so unless the person from opussoft is unsubscribed from the list, we r 
going to get this mail each time we post to the list.

R'twick

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Understanding code.. again

2003-09-25 Thread R'twick Niceorgaw
Jeff McKeon said the following on 9/25/2003 4:00 PM>>

In the following code...

--snip--

--snip--
What is the purpose in the function def of "($msgvar = null)"??  Why not
just "function showmessage($msgvar)"??
It's to set a default value if no argument is passed to the function 
when called like

Showmessage();

In this case $msgvar inside the function will have a null value.

HTH
R'twick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Test Links...

2003-09-26 Thread R'twick Niceorgaw
Doug Coning said the following on 9/26/2003 12:15 PM>>

Greetings All,

I am creating a 'links' page and was wondering if there was a way in PHP
to test the response of an outside link?  I'm sure everyone here has
clicked on a links page link and have a "No Page Found" error because no
one is keeping the links uptodate.  I was wondering if there was a way
when a link was clicked to test the link first to see if it is still
active.  If it isn't active, I would like to remove the link from my
database.
Is there a command that tests the results of link?

Thanks,

Doug Coning
Hi doug,

try something like the function given here
http://shiflett.org/dev/php_post.phps and check the returned headers .. 
there will be a field which will contain the status code (200 for 
successful / 404 for page not found etc).

HTH
R'twick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] question on set_uid

2003-10-01 Thread R'twick Niceorgaw
Hi all,
I'm trying to run a php application in cgi mode which will use 
posix_set_uid function to set its user id to different users.

I have set the user and group of the program to root:root and set the 
permissions as

-rws--sr-x1 root root 1096 Oct  1 12:58 test2.cgi

here's my program
-
#!/usr/local/bin/php-cgi
";
echo "gid = ".posix_getgid()."";
echo "euid = ".posix_geteuid()."";
echo "egid = ".posix_getegid()."";
$rtwick=posix_getpwnam('rtwick');
echo "user info for rtwick = ";
print_r($rtwick);
echo "setting euid to ".$rtwick["uid"]."";
$f = posix_seteuid($rtwick["uid"]);
$a1 = posix_get_last_error();
echo "last error no = $a1, last error = ".posix_strerror($a1)."";
if (!$f)
echo "can not set uid";
?>
--
and here's the result I'm getting
--
uid = 48
gid = 10001
euid = 48
egid = 10001
user info for rtwick = Array ( [name] => rtwick [passwd] => x [uid] => 
10007 [gid] => 10007 [gecos] => [dir] => /home/rtwick [shell] => /bin/bash )
setting euid to 10007
last error no = 1, last error = Operation not permitted
can not set uid
-

I have seen programs when invoked this way has the euid of 0 (root) and 
can do set euid to any other user.

if any body done something like this or has any clue how to get it 
working please let me know.

thanks for your help

R'twick

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] filesize() error - Can anyone help?

2003-10-20 Thread R'twick Niceorgaw
Hi,

Jacques Roux said the following on 10/17/2003 10:55 AM>>

Dear All

I am getting the following error message when I open some of the page on my
Web Site.  What could the problem be and how can I correct it?
Warning: filesize() [function.filesize]: Stat failed for
./admin/dbimages/tblProjects/image/776 (errno=2 - No such file or directory)
in /data/ns-home/b2b/www.impumelelo.org.za/html/project_detail.php on line
10
Regards

Jacques

does this file (./admin/dbimages/tblProjects/image/776 ) exist?
If so, try to give the full pathname to the file in project_detail.php.
HTH
R'twick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] manual key generation

2003-10-25 Thread R'twick Niceorgaw
Joao Andrade wrote:

   Aloha!

   I have a script that inserts a new row in a table called "quotations",
which has a primary key called "quotation_id". "quotation_id" is an int(11)
type. When I enter:
   SELECT MAX(quotation_id)+1 from quotations

   I get simply the number 7 (which is ok)

   But when I do:

   $new_key = mysql_query("SELECT MAX(quotation_id)+1 from quotations")

   I get $new_key = Resource id #3

   What the hell is that supposed to mean?

   Thanx a bunch.

 

mysql_query returns a resource id. you have to use mysql_fetch_row or 
mysql_fetch_array to get the data from this resurce id
something like
$sql_result =

mysql_query("SELECT MAX(quotation_id)+1 from quotations");
$new_key = mysql_fetch_row($sql_result);
HTH
R'twick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] MX lookup email verification on Windows

2003-11-07 Thread R'twick Niceorgaw
Jason Wong said the following on 11/7/2003 3:25 PM>>

On Saturday 08 November 2003 04:14, Matt Palermo wrote:

Is there any way to accomplish this without the use of exec() or system()
functions?


Sure, as PHP is a general purpose programming language just write your own 
equivalent to nslookup! Start by reading the chapter "Socket functions". Be 
warned it's not a project for the faint-hearted.

Seriously, you are far better off using an exec() call to nslookup (or 
similar).

http://www.sitepoint.com/article/1051

this may be of some interest to the original poster.

R'twick

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] testing a variable

2003-11-12 Thread R'twick Niceorgaw
Adam Williams said the following on 11/12/2003 11:37 AM>>
Hello,

I need to test a variable to see if it contains a value or not, and if 
not, do something.  My php is a little rusty, so which would be better?

if ( !$var )
{ echo "do something";}
or

if ( !isset($var )
{ echo "do something";}
or are both of those wrong, and if so, how hsoudl I check if a variable is 
false, null, doesn't contain a value, etc...

What I am doing is checking a field in an sql table, and if the field is 
null, empty, etc... then do something.  so what is the best way to check 
the field if its null, empty, etc...?

if (!isset($var) or empty($var) ) {
echo "do something";
}
HTH
R'twick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Turck MMcache compiling

2003-12-20 Thread R'twick Niceorgaw
Hi Ryan,

Quoting Ryan A <[EMAIL PROTECTED]>:

> Hi,
> 
> We just took a dedicated server (Linux) and want to install Turck MMCache
> for PHP on it, we have total control of that server and can SSH in etc.
> Their "support" does not want to install it and told us if we want to, we
> will have to do it ourselves...
> 
> is there anyway we can ssh in and do it?
> I have never done anything like this before and am on a windows 2k pro
> machine...I use putty to connect.
> 
> Any help appreciated.

definitely you can do it. just login as root and follow the documentation at
the
mmcache web site. I just installed it y'day and it was very easy. 
if you need any help feel free to contact me off list.

HTH
R'twick







This message was sent using IMP, the Internet Messaging Program.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Not working?

2004-01-08 Thread R'twick Niceorgaw
Hi jason,

Quoting Jas <[EMAIL PROTECTED]>:

> 
> system("rename('/path/to/new.sh', '/path/to/old.$today')");
> 

I don't think this is correct syntax. Either use the php rename function like

rename('/path/to/new.sh', '/path/to/old.$today');

or if you want to use system then use
system ("rename '/path/to/new.sh' '/path/to/old.$today'");

HTH
R'twick


This message was sent using IMP, the Internet Messaging Program.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Compiling php for MySQL and Apache 2 Newbie

2004-01-14 Thread R'twick Niceorgaw
Hi James,

James Marcinek wrote:

>Hello Everyone,
>
>I'm still having problems compiling the latest version of PHP. I have
>several issues
>
>- The apache 2 that was installed was from a Red Hat package. From what I
>can tell it is configured in a manner that is similar to the
>with-apxs2filter. The configuration file that point to this kind of
>installation is already configured in apache. However there is no perl
>script apxs of any kind.
>
>  
>
install httpd-devel package. I believe it contains the apxs module.

HTH
R'twick Niceorgaw

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] redirect phpinfo output

2001-12-28 Thread R'twick Niceorgaw

buffer the output of phpinfo() using ob_start() then get the buffer using
ob_get_contents() and store it in your new html file using fwrite()
hope this helps
R'twick
- Original Message -
From: "charlesk " <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 28, 2001 12:15 PM
Subject: [PHP] redirect phpinfo output


> How can I redirect the output from phpinfo to a file.
> If I try
> error_log(phpinfo(),3,"z:\\".date("YmdHis").".html");
>
> all that is in the file is the number 1.
>
> The output gets sent to the user.
>
> Charles Killmer
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] problem reading sessions

2002-01-04 Thread R'twick Niceorgaw

Have you set the session.save_path properly in php.ini ? By default it is
set to /tmp which doesn't work under Win* systems. You need to point it to a
valid directory on your machine.

HTH

- Original Message -
From: "Alastair" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 04, 2002 4:35 PM
Subject: Re: [PHP] problem reading sessions


> I get the error: 'Warning: Undefined index: blah' when I use the long
name.
> As far as I can tell it doesn't seem to be actually writing the data into
> the session file.  Am I missing a crucial step somewhere?
>
> alastair
>
> "Kevin Stone" <[EMAIL PROTECTED]> wrote in message
> 003401c19563$95ee2e00$[EMAIL PROTECTED]">news:003401c19563$95ee2e00$[EMAIL PROTECTED]...
> > I'll add if you do not have register_globals set then you can access the
> > variable by its long name, $HTTP_SESSION_VARS["blah"].
> >
> > -Kevin
> >
> >
> > > Is register_globals set to 'on' in php.ini? It needs to be for this
> coding
> > > style to work.
> > >
> > > Kirk
> > >
> > > > -Original Message-
> > > > From: Alastair [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, January 04, 2002 1:41 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [PHP] problem reading sessions
> > > >
> > > >
> > > >
> > > > I have just recently set up PHP on my Win2K laptop and I have
> > > > just found out
> > > > that I can't read sessions. As far as I can tell the session
> > > > file is being
> > > > created, but PHP doesn't seem to be able to get any data into it.
> > > >
> > > > Here is what the session file looks like:
> > > > !sess_user|!blah|
> > > >
> > > > The two PHP files look like this:
> > > >
> > > > test_session1.php
> > > >  > > > $blah = "good";
> > > > session_start();
> > > > session_register("blah");
> > > > ?>
> > > >
> > > >
> > > > test_session2.php
> > > >  > > > session_start();
> > > > echo session_is_registered("blah") . "";
> > > > echo session_encode(). "";
> > > > echo isset($HTTP_SESSION_VARS) . "";
> > > > echo sizeof($HTTP_SESSION_VARS) . "";
> > > >
> > > > echo $blah;
> > > > ?>
> > > >
> > > > For the second PHP page the ouput I get is:
> > > > - true for the 'session is registered' function
> > > > - the string that is found in the session file (listed above)
> > > > - true for the 'isset' function
> > > > - size of zero
> > > > - The warning: 'Warning: Undefined variable: blah '
> > > >
> > > > Does anybody know why I would not be able to read these variables?
> > > >
> > > > thanks,
> > > > alastair
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> > >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] does this work?

2002-01-10 Thread R'twick Niceorgaw

what eact parse error you are getting ? and what is that line ?

Is it giving an error like undefined variable  $temprow["count"];
 or some thing like that ?

You may try to change the mysql_fetch_row line to the following

$temprow = mysql_fetch_array($tempresult, MYSQL_ASSOC);

- Original Message - 
From: "Erik Price" <[EMAIL PROTECTED]>
To: "PHP (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, January 10, 2002 4:28 PM
Subject: [PHP] does this work?


> It seems that I have a "parse error" somewhere in the following code 
> (since that's the only code in my script, it's a test script):
> 
> // arraytest.php
> $tempsql = "SELECT COUNT(*) AS count
> FROM divisions";
> $tempresult = mysql_query($tempsql, $db);
> $temprow = mysql_fetch_array($tempresult);
> 
> echo $temprow["count"];
> 
> 
> Yet, it works fine in the mysql client.  Thus, I am led to believe that 
> PHP is not capable of constructing the same kinds of SQL statements that 
> can be constructed in the mysql client.  Is this the case?
> 
> 
> Erik
> 
> 
> PS: what I am -really- trying to do is dynamically fill in a  
> listbox with  that correspond to all of the records in a given 
> table.  Like so:
> 
> 
>   
>foreach 
> ($record_id_and_record_name_pair_pulled_from_mysql_query) {
>print(" value=\"${record_id}\">${record_name}");
>}
>?>
>
> 
> 
> but I am unsure of how to grab multiple values from the mysql_query() 
> and load them into an array.  Has anyone done this before?
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Another question - not exactly what i was looking for

2002-01-15 Thread R'twick Niceorgaw

construct your query like
$query = "select * from table where ";
lastname='$lastname' and
> firstname='$firstname' and age='$age' and weight='$weight'";

if (isset($lastname) and $lastname !="") then
$query.=" lastname=$lastname ";
if (isset($firstname) and $firstname !="") then
$query.=" and firstname=$firstname ";
and so on...

You may need to do some more checking like if there already been a field
selected earlier  if so then add "AND " before the current field else don't
add the "AND ".
Hope that helps.

- Original Message -
From: "Phil Schwarzmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, January 15, 2002 3:53 PM
Subject: [PHP] Another question - not exactly what i was looking for


> Yo, thanks for all your help.  But it isn't exactly what im looking for.
>
> Let's say you had a database with the following four columns...
>
> -LastName
> -FirstName
> -Age
> -Weight
>
> ...and you wanted a page that would allow a user to search for one or
> more of these fields within the database.
>
> It would be easy if the user could only pick just one of the fields.
> But let's say that want to search only lastname and firstname, or maybe
> all four, or maybe just one.  How could this be done?
>
> If I have code that looks like this...
>
> $query = "select * from table where lastname='$lastname' and
> firstname='$firstname' and age='$age' and weight='$weight'";
>
> $result  = mysql_query ($query);
> $num_results = mysql_num_rows($result);
>
> ...the $num_results is ALWAYS zero unless I typed in all four fields.
>
> Any help?
>
> Thanks!
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] URGENT : PHP install error on Solaris 7

2002-01-16 Thread R'twick Niceorgaw

Hi all,
I have a Sparc Solaric 7 system on which I'm trying to install php 4.0.6.
the installation works fine. But, when I try to restart Apache I get the
following error. I have Apache 1.3.22

Has any one experienced the same problem ? Or any fix to this ? I'm not a
unix guy so have no idea as to what this error means.

ANy help will be greatly appreciated :)

Erro msg>>>>>>>

==>apachectl configtest
Syntax error on line 205 of /usr/apache/conf/httpd.conf:
Cannot load /usr/apache/libexec/libphp4.so into server: ld.so.1:
/usr/apache/bin
/httpd: fatal: relocation error: file /usr/apache/libexec/libphp4.so: symbol
ap_block_alarms: referenced symbol not found

-----
R'twick Niceorgaw ( [EMAIL PROTECTED] )
http://www.niceorgaw.com

98C Cedar Lane
Highland Park, NJ 08904
USA
732-246-1434 (R)
732-801-3826 (M)
-




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


Re: [PHP] URGENT : PHP install error on Solaris 7

2002-01-16 Thread R'twick Niceorgaw

Hi dennis,
yes i'm using dynamic loading of PHP using --with-apxs

line 205 is

LoadModule /usr/apache/libexec/libphp4.so

I can install php on solaris 8 on an intel (x86) machine using the same
source code without any problem.

I have gcc 2.95 on the intel machine where as gcc 3.0.1 on the sparc
machine. could that be causing any problem ?





- Original Message -
From: "Dennis Moore" <[EMAIL PROTECTED]>
To: "R'twick Niceorgaw" <[EMAIL PROTECTED]>; "php general"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 16, 2002 1:56 PM
Subject: Re: [PHP] URGENT : PHP install error on Solaris 7


> What is in line 205?  It looks as though you are dynamically loading PHP.
> Are you compiling with --with-apxs in PHP?Just a thought...
>
> /dkm
>
>
> - Original Message -
> From: "R'twick Niceorgaw" <[EMAIL PROTECTED]>
> To: "php general" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 16, 2002 12:03 PM
> Subject: [PHP] URGENT : PHP install error on Solaris 7
>
>
> > Hi all,
> > I have a Sparc Solaric 7 system on which I'm trying to install php
4.0.6.
> > the installation works fine. But, when I try to restart Apache I get the
> > following error. I have Apache 1.3.22
> >
> > Has any one experienced the same problem ? Or any fix to this ? I'm not
a
> > unix guy so have no idea as to what this error means.
> >
> > ANy help will be greatly appreciated :)
> >
> > Erro msg>>>>>>>
> >
> > ==>apachectl configtest
> > Syntax error on line 205 of /usr/apache/conf/httpd.conf:
> > Cannot load /usr/apache/libexec/libphp4.so into server: ld.so.1:
> > /usr/apache/bin
> > /httpd: fatal: relocation error: file /usr/apache/libexec/libphp4.so:
> symbol
> > ap_block_alarms: referenced symbol not found
> >
>
> -
> > R'twick Niceorgaw ( [EMAIL PROTECTED] )
> > http://www.niceorgaw.com
> >
> > 98C Cedar Lane
> > Highland Park, NJ 08904
> > USA
> > 732-246-1434 (R)
> > 732-801-3826 (M)
>
> -
> >
> >
> >
>
>
> --
--
> 
>
>
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] help installing php

2002-01-18 Thread R'twick Niceorgaw

I just installed Apache and PHP 4.1.1 on my home computer ( Red hat Linux
7.2) from source and they are isntalled without any problem.

If you have already installed apache, then find out the installation
directory ( probably /usr/local/apache) and then see if its bin directory is
in your path. If not add it.

then goto the bin directory and run ./httpd -l.
If you see a line called mod_so.c then you can install PHP as a DSO module
without the source code for Apache. Follow the steps below and it will work.

run configure in your PHP source dir as
./configure --with-apxs [ and rest of the modules you want to enable]
make
make install

If you are using PHP 4.1.1, it comes with builtin support for mysql and is
installed by default or you can run

./configure --with-apxs --with-mysql [ and rest of the modules you want to
enable]
if it says can not find path to apxs, then change the configuration to
./configure --with-apxs=path to apache/bin/apxs [ and rest of the modules
you want to enable]

where path to apache is where apache is installed ( probably
/usr/local/apache)

HTH
R'twick
- Original Message -
From: "Juni Adi" <[EMAIL PROTECTED]>
To: "Anas Mughal" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 18, 2002 2:09 PM
Subject: Re: [PHP] help installing php


> On Thu, 17 Jan 2002, Anas Mughal wrote:
>
> |I haven't seen any RPMs for PHP.
> Yes there are RPMs for PHP (ftp.mirror.ac.uk)
>
> |However, I have installed using the source. It works
> |fine.
> |Try to install the CGI version first. That is easier.
> |Than, you could dive into the apache module stuff.
>
> Ok, I'm now in the middle of installing it from
> source code. But I'm not sure where the path to
> apache and mysql source code to fill in :
> ./configure --with
> apache=/path/to/apache_source_code --with
> mysql=/path/to/mysql_source_code
>
> I 'm even not I have the source code for the
> two of them as I was instaling both apache and
> mysql from rpms.
>
> So, can you tell me to define the path for those
> apache and mysql  so I can make the PHP work along
> with apache and mysql as well? Or at least tell me
> what indicate a source code directory (what files
> are in). Maybe I can search it manually.
>
>
> Regards
> Juni Adi
>
> |
> |--- Juni Adi <[EMAIL PROTECTED]> wrote:
> |> Hello,
> |>
> |> I'm new to PHP (actually I'm just about to
> |> begin) and have problem with installing.
> |>
> |> I'm looking for version of PHP that will be
> |> suit to RH 6.2 and MySQL 3.23.47? (my RH package
> |> didn't include any php rpms).
> |> I've tried some version 4 rpms but always have
> |> error on dependency stuffs.
> |>
> |> So, can anybody point me sites where I can
> |> download the right rpms to work along with my
> |> stuffs? (I'd prefer RPMS because I've always been
> |> having trouble installing from source code).
> |>
> |> Cheers
> |> --
> |> +
> |> ||   Juni Adi  ||
> |> ||   Volunteers Alliance for Saving the Nature ||
> |> ||   www.arupa.or.id   ||
> |> +
> |>
> |>
> |> --
> |> PHP General Mailing List (http://www.php.net/)
> |> To unsubscribe, e-mail:
> |> [EMAIL PROTECTED]
> |> For additional commands, e-mail:
> |> [EMAIL PROTECTED]
> |> To contact the list administrators, e-mail:
> |> [EMAIL PROTECTED]
> |>
> |
> |
> |=
> |Anas Mughal
> |[EMAIL PROTECTED]
> |[EMAIL PROTECTED]
> |Tel: 973-249-6665
> |
> |__
> |Do You Yahoo!?
> |Send FREE video emails in Yahoo! Mail!
> |http://promo.yahoo.com/videomail/
> |
>
> --
> +
> ||   Juni Adi  ||
> ||   Volunteers Alliance for Saving the Nature ||
> ||   www.arupa.or.id   ||
> +
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] strerror and PHP 4.1.1

2002-01-28 Thread R'twick Niceorgaw

Is strerror function removed from PHP 4.1.1 ?

I'm getting an error like this after upgrading to PHP 4.1.1 from PHP 4.0.6.

Fatal error: Call to undefined function: strerror() in
/usr/nmademo/ctm/nma.php on line 79

This line was working fine on PHP 4.0.6.

Any help is appreciated.

Regards
R'twick Niceorgaw



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] passing socket descriptors between pages

2002-01-30 Thread R'twick Niceorgaw

Hi all,
Is there any way to open a persistent socket connection in one script using
pfsockopen() and then pass the socket descriptor to other scripts using
session variable or some thing like that ?

Regards
R'twick


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Webhosts

2002-02-13 Thread R'twick Niceorgaw

I have been with aletiahosting for few months and been quite happy with
them.
if you compare the price/features aletiahosting is a good one. their support
is good though been detoriated some how... some members do complain about
tickets not been resolved quickly but I never had such an experience .. all
my problems were handled within 48 hrs which i consider is good enough
thinking of their low price. also i haven't found any other host who is so
much feature rich with respect to PHP.

-Original Message-
From: Ben Clumeck [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 9:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Webhosts


I have found 2 webhosts that provide PHP and MySQL:

www.aletiahosting.com
www.rackspace.net

Does anybody have experience with either one (good or bad)?  Or does anyone
use a good low price host?

Thanks,

Ben


--
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




Re: [PHP] script executeion problem - executes twice for no reason - help

2002-04-22 Thread R'twick Niceorgaw

remove the To:$email  from $headers. You have it already in the $to
parameter.


- Original Message -
From: "Edward Bailey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 11:48 AM
Subject: [PHP] script executeion problem - executes twice for no reason -
help


> Please excuse my ignorance, this is probably a simple
> problem but I have no idea what to do next.
>
> I wrote the following to send an automated response to
> users that fill out a form, select submit and that
> triggers the conditional "if" statement and then the
> script sends an HTML based newsletter to the user. The
> script does work, but it sends out TWO newsletters
> instead of one and I have no idea why. I have used the
> code below in several different forms and it does the
> same thing each time so I would assume the code is the
> problem.
>
>
> if()
> {$filename = "../includes/news.html";
> $to = "$email";
> $subject = "Newsletter";
> $fd = fopen ($filename, 'r');
> $message = fread ($fd,
> fileSize("../includes/news.html"));
> fclose ($fd);
> $headers = "To: $email\nFrom: $from\nReply-To:
> $reply_address\nMIME-Version: 1.0\nContent-type:
> text/html; charset=iso-8859-1\n";
> mail($to, $subject, $message, $headers);
> }
>
> Can anyone help me or point me in the right direction?
>
> Thanks
>
> Ed
>
>
> __
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.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




Re: [PHP] Miliseconds with PHP4

2002-02-22 Thread R'twick Niceorgaw

microtime() ?
--
R'twick Niceorgaw
E-Mail: [EMAIL PROTECTED]
Tel: 617-761-3936 (W)
   732-801-3826 (C)
   617-328-6423 (R)
--



- Original Message - 
From: "William Lovaton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 22, 2002 2:56 PM
Subject: [PHP] Miliseconds with PHP4


> Hello there,
> 
> I want to know the execution time of some scripts I made, I'm using the
> difference of seconds (time() function) between the start and the end of
> the script.
> 
> But, I would like to get a greater precision... so, I was wondering if
> there is a chance to get miliseconds.
> 
> TIA
> 
> William
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.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




Re: [PHP] Sending mail using a password

2002-02-27 Thread R'twick Niceorgaw

I have used phpmailer as my SMTP host also requires authentication. so far
working without a problem.

--
R'twick Niceorgaw
E-Mail: [EMAIL PROTECTED]
--



- Original Message -
From: "DL Neil" <[EMAIL PROTECTED]>
To: "Svavar Lúthersson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 11:39 AM
Subject: Re: [PHP] Sending mail using a password


> Greetings Svavar
>
> My SMTP server requests I use a password for every time I send(not IP
based).  How is it possible to let PHP to
> use password authentication when mail is sent.
>
>
> =Eureka!
> I have been looking at this, and made a note to come back to take a look
at a 'likely candidate'. Of course,
> couldn't find it again when I read your msg...
>
> Check out http://phpmailer.sourceforge.net/
> -
> Features
> Can send emails with multiple TOs, CCs, BCCs and REPLY-TOs
> Redundant SMTP servers
> Multipart/alternative emails for mail clients that do not read HTML email
> Support for 8bit, base64, binary, and quoted-printable encoding
> Uses the same methods as the very popular AspEmail active server (COM)
component
> SMTP authentication
> Word wrap
> -
>
> You're a bit ahead of me! I haven't used the s/w.
> Nor did I notice any of the examples using SMTP-Auth.
> I don't recognise any of the project team's names.
> So I can't give you a definitive 'yes' or 'no' recommendation.
>
> If you try it, will you please share some feedback?
>
> Regards,
> =dn
>
>
>
>
> --
> 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




[PHP] Any one used this company for hosting ?

2002-03-14 Thread R'twick Niceorgaw

Hi all,
does any one have any expereince with this company ? 
http://ciwebhosting.com/

Please feel free to share with me.

regards
R'twick Niceorgaw




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Cannot Find php binary

2002-03-19 Thread R'twick Niceorgaw

I believe when you compile php with apxs, it does not create the php binary.
You will have to compile php again without the --with-apxs option and then
copy the php binary to the place where you want ot put it.

HTH
R'twick Nicerogaw


- Original Message -
From: "N. Pari Purna Chand" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 1:56 PM
Subject: [PHP] Cannot Find php binary


> Hi all
> I have compiled php on a slack box
> ./configure --with-apxs=/usr/local/apache/bin/apxs ..
> make && make install
>
> everything Fine
> and .php pages are being parsed with php when called thru
webserver(apache).
>
> But I can not find any binary named "php"
> which I need to run php scripts from shell.
>
> ?
> /Chandu
>
>
>
>
> --
> 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




Re: [PHP] why doesnt this work???

2002-03-20 Thread R'twick Niceorgaw

You need two = signs for comparision not just one .
Also I think you need to enclose the variables in double quote.

   if( $line[1]=="$bruker" and $line[2]=="$passord")  echo "hei
$bruker.";
 else echo "FEIL";


> -Original Message-
> From: chris [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 20, 2002 8:15 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] why doesnt this work???
>
>
> this script receives vars "b" and "p" from a form.
> If "b" and "p" matches the echo on IF, then it works just fine.
> The problem is that if the vars dont match the ELSE ECHO
> does not apear... why not?
>
>  $bruker = $HTTP_POST_VARS["b"];
> $passord = $HTTP_POST_VARS["p"];
> $hostname = "";
> $username = "";
> $password = "";
> $dbname = "";
> MSSQL_CONNECT($hostname,$username,$password);
> mssql_select_db($dbname);
> $query = "select * from medlemmer where bruker = '$bruker' and passord =
> '$passord'";
> $result = mssql_query( $query );
> for ($i = 0; $i < mssql_num_rows( $result ); ++$i)
>  {
>
>   $line = mssql_fetch_row($result);
>   if( $line[1]='$bruker' and $line[2]='$passord')  echo "hei
$bruker.";
>  else echo "FEIL";
>  }
> ?>
>
> -Chris
>
>
>
> --
> 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
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Browser Detection without use of browsecap.ini file

2002-03-21 Thread R'twick Niceorgaw

Hi all,
is there any way, I can detect the browser without using browsecap.ini file
? I'm simply interested to know if the user using netscape 4.x or earlier.

I  tried get_browser() function but it returns blank! after checking my
server's configuration i found browsecap file setting in uninitialized. I'm
not sure if my hosting company will setit up properly for me, but already
contacted them and waiting to hear a response form them..

Any help will be much appreciated.

R'twick



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] converting a password database from perl to php

2002-03-22 Thread R'twick Niceorgaw

Hi all,
I'm converting a site written in perl to php. It has a member section which
is password protected. All the meber passwords are stored in a flat file
with Perl's MD5 encryption algorithm. I'm planning to use MYSQL database to
store the member info on the new site. However, I have to import the
existing member information including their passwords to the new system. I
was checking the md5() and crypt() functions of PHP but theydon't generate
the same encrypted password as Perl md5(). Is there any way I can migrate
these passwords to php without asking each user to update their password on
the new system ?

Regards
R'twick



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] converting a password database from perl to php

2002-03-22 Thread R'twick Niceorgaw

Hi Rasmus,
Here's what  used in the perl script.
--
use Digest::MD5;
use Digest::MD5 qw( md5_hex );
my $encrypt_password;
my $digestObject = Digest::MD5->new();
$digestObject->add("$password");
$encrypt_password = $digestObject->digest();

Here's a sample result form it.

text password : f0rget123
encrypted password: òOú«#7Fá73¯

Under PHP I'm getting a much bigger string with MD5() for the same clear
password string.

Thank you for helping me out with this.

Regards
R'twick

- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "R'twick Niceorgaw" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 22, 2002 11:07 AM
Subject: Re: [PHP] converting a password database from perl to php


> Show us an example Perl one.  Chances are you can get the PHP crypt()
> function to do the right thing by feeding it the correct SALT.
>
> -Rasmus
>
> On Fri, 22 Mar 2002, R'twick Niceorgaw wrote:
>
> > Hi all,
> > I'm converting a site written in perl to php. It has a member section
which
> > is password protected. All the meber passwords are stored in a flat file
> > with Perl's MD5 encryption algorithm. I'm planning to use MYSQL database
to
> > store the member info on the new site. However, I have to import the
> > existing member information including their passwords to the new system.
I
> > was checking the md5() and crypt() functions of PHP but theydon't
generate
> > the same encrypted password as Perl md5(). Is there any way I can
migrate
> > these passwords to php without asking each user to update their password
on
> > the new system ?
> >
> > Regards
> > R'twick
> >
> >
> >
> > --
> > 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




Re: [PHP] converting a password database from perl to php

2002-03-22 Thread R'twick Niceorgaw

I'm sorry, I somehow missed few characters while copying form unix machine.
The actual encrypted string is òOú«#µ7zFá73Y¯ (in hex it is 06 f2 4f fa ab
23 b5 7f 37 9e 46 e1 37 33 9f af)

I have no idea about perl and so now I'm confused as in hte perl script I
see it's using a digest::md5() object to encrypt the password and so thought
it should be same md5() as in php.

If you can guide me to some place where i can look for further info will be
of much help to me.

Thanks for your time
Regards
R'twick
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "R'twick Niceorgaw" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 22, 2002 11:46 AM
Subject: Re: [PHP] converting a password database from perl to php


> text password : f0rget123
> encrypted password: òOú«#7Fá73¯

Uh, that's not md5 at all.  By definition md5 is 32 characters.

-Rasmus


--
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




Re: [PHP] Login displays the pass and user in url

2002-03-25 Thread R'twick Niceorgaw


change the first line to

if(!IsSet($stage)){
print("");

HTH

- Original Message -
From: "David Orn Johannsson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 25, 2002 11:16 AM
Subject: [PHP] Login displays the pass and user in url


Can I some how prevent the browser from displayin
index.php?passwd=pass&user=user in the url when I use this script I
wrote.

  ");
print("");
print("");
print("Notendanafn:");
print("Lykilorð:");
print(" ");
print("");
}
else{

include("db_connect.php");
$query = "select id,
passwd, system from users where username = '$check_username'";
$mysql_result =
mysql_query($query, $db);
$row =
mysql_fetch_row($mysql_result);

if((crypt($check_passwd,
'dominos') == $row[1]) && (($system == 0 || $system == 1 ))){
$sid =
session_id();
$uid =
$row[0];
print("[Fréttir]");
print("[SMS - Auglýsingar]");
}
else if($session ==
session_id()){
print("[Fréttir]");
print("[SMS - Auglýsingar]");
}
else{
print("Þú
verður að skrá þig inn. [Skrá inn]");
}
}
  ?>

  
Davíð Örn Jóhannssson
Vefforritari

Atómstöðin hf.
Garðastræti 37
101 Reykjavík

sími: 595-3643
fax: 595-3649
  [EMAIL PROTECTED]
  http://www.atom.is






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] get_browser() problem ?

2002-03-29 Thread R'twick Niceorgaw

Hi all,
I'm trying to get some info from get_browser() function. But, I'm getting a
page can not be displayed error.
The script is a simple one as give below. My hosting comapny says,
get_browser() works on their system and there must be some error in my
script but I couldn't find any error. Can some one tell me if indeed I have
an error there ?

I have PHP 4.1.2 running on freeBSD. detail PHP configuration can be found
here http://66.216.8.221/phpi.php

and the script is http://66.216.8.221/brw.php

Any help would be much appreciated.

Regards
R'twick

Code copied from the browser script :
--


 BROWSER TEST

\n";
$br = get_browser($HTTP_USER_AGENT);
while (list($k,$v)=each($br))
 echo "$k = $v";
?>







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: PHP 4.1.2 - does not work. !

2002-04-04 Thread R'twick Niceorgaw

Its working fine for me ... Redhat Linux 7.2 Apache 1.3.24 PHP 4.1.2
Upgraded just this morning 

-Original Message-
From: vins [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 04, 2002 7:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: PHP 4.1.2 - does not work. !

I've had the same problem 
Apache no work !
IIS5 No work !


"Septic Flesh" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Anyone manage to recompile php4.1.2 and use successfully ?
> I use slack8, apache 1.3.24.
> When I install php 4.1.1 it works fine.
> When I install php4.1.2 Apache doesnt work.
>
> error:
> apache cannot start. . could not load libphp4.so , not defined
compress.
>
> The libphp4.so is there . . but only the one from version 4.1.1
works..
>
> any idea ?
> cheers.
>
>
> --
> 
>
> Sapilas@/dev/pinkeye
>
> 
>
>



-- 
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




Re: [PHP] Writing to Files

2002-04-05 Thread R'twick Niceorgaw

http://www.php.net/manual/en/function.printf.php

try sprintf to format the string and then fwrite
I use text files to log debug msgs in my programs as they are not too heavy
duty applications.

- Original Message -
From: "Sebastian A." <[EMAIL PROTECTED]>
To: "PHP General List (PHP.NET)" <[EMAIL PROTECTED]>
Sent: Friday, April 05, 2002 11:29 AM
Subject: [PHP] Writing to Files


> Hey All,
> I have recently been trying to create some logs for the install script I
> have been making (to make it easier for me to diagnose problems) but I am
> wondering how to create and write to text files. I know about the fopen()
> and fwrite() functions, which theoretically should enable me to do this
> however I am not exactly sure how I should go about this. Also, I realize
> that there is limited formatting I can have with text, however I would
like
> to know if its possible to control the line spacing between the entries,
and
> whether or not its possible to indent lines. Lastly, are text files a good
> idea for logs? Do any of you use anything else I should be aware of?
>
> Thanks for all your help!
>
>
> --
> 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




Re: [PHP] fwrite() - problems....

2002-04-08 Thread R'twick Niceorgaw

you are missing fopen() before calling fwrite()
- Original Message - 
From: "Phil Schwarzmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 08, 2002 1:50 PM
Subject: [PHP] fwrite() - problems


> I have a large string that I want to written to a new file.
>  
> Let's say the string contains the characters, "hello!" and I want the
> filename to be "hello.txt"
>  
> Here is the code I have...
>  
> $filename = "hello.txt";
> $outputstring = "hello";
>  
> fwrite($filename, $outputstring);
>  
> ...and of course it isn't working.  I get this error...
>  
> Warning: Supplied argument is not a valid File-Handle resource in
> /home/filanya/www/biopsy/export.php
>  
> What am I doing wrong?
>  
> ThANKS!!
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Problem with socket reading

2001-10-18 Thread R'twick Niceorgaw

Hi All,
I'm a newbie to PHP. Just started to use it for a week and I just subscribed
to this mailing list.

I have a problem with socket reading using fread.

What I'm doing is ..
calling fsockopen to open a socket. Then call fwrite to send my data and
then call fread for 4 bytes. My Server is supposed to send me the length of
actual data in those 4 bytes and then I do another freadto get the actual
data. It's working fine but, sometimes, I'm closing the socket before
receiving any data. On the server side I'm getting an error like "peer
terminated connection can not send data". I called socket_get_status to see
if it's timing out but its not. However, I set the timeout period to 10
seconds in the call to fsockopen function. Still no avail.

Is there any way I can check if there's any error with fread ?

Thanks in advance for any help

cheers
R'twick


My code is below :
<<  CODE >

$socket = fsockopen($Host, $Port,$result,$errstr,10);
if ($result != 0) {
 $ErrorMsg  = "can not connect to Host. Reason: ($result) " .
strerror($result);
 $ErrorMsg .= ". Please Contact SysAdmin";
}
else {
 $result = fwrite ($socket, $msg, strlen ($msg));
 $fp = fopen("log/nma_".date("Y-m-d").".log","a");
 if ($result < 0 ) {
  $ErrorMsg  = "can not send request to Host. Reason: ($result) " .
strerror($result);
  $ErrorMsg .= ". Please Contact SysAdmin";
 }
 else {
  $ResponseLine=fread($socket, 4);
  $socketstatus=socket_get_status($socket);
  if ($socketstatus["eof"] | $socketstatus["timed_out"])
  {
$ErrorMsg = "Host Timed Out".
   }
   }
  $RespLength=ord($ResponseLine[2])*256+ord($ResponseLine[3]);
  $Response .= $ResponseLine;
  $ResponseLine=fread($socket, $RespLength-4);
  $Response .= $ResponseLine;
 }
 $socketstatus=socket_get_status($socket);
 if ( $socketstatus["timed_out"])
 {
 $ErrorMsg = "Host Timed Out".
  }

 fclose($socket);

 }




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Dividing too integers...

2001-10-19 Thread R'twick Niceorgaw

try this..
$temp = ($foo%$bar);
$this=$temp/$bar;

- Original Message - 
From: "Seb Frost" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 19, 2001 6:20 AM
Subject: [PHP] Dividing too integers...


> Sorry for the stupid question...
> 
> I want to do 
> 
> $this=$foo/$bar;  (All are integers.)
> 
> where this is always rounded up.
> 
> I tried the obvious
> 
> $this = ceil($foo/$bar) but I just always get 0.
> 
> 
> cheers,
> 
> - seb
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] array to string

2001-10-19 Thread R'twick Niceorgaw

try this
$fupdatecontents='';
while ( list($key,$value) = each($fcontents) ) {
$fupdatecontents .=$value;
}
$fcontents = $fupdatecontents;

or just write $fupdatecontents into the file.
You may need to add a \n after each line ( which I'm not sure);. If you need
you can change the

$fupdatecontents .=$value;

line to

$fupdatecontents .=$value."\n";

HTH
R'twick
- Original Message -
From: "René Fournier" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Friday, October 19, 2001 12:05 PM
Subject: [PHP] array to string


> Just trying to convert an array to string before writing the whole thing
> back out to a file.  (Trying to do a simple database-less database, using
> text files).
>
> $fcontents = file($name.".db");  // THE ENTIRE TABLE
> $fcontents[$update] = $updatedstring;  // THE ROW TO BE UPDATED
> $fp = fopen($name.".db", "w+");
>
> But before the next line, I need to convert $fcontents to a string, else
> just "Array" gets written to the text file.  I just can't seem to find the
> sure-to-be simple command to do this on php.net or phpbuilder.com, etc.
Any
> ideas?
>
> fwrite($fp,$fcontents);
> fclose($fp);
>
> Thanks.
>
> ...Rene
>
> ---
> Rene Fournier
> [EMAIL PROTECTED]
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: checkboxes

2001-10-26 Thread R'twick Niceorgaw

use onClick event handler for the checkbox and inside the handler check if
checkbox.checked==true then call your checked handler else call unchecked
handler

HTH
- Original Message -
From: "Ben Holt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 26, 2001 6:13 PM
Subject: [PHP] Re: checkboxes


> Sounds like onChange to me...  when you check it you change it, when you
> uncheck it you change it.
>
> - Ben
>
> Boaz Yahav wrote:
>
> > does anyone know the HTML event that knows when a checkbox has been
> > checked and unchecked?
> > So far I'm using onChange but that is not exactly what I need. I need to
> > run one JS function when a checkbox is checked and another when it is
> > unchecked.
> >
> > NE1?
> >
> >
> > berber
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] variable issue

2001-11-09 Thread R'twick Niceorgaw

replace the if statement  if(!$dte)
with
if (!isset($dte))

- Original Message -
From: "Johnson, Kirk" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Friday, November 09, 2001 2:35 PM
Subject: RE: [PHP] variable issue


> The else clause can be removed, since it is not doing anything. What is
the
> error message?
>
> Kirk
>
> > Hey everyone, I need some help with a variable issue. How can
> > I delcare a variable and then if a url variable of the same
> > name is present use that value instead?
> >
> > this is what I have:
> > if(!$dte)
> > {
> > $dte=date("j", time()+$ctime);
> > }
> > else
> > {
> > $dte=$dte;
> > }
> > and this causing an error in the 'if' expression.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] apache + ftp!

2001-11-12 Thread R'twick Niceorgaw

I use war ftp.. its a free ware and has good features
- Original Message -
From: "Olexandr Vynnychenko" <[EMAIL PROTECTED]>
To: "Benjamin" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, November 12, 2001 8:37 AM
Subject: Re: [PHP] apache + ftp!


> Hello Benjamin,
>
> Monday, November 12, 2001, 12:00:22 PM, you wrote:
>
> B> hey group!
>
> B> i have apache installed on an win2000 machine and now i need an good
and
> B> stable ftp server! which one does i take!
>
> B> thank you, ben
>
> And what about W2k's built-in FTP server? Has someone used it? Is it
> so bad?
>
> --
> Best regards,
>  Olexandrmailto:[EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Sending mail from PHP with SMTP server requiring authentication

2001-11-13 Thread R'twick Niceorgaw

Hi gang,
Any one tried to send mail through PHP using mail() through an smtp server
which requires authentication ?

Regards
R'twick


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sending mail without using mail()

2001-11-16 Thread R'twick Niceorgaw

grab a copy of phpmailer .. it does exactly what you want
- Original Message - 
From: "Jaime Iniesta Aleman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 16, 2001 4:01 AM
Subject: [PHP] Sending mail without using mail()


> 
> 
> Ok, where can I find a tutorial about sending mail using fsockopen ?
> 
> ***
> 
> > Hi, is it possible to send SMTP mail if the server where are my pages
> > hosted forbids the use of the mail() function ? I mean, by opening a
> > sockets connection to an external SMTP server and writing the commands
> > there directly...
> 
> Yes, *IF*:
> 
> The ISP was not smart enough to realize this and didn't disable the
> http://php.net/fsockopen function
> 
> Your SMTP server will accept connections from your web-server.
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] quick friday query

2001-11-16 Thread R'twick Niceorgaw

check under what user Apache is running ( mostly nobody  ). You have to give
write permission on the directory where you want the files to be to that
user. For security reasons, just don't give write access on your
document_root, instead create a directory outside ( or within) your
document_root and give write access on it to nobody ( Apache user id) and
write your file there.
- Original Message -
From: "Caspar Kennerdale" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Friday, November 16, 2001 12:49 PM
Subject: [PHP] quick friday query


> I am writing files to my server using
>
> $fp = fopen("myfile.txt", "w");
>
> this all works. However in the php manual it says that by using the "w"
> switch that php will create the file if it doesn exist
>
> However this does not seem to work
>
> I can only write to a file that already exists and has CHMOD 777
>
> Is this a school boy error or do I need my server re configured?
>
> Thanks
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] email info

2001-11-26 Thread R'twick Niceorgaw

looks like your email client at work is not capable of handling the image
(.gif) attachments. check in the help secion of your email client.
HTH
- Original Message -
From: "Caspar Kennerdale" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Monday, November 26, 2001 8:16 AM
Subject: [PHP] email info


> can anyone recommend a site or discussion list relating to email
>
> I have a form to mail script which sends attachments - it all works if I
> have my private email address as the recipient,
>
> however if I use my work email address the mail comes out with no
attachment
> but displays gobbledigook like-
>
> "Content-type: multipart/mixed;boundary=
"cd3b0ec60c75e8454ec2d36d9db1b16e"
> Message-Id: <[EMAIL PROTECTED]>Date: Mon, 26 Nov
2001
> 12:25:31 + (GMT)--cd3b0ec60c75e8454ec2d36d9db1b16eContent-type:
> text/plain; charset=us-ascii Content-transfer-encoding: 7bit  Name caspar
> [EMAIL PROTECTED] Title text submit Description test
> submit --cd3b0ec60c75e8454ec2d36d9db1b16eContent-type:image/gif;
name="text
> submit"
> Content-transfer-encod
>
> If i forward my work email to my private email then the emaiul is fine-
>
> is this a script error, a mail server/ isp error, local mail server error
>
> any ideas thanks in advance
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] declaring variables mandatory???

2001-11-30 Thread R'twick Niceorgaw

Check this url. Your error_reporting is set to E_ALL in the php.ini file.
Change it to suit your need.
On my machine I have error_reporting set as below in the php.ini file.

error_reporting =   E_ALL & ~E_NOTICE


http://www.php.net/manual/en/function.error-reporting.php

- Original Message -
From: "Andy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 30, 2001 2:37 PM
Subject: [PHP] declaring variables mandatory???


> Hello,
>
> I have a problem with my php installation. PHP runs, but all my variables
> have to be declared, othervise I am getting following error:
>
> Warning: Undefined variable: next in
> e:\projects\globosapiens\07_production\actual\forum\install.php on line 33
>
> I guess this is only on my system, since I have obtained other php code
> which workes on other systems, but not on mine.
>
> Thanx for any help
>
> Cheers,
>
> Andy
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




  1   2   >