[PHP] JavaScript+Html+PH

2005-05-16 Thread 王成乔
Hi, Can I use JavaScript+Html+PHP in a file? Function sort(){ Sort_asc(); } E-mail/MSN: [EMAIL PROTECTED]

[PHP] looking for pgEdit beta testers (PostgreSQL/PHP editor)

2005-05-16 Thread John DeSoi
Hi, The latest beta release of pgEdit 1.1 includes support for PHP. If you use PHP and PostgreSQL, I would be very interested in your comments and feedback. Changes since pgEdit 1.0 are summarized here: http://pgedit.com/node/view/30 Thanks, John DeSoi, Ph.D. http://pgedit.com/ Power Tools for

[PHP] Re: PHP subscribe by email

2005-05-16 Thread Manuel Lemos
Hello, on 05/16/2005 10:59 PM Leonie said the following: > Does anyone know of an open source script available in php to accomplish > the following: > > A person sends an email to [EMAIL PROTECTED], the email address is > saved to a mailing list. I have sendMail, Apache, PHP. Any ideas > would b

Re: [PHP] Re-initiating an autostarted session

2005-05-16 Thread disguised.jedi
> But this code *still* does not destroy the cookie on the client side. > Are you doing that somewhere else? /* Look in the user contributed notes in the session-destroy page. There is a function to wipe out the session and has worked nicely for me! http://www.php.net/session_destroy */ -- [EMAI

[PHP] problem with file download konqueror-internet explorer

2005-05-16 Thread cima
hi all, i have the following code in a script whereby i send the filename to be downloaded. there is something that´s not working properly depending on the web browser (and probably the Operating system). now im working on php4,postrgesql,apache2 an mandrake 10 with Konqueror as my web browser. t

[PHP] RE

2005-05-16 Thread Amir Mohammad Saied
Those attributes is just when you use from some functions like highlight_file() and highlight_string() functions! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cache

2005-05-16 Thread Evert | Rooftop
Rory Browne wrote: Interesting idea. Using three identifiers, as a key. md5() returns a 32 hex-digit value. That means that there are can only be a maximum of 3.4 * 10^38 possible outcomes for the md5(). This means that there there is a 1 in 340 chance of a coll

Re: [PHP] Components

2005-05-16 Thread Evert | Rooftop
Jason Wong wrote: On Tuesday 17 May 2005 07:27, Evert | Rooftop wrote: Thank you I will look into it ;) but right now I'm also looking for the php-developers' opinions. So, what are your ideas about this? I strongly suggest that you look at the existing projects, see which one most closely

Re: [PHP] Components

2005-05-16 Thread Jason Barnett
So rather than starting YAPF[1] go and make an existing one better! [1] Yet Another PHP Framework I don't want to go on a rant here, but... I agree 100% with the above statement. So much code is out there that is free (however you want to define that). However, there isn't much code that is bot

Re: [PHP] Components

2005-05-16 Thread Evert | Rooftop
Rory Browne wrote: Thank you I will look into it ;) but right now I'm also looking for the php-developers' opinions. So, what are your ideas about this? AFAIK Prado recently won a fairly well respected PHP Contest. I think the results speak for themselves. Very interesting indeed =) I'll di

Re: [PHP] Components

2005-05-16 Thread Rory Browne
> Thank you I will look into it ;) but right now I'm also looking for the > php-developers' opinions. > So, what are your ideas about this? AFAIK Prado recently won a fairly well respected PHP Contest. I think the results speak for themselves. On 5/17/05, Evert | Rooftop <[EMAIL PROTECTED]> wrote

Re: [PHP] Re: why are session only working with cookies?

2005-05-16 Thread Richard Lynch
On Mon, May 16, 2005 6:24 am, Brian V Bonini said: > On Sat, 2005-05-14 at 22:44, Richard Lynch wrote: >> Using Cookies, or using URL, the session DATA will be stored on the >> server >> in /tmp files -- Unless you change php.ini to store them somewhere else, >> in which case, again, the Cookie and

Re: [PHP] mysql + addslashes + stripslashes

2005-05-16 Thread Richard Lynch
On Mon, May 16, 2005 5:16 am, Pieter Breed said: > My problem is that I have a large array (without any funnies like > self-referencing) getting serialized. There are some funnies in the string > fields though (like `'`s etc). After making a roundtrip to the mysql > database, things start to get ba

[PHP] PHP subscribe by email

2005-05-16 Thread Leonie \(phpgroup\)
Does anyone know of an open source script available in php to accomplish the following: A person sends an email to [EMAIL PROTECTED], the email address is saved to a mailing list. I have sendMail, Apache, PHP. Any ideas would be appreciated. Cheers Leonie -- PHP General Mailing List (http:/

Re: [PHP] Including SSI in your PHP scripts

2005-05-16 Thread Richard Lynch
On Mon, May 16, 2005 2:09 pm, Brian said: > Is there any possible way to use my sitewide include files which have SSI > in > them in a PHP script, such as phpBB, with PHP installed as a cgi? I see > there is a virtual() function which is intended to mimick apache's virtual > include, however it doe

Re: [PHP] Cache

2005-05-16 Thread Rory Browne
Interesting idea. Using three identifiers, as a key. md5() returns a 32 hex-digit value. That means that there are can only be a maximum of 3.4 * 10^38 possible outcomes for the md5(). This means that there there is a 1 in 340 chance of a collision between filena

Re: [PHP] Cache

2005-05-16 Thread Richard Lynch
On Mon, May 16, 2005 12:09 pm, Evert | Rooftop said: > $id1 $id2 and $id3 are when they are combined unique > > * Is there a chance of collision when MD5 is used on the id's and the > ids are long strings Yes. I think it's like 1 in 2 billion odds. If you can concatenate $id1$id2$id3 and get a g

Re: [PHP] Components

2005-05-16 Thread Jason Wong
On Tuesday 17 May 2005 07:27, Evert | Rooftop wrote: > Thank you I will look into it ;) but right now I'm also looking for the > php-developers' opinions. > So, what are your ideas about this? I strongly suggest that you look at the existing projects, see which one most closely matches your visi

Re: [PHP] regex question

2005-05-16 Thread Jason Barnett
$text = 'Some text @ and some mo@@re and [EMAIL PROTECTED], etc @@@.'; /** Word boundaries before and after @ */ $regex = '/[EMAIL PROTECTED]/'; preg_match_all($regex, $text, $matches); var_dump($matches); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

[PHP] php file list with forced download

2005-05-16 Thread Miguel Vaz
Hi, I just have a simple question that some of you might be able to help me with. Was coding a directory listing for several dirs on a client's server that would list the files and allow users to download them. The question is, is there a way to force download of all files, regardless of thei

[PHP] PHP Phone Number Validation

2005-05-16 Thread IMEX Research
OK, I know this has probably gone aruond the list a few times, but how do I validate a phone number that is in the format ddd-ddd- ?? I can't figure out how. Jeremy White IMEX Research Manager, Online Marketing 408-268-0800 1474 Camino Robles San Jose, CA 95120 [EMAIL PROTECTED] http://www

[PHP] Syntax Coloring

2005-05-16 Thread hima
Hi all, I am trying to apply syntax coloring to my source code as I type it in unix shell. I work on a mac machine. How do I achieve this. In the php.ini file I see these following lines commented out. ; Colors for Syntax Highlighting mode. Anything that's acceptable in ; would work. ;highligh

Re: [PHP] Re: Cache

2005-05-16 Thread Jason Barnett
... H... well, file_get_contents() doesn't lock the file so I'm interested in how you're accomplishing this feat. Perhaps you're creating a temporary directory (atomic IIRC) for the filename and then flocking that? I dunno, I hate race conditions. I was to fast with that, I didn't look in

Re: [PHP] extension development

2005-05-16 Thread Evert | Rooftop
Jason Barnett wrote: Evert | Rooftop wrote: Basicly I want very rapid and easy information sharing between multiple processes. I'm not totally sure about the implementation yet. The most simple implementation would be using a $_APP global which is shared accross servers and processes, but to be h

Re: [PHP] Components

2005-05-16 Thread Evert | Rooftop
Jason Wong wrote: On Tuesday 17 May 2005 03:24, Evert | Rooftop wrote: I'm working on a component system and started with a component class. [...] I want to give PHP to have a natural application-programming feel, along with events and all (which is implemented by the PseudeModule class)

Re: [PHP] Firefox COM object

2005-05-16 Thread Rory Browne
XPCOM is similar to COM, except that it is Cross Platform, and doesn't support DCOM. On 5/16/05, Dang Nguyen <[EMAIL PROTECTED]> wrote: > Hello, > > I would like to write some PHP scripts to automate web testing. I already > have a framework that uses the COM class to automate the tests in IE.

Re: [PHP] Re: Cache

2005-05-16 Thread Evert | Rooftop
Jason Barnett wrote: * Is file_get_contents the fastest way to open the file? AFAIK yes it is since it takes advantage of memory mapping (where possible). * Is serialize the fastest way to serialize ;) ? Not sure. * Are there any other things I should consider? (I'm aware of file-locking issu

RE: [PHP] regex question

2005-05-16 Thread Murray @ PlanetThoughtful
> Try (for example if character was "A") ... > > ([^A]|^)A([^A]|$) > > This matches four cases: > A is at beginning of string and there is another letter after it, > A has a letter before it and a letter after it, > A is at end of string and there is a letter before it, > or A is the only charact

Re: [PHP] WINBINDER! WOOT! Re: PHP-GTK, or something else, for desktop app development?

2005-05-16 Thread Rory Browne
On 5/16/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I missed the original post, but if you're looking at doing Windows desktop > development and want a GREAT alternative to GTK, definitely check out > Winbinder! Rubem and crew have done an awesome job (even though he modestly > calls it

Re: [PHP] PHP-GTK, or something else, for desktop app development?

2005-05-16 Thread Rory Browne
I don't think php-gtk is currently suitable. As of 22 April Andrei was considering a very early alpha release. Taking that into consideration I'd doubt if it's stable enough yet for production. Gtk 1 is afaik obsolete. If you're going to jump to a different language, then I'd seriously consider an

[PHP] Re: Problem with an excel file generated with a PHP class

2005-05-16 Thread Jason Barnett
Jay Blanchard wrote: Hi all, I am getting this error when generating an excel file blah.xls cannot be accessed. The file may be read-only, or you may be trying to access a read-only location. Or, the server the document is stored on may not be responding. I get this error if I click 'Open' in the d

[PHP] contract help wanted

2005-05-16 Thread Lee Howard
Hello, I'm a contract worker - mostly I do system administration and consulting, but I also do a lot of system development and programming. Sometimes I have too much work to do as it can be more than me and my associates can comfortably handle. On regular occassion I have some PHP (web applicati

[PHP] Re: Cache

2005-05-16 Thread Jason Barnett
Evert | Rooftop wrote: Hi, I'm developing a cache system. Which works in pseude code, like this: class Cache { function Fetchdata($id1,$id2,$id3) { $id = md5($id1 . $id2 . $id3); if ($this->DataIsExpired($id)) return false; else return unserialize(file_get_contents($id)); } function storeD

[PHP] Re: learning classes - need pointer

2005-05-16 Thread Jason Barnett
Dustin Krysak wrote: ... that I should just pass to the class? Or would there be a more efficient way to do it? d http://pear.php.net/package/DB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] WINBINDER! WOOT! Re: PHP-GTK, or something else, for desktop app development?

2005-05-16 Thread tg-php
I missed the original post, but if you're looking at doing Windows desktop development and want a GREAT alternative to GTK, definitely check out Winbinder! Rubem and crew have done an awesome job (even though he modestly calls it an "alpha" release.. it's very function). It's a native Windows

RE: [PHP] regex question

2005-05-16 Thread Murray @ PlanetThoughtful
> What pattern can I use to match ONLY single occurrences of a character in > a string. > > e.g., "Some text @ and some mo@@re and [EMAIL PROTECTED], etc @@@. > > I only want the two occurrences with a single occurrence of "@". > > @{1} doesn't work; there are 4 matches. > > Thanks Please

[PHP] Problem with an excel file generated with a PHP class

2005-05-16 Thread Jay Blanchard
Hi all, I am getting this error when generating an excel file blah.xls cannot be accessed. The file may be read-only, or you may be trying to access a read-only location. Or, the server the document is stored on may not be responding. I get this error if I click 'Open' in the dialog box, or if I

Re: [PHP] Add to array problem

2005-05-16 Thread Arshavir Grigorian
mayo wrote: I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(); $items=array_push($items, $_POST["whatever"]); I'm missing something easy. thx I am having a similar problem: if (! move_uploa

[PHP] Including SSI in your PHP scripts

2005-05-16 Thread Brian
Is there any possible way to use my sitewide include files which have SSI in them in a PHP script, such as phpBB, with PHP installed as a cgi? I see there is a virtual() function which is intended to mimick apache's virtual include, however it does not work as a CGI. Thanks in advance, Brian

RE: [PHP] regex question

2005-05-16 Thread Murray @ PlanetThoughtful
> What pattern can I use to match ONLY single occurrences of a character in > a string. > > e.g., "Some text @ and some mo@@re and [EMAIL PROTECTED], etc @@@. > > I only want the two occurrences with a single occurrence of "@". > > @{1} doesn't work; there are 4 matches. "/[EMAIL PROTECTED]@[EM

Re: [PHP] regex question

2005-05-16 Thread Philip Hallstrom
On Mon, 16 May 2005, Al wrote: What pattern can I use to match ONLY single occurrences of a character in a string. e.g., "Some text @ and some mo@@re and [EMAIL PROTECTED], etc @@@. I only want the two occurrences with a single occurrence of "@". [EMAIL PROTECTED]@[EMAIL PROTECTED] should do it I

Re: [PHP] Re: I have some upload questions.

2005-05-16 Thread James E Hicks III
Lee Chen wrote: Thanks I check the phpinfo, and my safe_mode is off. This is my phpinfo http://homepage.ntu.edu.tw/~b91401010/phpinfo().htm It is just a copy, not on the server.(so it's html file, not a php file) Thanks. Looks like you need to check this in your php.ini file. Could be your

Re: [PHP] learning classes - need pointer

2005-05-16 Thread Alex Hogan
> > In my current case, I am trying to create all the generic SQL > functions (IE insert, update, delete, etc). Now what I am wondering - > what would be the best way to structure the code so that I can > accommodate the possibilities for different fields and databases, > etc? Is it something that

Re: [PHP] regex question

2005-05-16 Thread Brandon Ryan
Try (for example if character was "A") ... ([^A]|^)A([^A]|$) This matches four cases: A is at beginning of string and there is another letter after it, A has a letter before it and a letter after it, A is at end of string and there is a letter before it, or A is the only character in the string.

Re: [PHP] Components

2005-05-16 Thread Jason Wong
On Tuesday 17 May 2005 03:24, Evert | Rooftop wrote: > I'm working on a component system and started with a component class. [...] > I want to give PHP to have a natural application-programming feel, > along with events and all (which is implemented by the PseudeModule > class). And after that,

[PHP] regex question

2005-05-16 Thread Al
What pattern can I use to match ONLY single occurrences of a character in a string. e.g., "Some text @ and some mo@@re and [EMAIL PROTECTED], etc @@@. I only want the two occurrences with a single occurrence of "@". @{1} doesn't work; there are 4 matches. Thanks -- PHP General Mailing List (ht

[PHP] Cache

2005-05-16 Thread Evert | Rooftop
Hi, I'm developing a cache system. Which works in pseude code, like this: class Cache { function Fetchdata($id1,$id2,$id3) { $id = md5($id1 . $id2 . $id3); if ($this->DataIsExpired($id)) return false; else return unserialize(file_get_contents($id)); } function storeData($data,$id1,$id2,$id

[PHP] Components

2005-05-16 Thread Evert | Rooftop
Hi people, I'm working on a component system and started with a component class. The idea is the following: Sample text Don't worry about speed or anything, I'm taking care of that.. This is my PseudoComponent class | class PseudoComponent extends PseudoModule { function __constr

[PHP] learning classes - need pointer

2005-05-16 Thread Dustin Krysak
Hi there - I am slowly converting all of my projects over to a OOP based structure with classes. Now I had a quick question. In my current case, I am trying to create all the generic SQL functions (IE insert, update, delete, etc). Now what I am wondering - what would be the best way to struc

[PHP] Re: Firefox COM object

2005-05-16 Thread Jason Barnett
Dang Nguyen wrote: Hello, I would like to write some PHP scripts to automate web testing. I already have a framework that uses the COM class to automate the tests in IE. Now, I'd like to port that code so that I can test the same web pages in FireFox or Mozilla browsers. I haven't been able t

[PHP] Re: PHP-GTK, or something else, for desktop app development?

2005-05-16 Thread Amir Mohammad Saied
[pardon me for my poor english] What you want to do? If you just want to be a desktop applications programmer, i dont think learning PHP-GTK be a good way to produce them (learning a language like PHP that is specialized in web environment for desktop programming colud not be a good idea) but if

Re: [PHP] extension development

2005-05-16 Thread Jason Barnett
Evert | Rooftop wrote: Basicly I want very rapid and easy information sharing between multiple processes. I'm not totally sure about the implementation yet. The most simple implementation would be using a $_APP global which is shared accross servers and processes, but to be honest I have to look

Re: [PHP] Firefox COM object

2005-05-16 Thread Brent Baisley
I would doubt FireFox has a COM interface like IE. Remember, IE is really part of Windows so by default it would have a COM interface. FireFox is cross platform where COM won't exist. For example, on the Mac, Firefox only supports the required Appescript interface. Have you thought of using Jav

Re: [PHP] mysql + addslashes + stripslashes

2005-05-16 Thread Drewcore
> I do suspect though, that the problem lies with how I am using addslashes > and how I am not using it. Any definitive help would be much appreciated. i'm not an expert at this, but i think that since you're using mysql to store your data, you shouldn't use addslashes() and use mysql_real_escape_

Re: [PHP] Special characters

2005-05-16 Thread Brian V Bonini
On Mon, 2005-05-16 at 12:23, Carlos Palomino wrote: > Hi everyone, > I have just begun writing PHP web-pages and I have come across an interesting > issue. > Whenever I use special characters within my code such as: a "©", the > character > displays as a "?". Because that's not valid HTML... S

Re: [PHP] Parsing XML with php

2005-05-16 Thread Christian Stocker
On 5/12/05, Burhan Khalid <[EMAIL PROTECTED]> wrote: > Merlin wrote: > > Hi there, > > > > I am curious if PHP is now able to pars xml without aditional tools like > > xmlrpc. > > If yes which version is required? Is the current php 4.x tree sufficient? > > 4.x requires the expat parser (so I gues

Re: [PHP] extension development

2005-05-16 Thread Evert | Rooftop
Basicly I want very rapid and easy information sharing between multiple processes. I'm not totally sure about the implementation yet. The most simple implementation would be using a $_APP global which is shared accross servers and processes, but to be honest I have to look into it to find the be

Re: [PHP] Re: I have some upload questions.

2005-05-16 Thread Lee Chen
btw, even if I set max_execution_time = 0in the php.ini, I still CAN'T upload a file of 30MB. and it still shows the same message: Fatal error: Maximum execution time of 0 seconds exceeded in justtest.php on line 2 I just don't understand how it can exceed a max execution time of "0". Any

[PHP] Firefox COM object

2005-05-16 Thread Dang Nguyen
Hello, I would like to write some PHP scripts to automate web testing. I already have a framework that uses the COM class to automate the tests in IE. Now, I'd like to port that code so that I can test the same web pages in FireFox or Mozilla browsers. I haven't been able to locate any docum

Re: [PHP] Re: I have some upload questions.

2005-05-16 Thread Lee Chen
Thanks I check the phpinfo, and my safe_mode is off. This is my phpinfo http://homepage.ntu.edu.tw/~b91401010/phpinfo().htm It is just a copy, not on the server.(so it's html file, not a php file) Thanks. - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "Lee Chen"

[PHP] Special characters

2005-05-16 Thread Carlos Palomino
Hi everyone, I have just begun writing PHP web-pages and I have come across an interesting issue. Whenever I use special characters within my code such as: a "©", the character displays as a "?". All other text and characters display properly, so I am not certain why some special marks do not

Re: [PHP] Add to array problem

2005-05-16 Thread Petar Nedyalkov
On Monday 16 May 2005 17:26, mayo wrote: > I'm having a little problem adding to an array. Each time I add to an > array it wipes what was previously added. I'm using array_push(). > > $items=array(); > $items=array_push($items, $_POST["whatever"]); Don't assign the result of the array_push() func

Re: [PHP] Add to array problem

2005-05-16 Thread Marek Kilimajer
mayo wrote: I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(); $items=array_push($items, $_POST["whatever"]); I'm missing something easy. thx array_push() returns the number of elements in

[PHP] Re: Add to array problem

2005-05-16 Thread Jason Barnett
Mayo wrote: I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(); $items=array_push($items, $_POST["whatever"]); I'm missing something easy. thx $items[] = sanitize($_POST['whatever']); funct

RE: [PHP] Add to array problem

2005-05-16 Thread Mark Rees
-Original Message- From: mayo [mailto:[EMAIL PROTECTED] Sent: 16 May 2005 15:26 To: php Subject: [PHP] Add to array problem I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(); Looking at

Re: [PHP] Add to array problem

2005-05-16 Thread Chris
If you're doing: $items=array(); before each array_push() call, that is emptying the array, then pushing the value onto the empty array. mayo wrote: I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(

RE: [PHP] Add to array problem

2005-05-16 Thread Murray @ PlanetThoughtful
> I'm having a little problem adding to an array. Each time I add to an > array it wipes what was previously added. I'm using array_push(). > > $items=array(); > $items=array_push($items, $_POST["whatever"]); > > I'm missing something easy. Try: $items=array(); array_push($items, $_POST["whatev

RE: [PHP] Add to array problem

2005-05-16 Thread Shaw, Chris - Accenture
Hello, $items=array(); Sets $items to an array with nothing in, so if you had anything in there previously, its gone. Here is the example from the help file. Array ( [0] => orange [1] => banana [2] => apple [3] => raspberry ) Chris. -Original Message- From: mayo [ma

Re: [PHP] Re: I have some upload questions.

2005-05-16 Thread Marek Kilimajer
Lee Chen wrote: Thanks for all of your helping. I think now maybe it's not the serve's problem because I CAN post forms and even I can upload some smaller size files. Then the following is my problem: This is the script of " justtest.php" : justtest.php I can upload a file of size 7KB, but whe

Re: [PHP] Re-initiating an autostarted session

2005-05-16 Thread Jason Barnett
Ville Mattila wrote: Marek Kilimajer wrote: You are right, unset($_COOKIES) does not remove cookie from the client. You need to unset() it so that your next call to session_start() does not use the same $_COOKIES[session_name()]. session_start will generate new session id if there is not one set

Re: [PHP] lib ssh2 functions and ssh2_exec stream reading work around

2005-05-16 Thread Shawn McKnight
I ran in to many ssh2 stream problems as well. Problem 1. One problem I think related to the openssl version I was using. I was using the standard version with Fedora Core 3. ssh connected actions sometimes worked and sometimes did not work. I recompiled the ssh2.so with the following versions. lib

Re: [PHP] changing php ini location

2005-05-16 Thread Jason Barnett
Emre wrote: ... yes i aware of php ini set, but there is no logic using that command for global changes that you use each time. if you want to change global php.ini settings for a spesific script than its useful, but to change global settings for each script, thats smt like overkill :) eg. you c

Re: [PHP] Re-initiating an autostarted session

2005-05-16 Thread Ville Mattila
Marek Kilimajer wrote: You are right, unset($_COOKIES) does not remove cookie from the client. You need to unset() it so that your next call to session_start() does not use the same $_COOKIES[session_name()]. session_start will generate new session id if there is not one set in the request variab

[PHP] Add to array problem

2005-05-16 Thread mayo
I'm having a little problem adding to an array. Each time I add to an array it wipes what was previously added. I'm using array_push(). $items=array(); $items=array_push($items, $_POST["whatever"]); I'm missing something easy. thx

Re: [PHP] phpMyAdmin authentication error

2005-05-16 Thread Kristen G. Thorson
I haven't used mysqli, so I'm not as familiar with errors related to that library, but you said you downloaded "the latest package of MySQL," which is hopefully 4.1.12. This version shouldn't cause this error with mysqli. In my experience, this error has always been a case of PHP compiled aga

Re: [PHP] Re: why are session only working with cookies?

2005-05-16 Thread Jason Barnett
Brian V Bonini wrote: On Fri, 2005-05-13 at 23:31, Jason Wong wrote: On Saturday 14 May 2005 09:42, Brian V Bonini wrote: Yeah, I know session support is there and I DO NOT have it set to use ONLY cookies. But if I disable cookies in the browser stuff relying on sessions stops working. I'm using 5

[PHP] Fwd: Re: [PHP-DEV] Function proposal

2005-05-16 Thread Petar Nedyalkov
On Friday 13 May 2005 14:29, AnteD wrote: > Hi guys... > > Yes I know that this is a small function and yes I know it can be > copy-paste with every new project you do but from the first day I've > been using PHP until today this function follows me everywhere and I now > that everyone is using it

Fwd: Re: [PHP] lib ssh2 functions

2005-05-16 Thread Petar Nedyalkov
On Saturday 14 May 2005 02:16, Oscar Gosdinski wrote: > Hello everybody: > > I need my PHP application connects through SSH to other server for > getting some info to display and i tried the following code to test > lib ssh2: > > $server = ...; > $user = ...; > $passwd = ...; > > $con = ssh2_connec

Fwd: Re: [PHP] [php] Chrooting php...

2005-05-16 Thread Petar Nedyalkov
On Friday 13 May 2005 19:23, Tony Di Croce wrote: > I'm trying to fully chroot my server. Right now, I have Apache running > in a chroot jail, and I need to get php5 working their too... Before I > dive in, I thought I'd just ask if anyone here has any experience > doing this...? Are their any know

[PHP] Re: I have some upload questions.

2005-05-16 Thread Lee Chen
Thanks for all of your helping. I think now maybe it's not the serve's problem because I CAN post forms and even I can upload some smaller size files. Then the following is my problem: This is the script of " justtest.php" : justtest.php I can upload a file of size 7KB, but when I want to

Re: [PHP] mysql + addslashes + stripslashes

2005-05-16 Thread Pieter Breed
Hi, I have a similar problem at the moment. I was waiting to scrape together an example, but since you posted first I will jump into the discussion now. My problem is that I have a large array (without any funnies like self-referencing) getting serialized. There are some funnies in the string

Re: [PHP] mysql + addslashes + stripslashes

2005-05-16 Thread Petzo
Thanks for the reply from 1 to 4 I do the same.I havent wrote it here so that my sample to be more short whhat i didn't get from your reply was that part: > For data that comes from SQL sources: > 1. check magic_quotes_runtime PHP setting... so what do you do if that setting is on/off (in my cas

Re: [PHP] Re: why are session only working with cookies?

2005-05-16 Thread Brian V Bonini
On Sat, 2005-05-14 at 22:44, Richard Lynch wrote: > Using Cookies, or using URL, the session DATA will be stored on the server > in /tmp files -- Unless you change php.ini to store them somewhere else, > in which case, again, the Cookie and URL only holds the ID and all the > data goes wherever you

Re: [PHP] Re-initiating an autostarted session

2005-05-16 Thread Marek Kilimajer
Ville Mattila wrote: Marek Kilimajer wrote: the cookie variable still persists. you need to uset($_REQUEST[session_name()], $_COOKIES[session_name()] ...); Thanks Marek for a reply. I'm not sure but I have been thinking that unset($_COOKIES) does not destroy the cookie from the client side but j

RE: [PHP] dynamically updating site

2005-05-16 Thread Murray @ PlanetThoughtful
> I looking for a way to update certain parts of a site that is highly > dynamic. I've tried creating static files via cronjobs then including > them, > but it is a pain to do. for instance, i have a news page that utilizes > mysql, rather than query the DB on each page load i would like to have it

Re: [PHP] Re-initiating an autostarted session

2005-05-16 Thread Ville Mattila
Marek Kilimajer wrote: the cookie variable still persists. you need to uset($_REQUEST[session_name()], $_COOKIES[session_name()] ...); Thanks Marek for a reply. I'm not sure but I have been thinking that unset($_COOKIES) does not destroy the cookie from the client side but just unsets the cookie

Re: [PHP] mysql + addslashes + stripslashes

2005-05-16 Thread Bostjan Skufca @ domenca.com
I do the following way to achieve portability: For GET/POST/COOKIE variables: 1. check "magic_quotes_gpc" PHP setting - if enabled strip slashes from input variables using stripslashes() 2. check input/anything 3. prior building SQL query escape stuff (mysql - mysql_real_escape_string(), others

[PHP] mysql + addslashes + stripslashes

2005-05-16 Thread Petzo
Hi, My question is about the norlmal behaviour of PHP and MYSQL but I cant explain it without a simple example. Thank you for reading: I have the following code: -

Re: [PHP] mod_rewirte loses POST data

2005-05-16 Thread Petar Nedyalkov
On Friday 13 May 2005 14:58, Bart Seresia wrote: > Hi, > > I'm currently developing a webapplication that uses mod_rewrite. > > At some point i have to post data but i't seems to get lost, checking the > web and some archives i've found that normaly mod_rewrite should preserver > this data, but app

Re: [PHP] Seeking decent domain registrar

2005-05-16 Thread Marcus Bointon
On 14 May 2005, at 07:53, Richard Lynch wrote: For the record, no I haven't tried to go to that URL, because I don't even know how to type that symbol. Ah. I don't think you use a Mac ;^) MacOS (9 and X) has a wonderful system for typing any accented characters very easily (from an English ke

Re: [PHP] domxml problem

2005-05-16 Thread Petar Nedyalkov
On Monday 16 May 2005 09:52, Georgi Ivanov wrote: > On Friday 13 May 2005 20:03, Brian V Bonini wrote: > > On Fri, 2005-05-13 at 10:31, Georgi Ivanov wrote: > > > But it gives me error on this line : > > > $DomDocument = domxml_open_file($file); > > > > What's the error? > > The error is : > "Call

Re: [PHP] Re-initiating an autostarted session

2005-05-16 Thread Marek Kilimajer
Ville Mattila wrote: Leif Gregory wrote: session_destroy(); session_start(); session_write_close(); Header("Location: ..."); exit; I never tried regenerate. Just started a new session again. Hi Leif! Thanks for your reply. For some strange reason, this works not for me. The session cookie will no

[PHP] PHP-GTK, or something else, for desktop app development?

2005-05-16 Thread Murray @ PlanetThoughtful
Hi All, I'd like to do some desktop app development and I'm looking for others' thoughts on whether PHP-GTK is a suitable environment in which to work? Years ago I developed desktop apps in Access / VB6, but it's been long enough now, and VB in particular has changed so much in the intervening ti

Re: [PHP] dynamically updating site

2005-05-16 Thread Angelo Zanetti
content management systems..like plone.org or creating your own system, with a backend where you update the text with a html teatarea editor (like bold italic etc...) and then update the DB and walla! hope this helps. Angelo Zanetti Z Logic www.zlogic.co.za [c] +27 72 441 3355 [t] +27 21 469 105

Re: [PHP] domxml problem

2005-05-16 Thread Georgi Ivanov
On Friday 13 May 2005 20:03, Brian V Bonini wrote: > On Fri, 2005-05-13 at 10:31, Georgi Ivanov wrote: > > But it gives me error on this line : > > $DomDocument = domxml_open_file($file); > > What's the error? The error is : "Call to undefined function" I tried with the new function ( domxml_open_