Re: [PHP] join() , can do that fast?

2002-10-07 Thread lallous
Thanks John, sorry I didn't see the new join()'s parameters you provided, I only noticed the new '%s' . Elias, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] join() , can do that fast?

2002-10-07 Thread lallous
:002101c26de2$982bf7d0$7c02a8c0@coconut... > > > > -Original Message- > > From: lallous [mailto:[EMAIL PROTECTED]] > > Sent: Monday, October 07, 2002 6:09 AM > > To: [EMAIL PROTECTED] > > Subject: [PHP] join() , can do that fast? > > > >

[PHP] join() , can do that fast?

2002-10-07 Thread lallous
Hello, I have: $x = array('str1','str2','str3'); I want to convert that array to a valid javascript syntax as: var x = ['str1','str2','str3'] I can do this in PHP: echo sprintf("x=[%s]", join(',', $x)); but that would produce: x = [str1, str2, str3] is there is a fast way (other than doing

[PHP] Re: Need to move all MySQL tables to another server

2002-10-04 Thread lallous
With the mysqldump utility (comes with mysql) you can backup/restore any database. I don't know if you can tell it to dump all databases and their tables too. If you've got root access, you can simply copy the 'data' (i.e: C:\mysql\data) from a server to another. good luck, Elias "Peter Janett"

[PHP] Re: Installing PHP

2002-10-04 Thread lallous
did you try www.phpbuilder.com for how to install PHP /win ? Elias, "Dan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am trying to create a message board. I setup a windows 2000 server and > installed IIS. In order to setup this messageboard i need to hav

Re: [PHP] Unix passwd file

2002-10-04 Thread lallous
Peter, I think he's stuck with the parsing part? you can file() the /etc/passwd file then explode() it and add the username,passhash parts and/or more values into the mysql table. Elias, "Peter Janett" <[EMAIL PROTECTED]> wrote in message 026a01c26b94$7b45d0a0$55285742@peters">news:026a01c26b94

Re: [PHP] timeout

2002-10-04 Thread lallous
ps sending something every now and then. If it just sits there without > outputting anything, then Apache will kill it off eventually. > > On Fri, 4 Oct 2002, lallous wrote: > > > Hello, > > > > > > if i set set_time_limit(0) will my script still timeout

[PHP] timeout

2002-10-04 Thread lallous
Hello, if i set set_time_limit(0) will my script still timeout and see in the browser: Page timed out and cannot be displayed? is there is anything I can do to prevent a script that takes an hour to finish processing from being killed when timeout occurs? Thanks, Elias -- PHP General Maili

[PHP] after mysqlfront?

2002-10-04 Thread lallous
Hello MySqlfront.de's mysqlfront program has been discontinued any equivalent alternative? thanks, Elias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to send POST info without a form?

2002-10-01 Thread lallous
try www.sloppycode.net * © Sloppycode.net All rights reserved. * @title Html Source class - api for getting/posting to websites * @author C.Small * @version 1.0 or phpclasses.org Elias, "Chris Nielsen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I hav

[PHP] Re: Finding out when a Web page has changed

2002-09-26 Thread lallous
I was about to tell you to use Last-Modified Header! ;) Well then...try to fetch the page's size and compare with last time, if changes then regrab the page. Elias, "Vikram Vaswani" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I need to write an

[PHP] Re: Example script : Employee schedule

2002-09-26 Thread lallous
look for an application called: TimeWebSheet Elias, "Faisal Abdullah" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi people. > Does anyone happen to know whether there is a sample script/application out > there which can tell me (and everyone else in the

[PHP] local resource variables

2002-09-26 Thread lallous
Hello, I was wondering if i do: function test() { $result = mysql_query("SELECT * FROM bigbigtable"); } after calling test() will $result be freed as if calling mysql_free_result()? Elias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP] Re: replacing mail()

2002-09-18 Thread lallous
EASILY rewriting PHP's mail() function? > > Cheers, > Liam > > > - Original Message - > From: "lallous" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, September 18, 2002 9:25 PM > Subject: [PHP] Re: replacing mai

[PHP] Re: replacing mail()

2002-09-18 Thread lallous
There is something you can set in php.ini afaik. search for 'sendmail' in that file. Elias, "Liam" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Yeah, mail() again... > > I want to disable the default mail command and replace it with my own. > I've written a function that talks

Re: [PHP] Re: Dependent Dropdown Boxes

2002-09-18 Thread lallous
and there are indeed many things to learn; > however, it's all in js. > I'm trying to have php write the js, but I don't know enough about arrays > and manipulating their elements. > > Roger > > -Original Message- > From: lallous [mailto:[EMAIL PROTE

[PHP] Re: class Problem

2002-09-17 Thread lallous
Hi, when you want to access class member variables prefix them with $this-> , otherwise they will be treated as local vars. hope that helps. Elias "David Eggler" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I create a Instance fo the Class MenueItem in M

Re: [PHP] can you get the name of an object from within it's own class?

2002-09-17 Thread lallous
even more... what if I create $c1 as a global instance and then $c1 as a local instance (inside a function) ? won't c1.log overwrite c1.log ? Elias "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It's not possible, imagine > > $firstname = ne

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

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

[PHP] Re: what is wrong?

2002-09-12 Thread lallous
t; > warning message.. > > > > if($_POST[new_password1] == " ") > > > > echo "empty input"; > > And as final addition, you probably have to use > > $_POST["new_password1"] > > Besides that, I would use the form of Lal

[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: 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: 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 understan

[PHP] Re: sessions nightmare

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

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

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

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

2002-09-10 Thread lallous
Try this: Elias "Henry" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi All, > > I suspect this is a commonly asked question but; how do I generate a CSV > files on the fly and get the browser to download it. > > Do I actually need to generate a file or c

Re: [PHP] gmdate()

2002-09-06 Thread lallous
e return values from these > two servers. > > -Naintara > > -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() > >

Re: [PHP] gmdate()

2002-09-06 Thread lallous
t; The server needs to be set up correctly - 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 ru

[PHP] Re: Html in a string

2002-09-06 Thread lallous
$mem = ' '; if (preg_match('//is', $mem, $result)) { var_dump($result); } good luck, "Bård tommy nilsen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Hello > > > I have a string with the html source, but want to fetch only some > Of the code ... >

[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: 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.

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 001b01c2559f$aa8f3c30$1a8f43d9@ADE2">news:001b01c2559f$aa8f3c30$1a8f43d9

[PHP] Re: Source code

2002-09-06 Thread lallous
showsource.php: Good luck, "Roman Duriancik" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How I show in IE source code of html page with php ? > > > roman > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[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: good luck, "Kale" <[EMAIL PROTECTED]> wrote in message 002c01c254cc$fe8eace0$7800a8c

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

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

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

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

[PHP] Re: mysql string comparison not working

2002-09-03 Thread lallous
try to: var_dump($row[24]) and see what happens? it might be that the "Y" is stored as lowercase in MySql's table. Elias "David Banning" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > if I set test = "Y"; > then > > if ($test == "Y") {echo ("it matches");} > >

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

2002-09-02 Thread lallous
Hello Ivan, Don't set a value for that tag! echo "$faqcats"; no need to "name" the tag too, setting the value will be enough. when you submit your form, faqbycat.php will receive $selcategoryid as the user chose from that select list. Elias, "Ivan Carey" <[EMAIL PROTECTED]>

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

2002-09-02 Thread lallous
tag does not need a closing tag, therefore you don't write . Now 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 it was alway

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

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

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

[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=$uin&img=5HTTP/1.0\n\n"); It should be: fputs($fp,"GET /scripts/online.dll?icq=$uin&img=5 HTTP/1.0\n\n"); And beside that it seems it is an outdated URL Elias "Justin French" <[EMA

Re: [PHP] Continue processing after redirect?

2002-08-16 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:[EM

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

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

2002-08-16 Thread lallous
r all extension, > > try this: > echo preg_replace('/(\..+?)/', '1$1', $fn); > > Lallous wrote: > > > $fn = 'test.gif'; > > > > echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn); > > > > ?> > > &g

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

2002-08-16 Thread lallous
L PROTECTED]">news:[EMAIL PROTECTED]... > On Friday 16 August 2002 19:49, lallous wrote: > > > $fn = 'test.gif'; > > > > echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn); > > > > ?> > > > > This script will

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

2002-08-16 Thread lallous
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 considered as a string an not another number. Elias -- PHP General Mailing

Re: [PHP] help with making appropriate indexes.

2002-08-16 Thread lallous
ve gone too far with your system.) > > Miles Thompson > > At 02:15 PM 8/14/2002 +0200, lallous wrote: > >give this query: > > > > SELECT > > table_routing.id AS routeid, > > table_pricing.units AS pri

[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

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

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

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

2002-08-16 Thread lallous
preg_match('!]+>(.*)!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... > Hi, I hope you can hel

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

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

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

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

[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, P

[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 > >switch ($_GET['fuseaction']) > { > case 0: >

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

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: documeny.theform.progressPercent.value++ Elias "Tom Kohnen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi! > Well i suppose flush

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

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

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

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

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

2002-08-09 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

[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: hiddenfield[

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

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

2002-08-03 Thread lallous
_ALL) oR error_reporting(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:

[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? > > No

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

2002-08-02 Thread lallous
tions" <[EMAIL 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; > >

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

[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 marge"; > $name->firstName = "marge"; $names[key($names)]->firstName = "marge"; good luck, Elias "Jesse Vitrone" <[EMAIL PROTECTED]> wrot

Re: [PHP] include hassle

2002-08-02 Thread lallous
D. Budiardja" <[EMAIL 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 ('hel

[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: ht

[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/PE

[PHP] include hassle

2002-08-02 Thread lallous
I have this: //file1.php now lib1.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 code cannot make use of Apache's help. (like setting the include path

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

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 f

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

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

[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

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

[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] Re: stripping quotes within an image tag

2002-07-31 Thread lallous
that won't really work if he used the ALT attribute too: "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 quotes from an image tag ? > > i need > > >

[PHP] Re: stripping quotes within an image tag

2002-07-31 Thread lallous
]*>)/i', '\1\2\3', ''); ?> 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 > > > to look like > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[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] 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 M

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

[PHP] Re: SMS message ?

2002-07-30 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

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

[PHP] Re: MYSQL natsort() ?

2002-07-29 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

[PHP] Re: Resetting ID

2002-07-29 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! >

  1   2   >