[PHP] Does array_splice() fit for case ?

2010-08-26 Thread Alfredo Palhares
ordered by this index. - Adding a new entry to another array in this loop that not haves the *id*== 0. and after that reverse the order - Use the array_splice native function. What do you recommend me ? Sorry by the bad English. -- Regards, Alfredo Palhares

Re: [PHP] php_mssql.so

2008-03-27 Thread Alfredo CV
running on mandrake using packages found there Hasta pronto y éxitos. Alfredo Liz Kim wrote: We have a set of PHP files which uses dl() to load the extension php_mssql.so at runtime. These were running on a server with PHP 4.3.9 and have been recently moved to a new server with PHP 5.1.6 (both

Re: [PHP] trouble parsing an XML document

2003-12-16 Thread alfredo
cannot change all the XML docs and the DTD. bye Alfredo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] trouble parsing an XML document

2003-12-16 Thread alfredo
Sven wrote: hi alfredo, maybe you can workaround with arrays? for keys you can use any string. so $xml['REG-ORIG'] is valid in php. I'm not so expert with XML parsing, I just took examples from PHP manual..thanks ciao alfredo hth SVEN -- PHP General Mailing List (http://www.php.net

Re: [PHP] trouble parsing an XML document

2003-12-15 Thread alfredo
thank you, but the error: Parse error: parse error, unexpected '$', expecting T_VARIABLE in (mypath)...on line... refers to the line whit the var ${'REG-ORIG'}; code, anyway I took the code by the PHP manual. bye Alfredo Raditha Dissanayake wrote: doesn't look like a xml parser problem

[PHP] trouble parsing an XML document

2003-12-14 Thread alfredo
T_VARIABLE... thanks for any suggestion, Alfredo (Italy) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to put a new line character with fputs($birthday_file, $content);

2002-06-23 Thread Alfredo
Hi, I am saving the result of a query on a text file. Then I want to open it with excel. At the moment, when I open it with excel, all results appear in one very long line. How could I insert a new line character at the end of each record? Thanks Alfredo -- PHP General Mailing List

Re: [PHP] remote scripting objects

2001-09-06 Thread Alfredo Yong
Ok, fine but what about something like this: say you have a page with a dropdown to select cities and a second dropdown to select places in the previously selected city. You change the cities dropdown and normally you reload all the page to fill in the places for the second dropdown. Say also

Re: [PHP] MDB

2001-09-03 Thread Alfredo Yong
Man, this is a real value! I was in a trouble thinking how to publish data coming from the administration area. Thinking in programming visual basic interfaces, generate SQL inserts, etc. But now you can simply publish it and thats all! Browsing with google, I found this well written article

[PHP] Re: PHP Authentication on Apache

2001-09-03 Thread Alfredo Yong
Yes. It works. It is great. if(!isset($PHP_AUTH_USER) or $PHP_AUTH_USER != myuser or $PHP_AUTH_PW != mypassword) { Header(WWW-Authenticate: Basic realm=\Only authorizeds web\); Header(HTTP/1.0 401 Unauthorized); echo ha!\n; exit; } Lynn Holt wrote: Hi all,

[PHP] Re: Call to undefined function: dbase_open() in

2001-09-02 Thread Alfredo Yong
You need to load the dbase.so support module in your php. Like a dll in windows. Php has a lot of libraries, the idea is t load only those you need. I don't remember the syntax and the files to modify, check configuration manual or ask your system administrator. I had a similar problem,

[PHP] Re: Problems with RELOAD on browsers

2001-09-02 Thread Alfredo Yong
Hi peke: May be you can try with a hidden state field in the form. I think it can be faster and more compatible because you don't need to load the session support. input type = hidden name=state value=?=$MyVar? Pekesan wrote: Hi... I have a php url on wich in some steps through several

[PHP] Re: Newbie: PHP has encountered an Access Violation..More details!

2001-09-02 Thread Alfredo Yong
include your source. Michael Cronström wrote: ...at 018D2466 what have I done wrong! Michael Cronström [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

[PHP] Re: virtual nulls include problem: It really happen

2001-09-02 Thread Alfredo Yong
Richard Lynch wrote (Many thanks Rick for this): % virtual (../../../../headlvl4.shtml); % This works fine for the header, but makes an error when the include built in function calls the php script that shows the main panel of the page: I don't see how the virtual() is involved here

[PHP] Re: Database Function

2001-09-02 Thread Alfredo Yong
look here: http://www.bitmechanic.com/mail-archives/mysql/Jun1998/0387.html An extract: Write this: select * from table_name limit 100 select * from table_name limit 100, 100 select * from table_name limit 200, ( what number you want).. On Mon, 15 Jun 1998, Joe Walnes wrote:

[PHP] virtual nulls include problem

2001-09-01 Thread Alfredo Yong
Hi. I use allways the include built in function to conditionally select the php script that build the web page. I need to add a header at he beginning of an already working script, but the directive include don't work: !-- #include virtual=../../../../headlvl4.shtml -- So I'm using