Re: [PHP] Newbie: element index array

2002-11-24 Thread Chase Urich
unset($a['element2']);

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

> I would like to ask that how can I completely delete the $a['element2'] in
> the array? That's mean I will get 'false' in 'isset($a['element2']) after
> the delete process is taken place.
-- 
Linux: Because rebooting is for adding hardware.
Fingerprint = CE24 057D 1E88 A253 3196 89DB 9FF0 9EF0 2F70 8BE8 BE8



signature.asc
Description: This is a digitally signed message part


[PHP] Apache2 & PHP4

2002-12-20 Thread Chase Urich
OK, so I've spent the last 2 or 3 hours looking on the net for this.
Can anyone tell me the proper way (with Apache 2.0.40) to instruct
apache to process .htm and .html files?

I've tried:
In /etc/httpd/conf/httpd.conf ::
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
And also in /etc/httpd/conf.d/php.conf ::
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html

Neither appears to work or affect anything at all. I have also tried:

SetOutputFilter PHP
SetInputFilter PHP

... in the php.conf file, but my guess is that this wouldn't work unless
something like the AddType points to PHP to begin with.

Can anyone give me some ideas? I'm just fine with Apache 1.3, but RH8
ships with Apache2 and I thought I'd try it ...

Chase


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




Re: [PHP] What happened to phpEdit???

2003-02-17 Thread Chase Urich
It worked just fine for me, even just phpedit.net worked.

Cahse
On Mon, 2003-02-17 at 18:21, Al wrote:
> Did you try the URL you posted?
> 
> I tried that one and several others listed for phpEdit.
> 
> All say the site is not responding.
> 
> Bryan Lipscy wrote:
> > Did you check google?
> > http://ozu.arecom-sa.com/~marms/phpedit.net/
> > 
> > -Original Message-
> > From: Al [mailto:[EMAIL PROTECTED]] 
> > Sent: Sunday, February 16, 2003 8:39 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] What happened to phpEdit???
> > 
> > 
> > Their site no longer responds.
> > 
> > Surely, we haven't lost one of the best php editors.
> > 
> > 
> 


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




Re: [PHP] Strange "1" after include

2002-09-23 Thread Chase Urich

 tells PHP to echo out the result of
include(“menu.inc”), which just happens to be a success code (1). The
second for simply includes the file without echoing out anything.

Chase
On Mon, 2002-09-23 at 02:45, César Aracena wrote:
> Hi all,
>  
> I’m wondering why does a number 1 appears in the output after the
> included text has been showed. I have a menu file for including and I
> just put  but then the output shows:
>  
> Back to Index
> 1
>  
> and I don’t have that number in either my script nor my include file. If
> I put:
>  
>  Include (“menu.inc”);
> ?>
>  
> it shows normally without the 1… Why is that?
>  
> Thanks,
>  
> Cesar Aracena  
> On Dial-Up
> CE / MCSE+I
> Neuquen, Argentina
> +54.299.6356688
> +54.299.4466621
>  
-- 
PGP Fingerprint = CE24 057D 1E88 A253 3196 89DB 9FF0 9EF0 2F70 8BE8



signature.asc
Description: This is a digitally signed message part


RE: [PHP] what do you think?

2002-09-27 Thread Chase Urich

Ditto.

Chase
On Fri, 2002-09-27 at 07:34, Miles Thompson wrote:
> 
> Fully concur.
> 
> mt
> 
> At 01:26 PM 9/27/2002 +0100, Ford, Mike   [LSS] wrote:
> > > -Original Message-
> > > From: Arminas [mailto:[EMAIL PROTECTED]]
> > > Sent: 27 September 2002 11:38
> > >
> > > about http://smanager.web1000.com/
> >
> >I think the page needs a drastic proof-read and grammar check -- I have 
> >trouble understanding what some of it is even trying to say.  And I 
> >haven't a clue what "ASSAY TO INTEGRATE MANAGEMENT" is supposed to mean!
> >
> >It looks like a nice product, but I wouldn't even evaluate it after 
> >looking at this because I'd be worried about having to spend too much time 
> >trying to decipher it's output.
> >
> >Cheers!
> >
> >Mike
> >
> >-
> >Mike Ford,  Electronic Information Services Adviser,
> >Learning Support Services, Learning & Information Services,
> >JG125, James Graham Building, Leeds Metropolitan University,
> >Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
> >Email: [EMAIL PROTECTED]
> >Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211
> >
> >--
> >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
-- 
PGP Fingerprint = CE24 057D 1E88 A253 3196 89DB 9FF0 9EF0 2F70 8BE8



signature.asc
Description: This is a digitally signed message part


Re: [PHP] SQL>Insert and recover the ID

2002-10-31 Thread Chase Urich
Check out mysql_insert_id()

> For the moment, I do a select max(Id) just after the insert but there
> is, my be a best way to do it.
-- 
Linux: Because rebooting is for adding hardware.
Fingerprint = CE24 057D 1E88 A253 3196 89DB 9FF0 9EF0 2F70 8BE8 BE8



signature.asc
Description: This is a digitally signed message part