[PHP] testing

2002-07-25 Thread lallous
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] include() limits

2002-07-25 Thread lallous
Hello, I wonder how much I can include files? does it matter if the size sum of the source code included are above 1MB ? thanks, elias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: testing

2002-07-25 Thread lallous
test ok! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: preview an html file.

2002-07-25 Thread lallous
Hello, 1. you must have a frame system with two frames: frame1 called fileslist, fametwo called: preview when you build the files list do like this: ? while (list(, $filename) = each($filesarray)) { echo lia href=javascript:display('$filename')$filename/a; } ? then declare a javascript

[PHP] Re: PHP extension names

2002-07-25 Thread lallous
try: function_exists('mysql_query') - if TRUE then MySql is supported, etc... Peter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I need to use extension_loaded() to try and detect which database interface(s) are installed on some servers. Nowhere

[PHP] Re: Creating a calender / diary

2002-07-25 Thread lallous
try www.hotscripts.com there are lots of scripts as your request. Craig [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i am using dreamweaver mx and want to acheive the following 9:00 task 1 9:30 task 2 10:00 task 3 task 4

[PHP] preg_match() occurence position

2002-07-25 Thread lallous
Hello, Can I get the starting position of my string occurence when using any regexps searching functions in PHP ? for example: $mem='this is a test'; preg_match('/test/', ...) should return me somehow: 10 Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Reg exp to remove line feeds before lines starting with white space

2002-07-25 Thread lallous
? $mem='Newsgroups: php.general Path: news.php.net Xref: news.php.net php.general:109465 Return-Path: [EMAIL PROTECTED] Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Delivered-To: mailing list [EMAIL PROTECTED] Received1: (qmail 60843 invoked from network); 25 Jul 2002 10:36:29 -

Re: [PHP] preg_match() occurence position

2002-07-25 Thread lallous
Kuznetsov [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello lallous, Thursday, July 25, 2002, 3:40:32 PM, you wrote: l Hello, l Can I get the starting position of my string occurence when using any l regexps searching functions in PHP ? l for example:

[PHP] Re: How to store an image into a mysql database using php language?

2002-07-25 Thread lallous
insert into table(imagefield) values(load_file('/path/to/image.jpg')) i remember that worked for me. //elias Rija [EMAIL PROTECTED] wrote in message 001501c231f5$72337a40$3d00a8c0@workelp3">news:001501c231f5$72337a40$3d00a8c0@workelp3... I want to store image data into mysql table using BLOB

Re: [PHP] preg_match() occurence position

2002-07-25 Thread lallous
Yes, I've done it before too...but I saw some other libraries(in other programming langs) that has such features... Justin French [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... on 25/07/02 11:05 PM, lallous ([EMAIL PROTECTED]) wrote: Yes, I

[PHP] Re: Is it possible...

2002-07-27 Thread lallous
You can't download a script when it is being parsed. If it is not going to be parsed you can download it as text. as for php.net , they have got a button on their site called: showsource click it and have the source of any page you want, Apollo [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: How can I get my session variable to pass to another page?

2002-07-27 Thread lallous
you have to add: session_start() in your second file. Donpro [EMAIL PROTECTED] wrote in message 005001c234df$fe6e7b80$[EMAIL PROTECTED]">news:005001c234df$fe6e7b80$[EMAIL PROTECTED]... Hi, I have a form that calls a PHP script which sets a session variable and redirects to anopther URL as

[PHP] Re: Calling a function without variable params

2002-07-27 Thread lallous
you can pass an unlimited number of variable through the array() constructor. as: data_interface(array($table1, $table2, $table3)) you can use an Array manipulation functions for that order too. good luck, Mathieu Dumoulin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: Logging: Best archive method

2002-07-27 Thread lallous
No matter how much you compress you'll always come across the size grow problem. try RAR (www.rarsoft.com) execute it from PHP when necessary. good luck, Julio Nobrega [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I am serializing every get,

[PHP] Re: Quotes getting screwed up in form fields

2002-07-27 Thread lallous
if you're using Apache, try creating an .htaccess file with this line in it: php_value magic_quotes_gpc 1 Monty [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... If someone enters this into a field... New York City and I need to re-display it in the field

[PHP] Re: Create a link where http://

2002-07-29 Thread lallous
? $mem = Hello world! http://www.helloworld.com\n Hello world! ftp://ftp.server.com\n Hello world www.helloworld.com; // code starts here $mem = preg_replace (/\s+([http:|ftp:]{0,1}\S+\.\S+)/me, ' A href=\'. (ereg('^[http:|ftp:]','\\1') ? '\\1\\\1/A' : 'http://\\1\;http://\\1/A'), $mem);

[PHP] Re: PHP counterpart to 4GuysFromRolla?

2002-07-29 Thread lallous
www.phpbeginner.com http://www.zend.com/zend/tut/ . . . Paul Dionne [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there a PHP counterpart to this site: http://www.4GuysFromRolla.com/ I always thought it was a great resource, easy to use, and full of

[PHP] Re: inserting info into db

2002-07-29 Thread lallous
You can save the answers in sessions or cookies and then insert them all in one bunch. Elias, Tyler Durdin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a DB that will take answers to an 82 question survey, but i have the survey divided into 4 html

[PHP] Re: Resetting ID

2002-07-30 Thread lallous
Save all the entries somewhere programmatically, then do DELETE * FROM tablename; re insert all the entries (of course do not enter the ID field, cause it will be auto assigned). gl, Thomas Edison Jr. [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Glory! I

[PHP] Re: MYSQL natsort() ?

2002-07-30 Thread lallous
Well, you can do something like: SELECT * FROM tablename ORDER BY fieldname [ASC|DESC] = [ASC|DESC] optional, put either of theses without the brackets. //Elias. Joel Colombo [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... This is a mysql question, cause i

[PHP] Re: fullname

2002-07-30 Thread lallous
Even more, $fullname = {$session['f_name']} {$session['l_name']}; even $fullname = sprintf(%s %s, $session[f_name], $session['l_name']); etc Mantas Kriauciunas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hey php-general, is there some other

[PHP] Re: SMS message ?

2002-07-31 Thread lallous
Lots of pay sites allow you to send SMS programmatically... check for example www.smsxchange.com Rija [EMAIL PROTECTED] wrote in message 035c01c2383d$b39df7f0$3d00a8c0@workelp3">news:035c01c2383d$b39df7f0$3d00a8c0@workelp3... Hi all, I'm a newbie, and I'd like some advice, and I don't have any

[PHP] Re: Bcc with the mail command

2002-07-31 Thread lallous
Yes, the header can contain this: $mailheader=Bcc: [EMAIL PROTECTED]\r\nTo: [EMAIL PROTECTED]; Elias, Carlos Fernando Scheidecker Antunes [EMAIL PROTECTED] wrote in message 012301c23874$982a5c70$93505ad1@Nando0">news:012301c23874$982a5c70$93505ad1@Nando0... Hello all, Just a question about PHP

[PHP] extending class then calling its original function

2002-07-31 Thread lallous
Hello when I extended a class and overwrite a function, can i after overwriting that function call it so it does what it used to do? for example in Delphi I say: procedure TMyExtendedClass.Proc1; begin // do new stuff here inherited; // calls the TMyClass.Proc1; end; Elias -- PHP General

[PHP] Re: stripping quotes within an image tag

2002-07-31 Thread lallous
? echo preg_replace('/(img.+?src=)([^]+)([^]*)/i', '\1\2\3', 'IMG height=44 alt=hspace=0 src=blah.jpg width=148 border=0'); ? Elias, Electroteque [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi how is it possible to strip quotes from an image tag ? i need

[PHP] Re: stripping quotes within an image tag

2002-07-31 Thread lallous
that won't really work if he used the ALT attribute too: img alt=Hello world image src=helloworld.jpg David Robley [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... hi how is it possible to strip

[PHP] Re: DOMXML...

2002-07-31 Thread lallous
hmm! 1)Can you show the code @ line 36 if possible 2)try to escape the \ (replace every \ with \\) Brian McGarvie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a problem with DOMXML... I installed it and it is showing up in a phpinfo() script...

[PHP] Re: shorter way to write include function?

2002-07-31 Thread lallous
if dotest.php has got the code, do this: echo eval(join('', file('dotest.php')); Bas Jobsen [EMAIL PROTECTED] wrote in message 02073113582400.32156@bjobsen">news:02073113582400.32156@bjobsen... Hello, i have /include/dotest.php: ? function dotest() {echo 'test';} ? and test.php: ?

[PHP] Re: There has to be a more elegant way of doing this

2002-07-31 Thread lallous
NEWSTRING = preg_replace( array(/WHAT TO SEARCH FOR ARRAY/), array(/WHAT TO REPLACE WITH ARRAY/), STRING) Mike [EMAIL PROTECTED] wrote in message 007201c23891$4fee8400$[EMAIL PROTECTED]">news:007201c23891$4fee8400$[EMAIL PROTECTED]... Heya, I was just wondering If there is a more elegant way

Re: [PHP] Storing script in database??

2002-08-01 Thread lallous
I agree with Justin! Probably your best solution is to write your own mini script and write an interpreter for it! Elias Justin French [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm pretty sure you can use eval() on a string, but tread with caution, and

[PHP] Re: Disabling Browser BACK button

2002-08-01 Thread lallous
see: http://lgwm.org/trap.htm try to use the same mechanism. Elias Petre [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 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

[PHP] Re: extracting variables from files

2002-08-01 Thread lallous
try str_replace() or preg_replace() Elias, Nick Wilson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, I break out in a cold sweat just thinking about regex, so I thought I'd ask you if there was

[PHP] Re: Need help to choose hosting!

2002-08-02 Thread lallous
have you tried: http://www.hostrix.com ? //Elias Mantas Kriauciunas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hey php-general, i want to buy hosting. but i can't find good one for me. maybe someone could point some links. but this is what i need!

[PHP] Re: Why do i get this Notice Message?

2002-08-02 Thread lallous
In your function do this: function WriteNewArticle() { GLOBAL $PHP_SELF; ... } //Elias JüRgen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello! Could someone please tell me why i get the following Notice Message Notice: Undefined variable: PHP_SELF

Re: [PHP] Why do i get this Notice Message?

2002-08-02 Thread lallous
even on old versions of PHP, he can then just use: $GLOBALS['PHP_SELF'] w/o worrying about the Global keyword! Elias John Holmes [EMAIL PROTECTED] wrote in message 001001c23a1e$601f5050$b402a8c0@mango">news:001001c23a1e$601f5050$b402a8c0@mango... Could someone please tell me why i get the

[PHP] Re: Undefined Index

2002-08-02 Thread lallous
do this: $op = isset($_GET['op']) !empty($_GET['op']) ? $_GET['op'] : ''; JüRgen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... It's me again, i don't mean to be a bugger, but i really like to learn as much as possible, that's why i ask (or will ask so many

[PHP] include hassle

2002-08-02 Thread lallous
I have this: //file1.php ? include('../libs/lib1.php'); .. .. .. ? now lib1.php: ? include ('helper.php'); ? If i run file1.php -includes lib1.php - fails to include helper.php ! ! how can i solve that? p.s: currently, i'm chdir()ing to the ../libs path, then i return to current dir... my

[PHP] Re: Protect PHP coding

2002-08-02 Thread lallous
So... Is this equivalent to Zend Encoder? Elias Manuel Lemos [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, On 08/01/2002 01:58 PM, Yc Nyon wrote: Is there any method to encrypt PHP files. Use bcompiler which is free and is part of PEAR/PECL

[PHP] Re: Favorite Calendar Anyone?

2002-08-02 Thread lallous
have you searched hotscripts.com ? Shane [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Anyone have a favorite Calendar script out there they would like to share? - NorthBayShane -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] include hassle

2002-08-02 Thread lallous
PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Friday 02 August 2002 10:02 am, lallous wrote: I have this: //file1.php ? include('../libs/lib1.php'); ? now lib1.php: ? include ('helper.php'); ? If i run file1.php -includes lib1.php - fails to include he

[PHP] Re: question about references

2002-08-02 Thread lallous
yes, true! try this patch: if (strcmp($name-firstName, homer) == 0) { echo changing homer to margebr; $name-firstName = marge; $names[key($names)]-firstName = marge; good luck, Elias Jesse Vitrone [EMAIL PROTECTED] wrote in message

[PHP] isset($var) !empty($var) same time!

2002-08-02 Thread lallous
I have wrote this function: function issne($var) { return isset($var) !empty($var) ? true : false; } which can be called as: if (issne($mightbeundefinedvariable)) echo using this variable; is there is any builtin function that does that? (one function call). //Elias -- PHP General

Re: [PHP] isset($var) !empty($var) same time!

2002-08-03 Thread lallous
PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Fri, Aug 02, 2002 at 04:48:17PM +0200, lallous wrote: function issne($var) { return isset($var) !empty($var) ? true : false; } is there is any builtin function that does that? (one function call). Ye

[PHP] Re: Protect PHP coding

2002-08-03 Thread lallous
any windows version of this product? Manuel Lemos [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, On 08/02/2002 11:06 AM, Lallous wrote: So... Is this equivalent to Zend Encoder? Not exactly, but in some aspects it is/will be bet

Re: [PHP] isset($var) !empty($var) same time!

2002-08-03 Thread lallous
ing(2047), but i have never got any errors when just use empty() to determine whether a variable is set. If the variable is: 0, null, not set or an empty string. Then the empty() will return true. It's unnecessary to call isset() first. - Original Message - From: lallous Sent: 2002Äê8ÔÂ3

[PHP] Re: Checking Session Vars in Functions

2002-08-09 Thread lallous
try to check if a session is session or not via: session_is_registered() Elias Monty [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have PHP 4.2.2 with register_globals=off. It seems like session vars stored in $_SESSION[] aren't visible to functions.

[PHP] Re: Passing Array from one form to another form

2002-08-09 Thread lallous
this can be done through many ways: 1. serialization: serialize() the array and then send it as a string, deserialize it back in form2 2. join the arrays with a seperator and send as one string, and split it back in form2 3. use hidden fields with same name whose name is similar too:

[PHP] Re: Pictures and sound in MySQL and access via PHP

2002-08-10 Thread lallous
Personally I wouldn't store BIG files (like .mp3) into the database. If you insist checkout the mysql LOAD_FILE() Elias Danny [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi, I already posted this message but the time on my computer was wrong (26/07 so i

[PHP] Re: Loading Extension...

2002-08-12 Thread lallous
;extension=php_pdf.dll you have to uncomment that line above inside php.ini Elias Brian McGarvie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... OK Help I always seem to have trouble installing extensions... what am I doing wrong? (trying to get PDFLib

[PHP] Re: add options to select in ather page

2002-08-12 Thread lallous
oh well, it is done via javascript: script existingSelectBox[existingSelectBox.length] = new Option(display text, item value, false); /script replace the display text , item value from the popup's selected field value/text good luck, Wakan [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] CURL's different Options values and their format

2002-08-12 Thread lallous
As you can see that every Option (parameter) when calling curl_Setopt requires a different mixed value format. where can i find a full description of how to use each of curl's options ? I mainly want to login to a page via curl have curl maintain the cookies post some fields while logged in

Re: [PHP] progress bar

2002-08-12 Thread lallous
I agree with the flush() solution. In addition, output a javascript code to update the display in the browser... for example: scriptdocumeny.theform.progressPercent.value++/script Elias Tom Kohnen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi! Well i

[PHP] Re: A kind of array (hashtable)

2002-08-13 Thread lallous
Yes, PHP support indexing by strings and not only numbers/indexes. $myarray['elias'] = 'PHP rulez!'; echo $myarray['elias']; Christian Ista [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, In some language (like Java, C#, ...) you can find a hashtable.

[PHP] Re: parse URL good syntaxe please

2002-08-13 Thread lallous
you can use isset() better grab a PHP starter document or tutorial. Elias Christian Ista [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, Could you tell me why on PHP 4.2.2 this code work ?php switch ($_GET['fuseaction']) { case 0:

[PHP] Re: Troubles with Classes

2002-08-14 Thread lallous
try to put any code inside the new class' constructor part, - move the this code: $DBQuery = new DBQueries; --- this is line 134 $DBQuery-attrib[type] = select; $DBQuery-attrib[query] = SELECT ID_Secpage, PageType, into

[PHP] Re: fopen and sort by date modified

2002-08-14 Thread lallous
checkout: opendir() readdir() fstat() closedir() Elias Electroteque [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi there i was wondering how i could fopen a directory and then sort the files by date modified is there a way ? -- PHP General Mailing

[PHP] help with making appropriate indexes.

2002-08-14 Thread lallous
give this query: SELECT table_routing.id AS routeid, table_pricing.units AS price, table_routing.providerAS providerid, table_country.nameAS countryname, table_country.id AS

[PHP] Re: Destroy session variable when IE close

2002-08-14 Thread lallous
Afaik, the session will die automatically when IE gets closed. Or at least the cookie that links to that session. Elias Christian Ista [EMAIL PROTECTED] wrote in message 000101c24384$442ab9b0$c000a8c0@p3portable">news:000101c24384$442ab9b0$c000a8c0@p3portable... Hello, Is it possible to set

[PHP] Re: [Class] Behaviour global variables

2002-08-14 Thread lallous
hmmmwhat are you missing? globals $a and $b are not defined! try to set error reporting to E_ALL and try running your code again. Elias Tim Stoop [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi there, I'm forgetting something, but I can't seem to get

[PHP] Re: i some more help on the whole ereg thingy please

2002-08-16 Thread lallous
preg_match('!div class=Section1[^]+(.*)/div!Uis',$str,$regs[1]); $everything_between_divs = $regs[1]; when calling preg_match just pass $regs as param and not $regs[1] Elias [EMAIL PROTECTED] wrote in message 000101c244c9$08401d50$86a96518@jumpy">news:000101c244c9$08401d50$86a96518@jumpy...

[PHP] Re: Getting PHP to submit a form to google

2002-08-16 Thread lallous
by simple ways, you can do that: $query = urlencode(your query string) $result_string = join('', file(http://www.google.com/search?q=$query)); Elias Henry [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all I would like to be able to get the result of a

[PHP] Re: How retrieve database data from email?

2002-08-16 Thread lallous
How and where can I add an alias and associate PHP with that alias? Elias Bogdan Stancescu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You can set up php to run from console if it doesn't already, and add an alias to your mail server (stocks) which would

[PHP] Re: How do I customize the User-Agent when opening a remote file?

2002-08-16 Thread lallous
one of the solutions is not using fopen() instead use another class that is able to post to pages and retrieve them. check phpclasses.org Dallas Thunder [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... How do I customize the User-Agent when using fopen() or

Re: [PHP] help with making appropriate indexes.

2002-08-16 Thread lallous
tatement, whether where or join. Since you are working with tables, you can save yourself a lot of typing by dropping the table_ from the table names. After all, that's what they are. (You can do this unless you've gone too far with your system.) Miles Thompson At 02:15 PM 8/14/2002 +0200,

[PHP] tricky preg_replace and how to escape the \{occurencenumber}

2002-08-16 Thread lallous
? $fn = 'test.gif'; echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn); ? This script will output 'testa.gif' now how can i make it produce 'test1.gif' ? if i replace the: '\1a\2' with '\11\2' it will understand to replace with occurence number 11 ! How can i escape the 2nd '1' so it is

Re: [PHP] tricky preg_replace and how to escape the \{occurencenumber}

2002-08-16 Thread lallous
riday 16 August 2002 19:49, lallous wrote: ? $fn = 'test.gif'; echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn); ? This script will output 'testa.gif' now how can i make it produce 'test1.gif' ? if i replace the: '\1a\2' with '\11\2' it will understand to replace with o

[PHP] Re: tricky preg_replace and how to escape the \{occurencenumber}

2002-08-16 Thread lallous
_replace('/(\..+?)/', '1$1', $fn); Lallous wrote: ? $fn = 'test.gif'; echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn); ? This script will output 'testa.gif' now how can i make it produce 'test1.gif' ? if i replace the: '\1a\2' with '\11\2' it will understand to

[PHP] Re: Array query - finding the key for a value

2002-08-16 Thread lallous
can do this: $array = array('apple', 'pear', 'orange', 'apricot'); $array = array_flip($array); $keyword = 'orange'; echo found '$orange' @ index: . $array[$keyword]; Don't use this method though! It makes your program slow! Elias Tim Fountain [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] Continue processing after redirect?

2002-08-17 Thread lallous
Hello Rasmus, Now that the topic has been brought, How much long will the script keep running after the redirection request has been made? Doesn't that behaviour depend from browser to browser ? Thanks, Elias Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: ICQ interface?

2002-08-19 Thread lallous
I feel like the request being sent is erroneous. it was: fputs($fp,GET/scripts/online.dll?icq=$uinimg=5HTTP/1.0\n\n); It should be: fputs($fp,GET /scripts/online.dll?icq=$uinimg=5 HTTP/1.0\n\n); And beside that it seems it is an outdated URL Elias Justin French [EMAIL

[PHP] Re: cURL and POST

2002-08-20 Thread lallous
Try to post it via other than CURL, http://Sloppycode.net and search for clsHtmlSource.php Good luck, Elias Samantha Savvakis [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... HI, I'm using the cURL binary to perform a HTTP POST to a web page. I am sending XML

[PHP] Re: Replicate string or something similar

2002-08-20 Thread lallous
$str = str_pad('', 254, 'A'); Saci [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In ASP I use the expression myvar = string(254,A) to have a var filled with 254 characters 'A' What is the similar one in PHP? -- PHP General Mailing List

[PHP] Re: cURL and POST

2002-08-21 Thread lallous
even more, if you want to use curl... I remember that curl can take post data from an input file, so dump the $strXML to a temp file then supply that file to curl. good luck, Samantha Savvakis [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... HI, I'm using the

[PHP] Re: changing the include path

2002-08-30 Thread lallous
refer to: string ini_set ( string varname, string newvalue) Henry [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello All, Is it possible to change the include path when a script is runing without having to change the php.ini file? TIA Henry --

[PHP] Re: why is html code written like this? hr /

2002-09-02 Thread lallous
hr tag does not need a closing tag, therefore you don't write /hr. Now TAG NAME / tags are used to make the document compatible with XHTML, XML ... Victor [EMAIL PROTECTED] wrote in message 01c25272$357e6360$a3a96518@jumpy">news:01c25272$357e6360$a3a96518@jumpy... When I learned html

[PHP] Re: how do I send information to a php page from a menu list

2002-09-02 Thread lallous
Hello Ivan, select name=selcategoryid value=0 Don't set a value for that tag! echo option name=\selcategoryid\ value=\$faqcatsid\$faqcats/option; no need to name the option tag too, setting the value will be enough. when you submit your form, faqbycat.php will receive

[PHP] Re: Carriage Returns in Text Fields

2002-09-03 Thread lallous
How and where are you spitting out the text? If to HTML output, the use the nl2br(). or spit between pre tags. Elias Royw [EMAIL PROTECTED] wrote in message 00a301c25336$9815cc60$[EMAIL PROTECTED]">news:00a301c25336$9815cc60$[EMAIL PROTECTED]... I have a script which takes a memo field and

[PHP] Re: Pass array in HTTP_POST_VARS question

2002-09-04 Thread lallous
you can also join() the elements and pass as a single string, then explode() the elements back again. Elias Paul Maine [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is it possible to pass an array in a form post? If so, how do I reference the array on the next

[PHP] Re: script mysql date picker

2002-09-04 Thread lallous
This script is not mine, but I modified it so that it can work with any form field... take a look at the sources: http://lgwm.org/ozone/calcall.htm Good luck. Adi [EMAIL PROTECTED] wrote in message 001701c253f3$5ce58820$9600a8c0@adi">news:001701c253f3$5ce58820$9600a8c0@adi... Hi, There are

[PHP] Re: Remote file download and https

2002-09-04 Thread lallous
Do you have SSL library installed? check that PHPINFO() i guess. You can also try to run curl() (if they have SSL support). Otherwise, It will be hard to implement SSL from pure PHP sockets functions. Elias Radu Manole [EMAIL PROTECTED] wrote in message 001401c25404$a52baae0$[EMAIL

[PHP] Re: Javascript ?

2002-09-05 Thread lallous
try www.ozoneasylum.com Elias Christopher J. Crane [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Does anyone know of a Javascript forum like this one that I can post a question to? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Array Javascript

2002-09-06 Thread lallous
if you have an array in javascript: array1 = [1,2,3,4,5,6,7,8,'test']; etc... you can join it in JavaScript to make it a one string as: array1 = array1.join('|'); then split in PHP to make it back an array: ? $array1 = explode('|', $array1); ? good luck, Kale [EMAIL PROTECTED] wrote in

[PHP] Re: Source code

2002-09-06 Thread lallous
showsource.php: html body span style='border:dashed 2px red' ? $mem = join('', file('THEFILE.HTM')); $mem = htmlspecialchars($mem); echo $mem; ? /span Good luck, Roman Duriancik [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... How I show in IE source code of

Re: [PHP] Source code

2002-09-06 Thread lallous
I think it is also good to fetch $mem as: $fp = fopen('index.htm', 'r'); $mem = fread($fp, filesize('index.htm')); fclose($fp); that will keep index.htm formatted as is. Adrian Murphy [EMAIL PROTECTED] wrote in message

[PHP] Re: about whitespace

2002-09-06 Thread lallous
str_replace() Meltem Demirkus [EMAIL PROTECTED] wrote in message 001201c255a4$6253ece0$5583@hiborya">news:001201c255a4$6253ece0$5583@hiborya... Hi, is there any function which removes white spaces inse a string? thanks -- PHP General Mailing List (http://www.php.net/) To

[PHP] gmdate()

2002-09-06 Thread lallous
Isn't the gmdate() supposed to return the same value when run from two different timezones? I run it on GMT+2 system and EDT system, and I get 1 hour difference, please advise. Elias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Html in a string

2002-09-06 Thread lallous
$mem = ' !-- start HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE HTML CODES HERE // end -- '; if (preg_match('/!--.+?--/is', $mem, $result)) { var_dump($result); } good luck, Bård tommy nilsen [EMAIL PROTECTED] wrote in message

Re: [PHP] gmdate()

2002-09-06 Thread lallous
orrectly - it needs to know what time zone it is in and if the BIOS time is GMT or local. lallous wrote: Isn't the gmdate() supposed to return the same value when run from two different timezones? I run it on GMT+2 system and EDT system, and I get 1 hour difference, please advise.

Re: [PHP] gmdate()

2002-09-07 Thread lallous
Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] t]On Behalf Of lallous Sent: Friday, September 06, 2002 8:55 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] gmdate() I don't own the server, and the server is probably set up correctly as it is a web hosting server. any

[PHP] Re: Generating CSV files on the fly and getting the browser to download

2002-09-10 Thread lallous
Try this: ?php $fileextension=csv; $filename=report; $fnsave = $filename.$fileextension; header(Content-disposition: filename=$fnsave); header(Content-type: application/force-download); // generate your CSV content here and print them to the browser via ECHO echo 'a,b,c,d,1';

[PHP] Re: Dependent Dropdown Boxes

2002-09-11 Thread lallous
Hi, Try to learn many things from the test code i created below: http://lgwm.org/ozone/dynatable.htm Good luck, Elias Roger Lewis [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The Situation: I'm trying to create a pair of dynamic dropdown boxes where the

[PHP] Re: Help, Parse error caused by quotes andapostrophes in function, How do I fix this?

2002-09-11 Thread lallous
try this: exec('convert picture.jpg -font Arial-Bold -pointsize 20 -fill red -gravity southeast -draw text 10,10 \'my text to add to picture\' text-overlay.jpg'); when you start with a single quote - you have to end with a single quote while escaping (using \) all its occurences in the used

[PHP] Re: sessions nightmare

2002-09-11 Thread lallous
I use JavaScript cookie to accomplish what you're doing in your case: script function setCookie(name, value, expires, path, domain, secure) { var curCookie = name + = + escape(value) + ((expires) ? ; expires= + expires.toGMTString() : ) + ((path) ? ; path= + path : ) +

[PHP] Re: what is wrong?

2002-09-12 Thread lallous
try this: if (empty(trim($_POST[new_password1]))) { echo 'Empty!!!'; } Meltem Demirkus [EMAIL PROTECTED] wrote in message 001701c25a2c$4758d4a0$5583@hiborya">news:001701c25a2c$4758d4a0$5583@hiborya... Hi, I want to understand what is wrong with this code?I am trying to understand

[PHP] Re: Cry for help

2002-09-12 Thread lallous
Hello Chad, I started PHP from a book. I believe a book is a good way to start as it organized and well written to make sure you're progressing chapter by chapter. After that, I read articles and tutorials as I needed to expand my skills. just my 2cents, Elias Chad Winger [EMAIL PROTECTED]

[PHP] Re: curl_init() ??

2002-09-12 Thread lallous
Hello, 1)probably you don't have CURL extension enabled in your php.ini file? try to open php.ini and search for CURL. 2)to achieve a POST via PHP code, look at www.phpclasses.org Elias, Geoff Lists [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I am

[PHP] Re: what is wrong?

2002-09-12 Thread lallous
probably have to use $_POST[new_password1] Besides that, I would use the form of Lallous: if ( empty( trim( $_POST[ new_password1 ] ) echo Empty!; HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Random numbers in a cronned script?

2002-09-13 Thread lallous
Yes, you're right about that point since the seed in most cases is computed from system time = increasing probability of having same number @ the same request time... you can change the seed with the time() too (not all days are the same). hope to hear others' opinions too. Elias Leif K-Brooks

[PHP] Re: Read/Write Pieces of a Binary File

2002-09-13 Thread lallous
what have you already tried? can you show some code? Elias Bob Bowker [EMAIL PROTECTED] wrote in message 5.1.0.14.2.20020912091817.01ef3c50@localhost">news:5.1.0.14.2.20020912091817.01ef3c50@localhost... I have a large binary file (50+ megs) ... I want to read the first 1k bytes, make

  1   2   >