[PHP] Re: catching parse error.

2001-11-20 Thread _lallous
hmm...never tried it but maybe this works: try to include the class via eval() like: @eval("include ('$filetoinclude');"); and use the control operators w/ them? "Aaron" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ok what I want to do if possible is >

[PHP] Re: POST files with PHP

2001-11-20 Thread _lallous
Never tried that, But i'm afraid that by reading a binary file like: join('', file('binfile')) will brake the file! try using fopen('binfile', 'rb') and fread() and filesize() good luck. "Daniel Reichenbach" <[EMAIL PROTECTED]> wrote in message 01c17111$02617a50$796010ac@danielmob">news:000

[PHP] Re: Newbie Date Question

2001-11-19 Thread _lallous
try using the date() with the field content. string date (string format [, int timestamp]) "David Mitchell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hey Guys and Girls, > > I'm selecting a datetime value from SQL Server. In the database the data > looks

[PHP] Re: Additional e-mail address in PHP script...

2001-11-19 Thread _lallous
haven't you tried to add a CC to the header? $mailheadrs .="Cc: [EMAIL PROTECTED]\n"; "Anthony Ritter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there any way to add an *additional* e-mail address - a cc - besides the > one that is already in the $to v

[PHP] Re: Valid Chars Function

2001-11-19 Thread _lallous
you can use regluar expressions, or single character scanning via for loop, 1)RegExp: if (ereg('[^a-z0-9]', $name)) print 'error!'; 2)For loop for ($i=0;$i wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Anyone know a good PHP function or script to scan a string for Valid > Chara

[PHP] Re: Info on another page

2001-11-16 Thread _lallous
you can fopen() remote files! $fp = fopen("www.site.com/infodir/exchange.txt","r"); $rates = fread($fp, ...); fclose($fp); "Mindhunter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Lets say I want to get the current exchangerate from anot

[PHP] Re: Need help with reading values from a form

2001-11-16 Thread _lallous
name the checkbox as: ' name='selectedplayers'> where ID is used to identify this current field! then read in the posted page as: "P. Roescher" <[EMAIL PROTECTED]> wrote in message 01c16eab$65226360$015a@cc48693a">news:01c16eab$65226360$015a@cc48693a... > The script I have: >

[PHP] Re: Parse POST-Data myself

2001-11-16 Thread _lallous
take the query string as is: $QUERY_STRING in this case: $qstring = "myfield1=&myfield2=aaaccc&myfield1="; and then pass it on as is again to whoever you want! or you can parse it like: $qstrings = split('&', $qstring); then split each pair: $pairN = split('=', $qstrings[$i]); et

[PHP] Re: problem with xgettext and php with javascript file

2001-11-16 Thread _lallous
this code seem incomplete: > window.opener.document.celkem.cena_celkem.value = " blábol"); ?> > } here's a fix: function zmen_cenu() { window.opener.document.celkem.cena_celkem.value = ""; } "Pavel NováK" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello

[PHP] Copying into another table

2001-11-16 Thread _lallous
Hello! Is there is anyway to copy from a table to another but by applying a filter? Example: SELECT * FROM table1 WHERE (condition) INSERT INTO table2 (the results of the last query) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

[PHP] Re: Filling a text field from a different window

2001-11-16 Thread _lallous
You can do that only if you've got a reference to the window you want to change its properties. the reference is obtained like this: var w = window.open('file.htm'); w.document.theform.theControl.theProperty = someValue here; "Carlo loiudice" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTEC

Re: [PHP] Re: Serious problem with Cookies..

2001-11-15 Thread _lallous
Yes, I guess you can't make it foreever but you can give it a higher expiry date. "Phpgalaxy.Com" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > well yeah, thats always true..but this's at least as good as it gets =) ya suppose > there's any limit on how many

[PHP] Re: Serious problem with Cookies..

2001-11-15 Thread _lallous
you must set the cookie's expiry time! of-the manual: setcookie ("TestCookie", "Test Value"); setcookie ("TestCookie", $value,time()+3600); /* expire in 1 hour */ setcookie ("TestCookie", $value,time()+3600, "/~rasmus/", ".utoronto.ca", 1); "Phpgalaxy.Com" <[EMAIL PROTECTED]> wrote in message [

[PHP] Re: I suck at regular expressions!

2001-11-15 Thread _lallous
try that! New Document '; if (preg_match('/(.+?)<\/title>/is', $mem, $matches)) { echo "title is:$matches[1]"; } ?> "Richard S. Crawford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am trying to get the title of an html file... you know, t

[PHP] Re: Time out for file()?

2001-11-14 Thread _lallous
from the manual this will grab a file too using the socket functions, the socket_set_timeout()'s first param is expected to be a socket handle. "Jean-Arthur Silve" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi ! I use the file function for accessing to pag

[PHP] Re: Function Call Line Number

2001-11-13 Thread _lallous
I guess that is not possible with PHP yet. "Jason G." <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > Does anyone know of a way, that from within a function, you can determine > what line number and file the function was called on? > > I did try: > f

[PHP] Re: matches problem ("preg_match")

2001-11-13 Thread _lallous
viele Grüße, lallous! "Ewald Schoeller" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hello > we want to save every word of a text in an array field. > we want to solve the problem without "split". > > Here's our code: > > $str="eins zwei drei vier fünf sech

[PHP] Re: Any easy way of finding "yesterday"...?

2001-11-13 Thread _lallous
strtotime('yesterday') should work! "Harry Lau" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It is easy to use the function getDate() to obtain the date of today. > But instead of writing plenty of conditions, > is there any easy way to get the date of yeste

Re: [PHP] Re: mail() w/ mailing lists

2001-11-12 Thread _lallous
sending one by one will take ages no? "Phpgalaxy.Com" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I just finished making a bulk emailer script with the mail() function. I would probably recommend doing a loop, > sending one email at a time. Seems that way y

[PHP] Re: Unix timestamp ?

2001-11-12 Thread _lallous
timestamp is an integer. you can convert it to hex string via sprintf("%x", timestamp) and store it. so if timestamp is a 32bit integer than it's hexadecimal representation will take 8 characters. "De Necker Henri" <[EMAIL PROTECTED]> wrote in message 3A8ED7A62794D311AA7700508B6164EC08DCA384@SCPT

[PHP] mail() w/ mailing lists

2001-11-11 Thread _lallous
Hello, Is is advisable that I mail lots of users from a database via one call to mail() ? Or else, how do you think I should split the list and send my mails? Is there is a way to tell if the mail was returned because the email address was invalid? Thanks. -- PHP General Mailing List (htt

[PHP] Re: Stripping IMG tags

2001-11-11 Thread _lallous
$string = preg_replace('/]*>/si', '', $string); "Richard S. Crawford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... All I need to do is strip out IMG tags from strings; I don't want to strip out all of the HTML, just the IMG tags, so the strip_tags() function won't be adequate.

[PHP] Re: DB wrapper

2001-10-30 Thread _lallous
try http://phpclasses.upperdesign.com "Alberto" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Any1 knows about a good class for DB abstraction? I need some scripts to > work with mysql/pgsql. > > Thnx > > -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: PHP changing my JavaScript??

2001-10-29 Thread _lallous
it happened to me when i enter the page for the very first time and I use session_start() I suggest to make the page reload itself w/ a parameter so that the first pass to the site will screw the javascript and then automatically 2nd pass (which is self called) is okay. "Moloko" <[EMAIL PROTECT

[PHP] Re: POSTing values to file

2001-10-28 Thread _lallous
see http://www.php.net/fopen "Michiel Van Heusden" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > anybody help me please... > > how can I open a file from php (something like require, but without closing > the php-file) > and then send some string to that file

[PHP] Re: Array

2001-10-28 Thread _lallous
> $values[$i]['id'] = $co_id; you didn't initialize the $i did you? should put $i =0; before the while loop. > echo "$id" ; # Doesnt wanna work what is $id ? i don't see it defined in your code, i see $cid instead. > list($a,$b,$c,$d) = $values[$i]; sure won't work,

[PHP] Re: Random

2001-10-28 Thread _lallous
$ceiling is too big. try to do this and see: echo getrandmax(); you might get 32767 as an output! therefore, $ceiling must be <= getrandmax(); try to scale down your floor and ceiling, ie: $max = $ceiling - $floor; $random = rand(0, $max) + $floor; "Andrew Duck" <[EMAIL PROTECTED]> wrote in me

[PHP] Re: php.ini executable

2001-10-28 Thread _lallous
go for it...even if someone did a visual tool for that. my question goes, has anyone made a *nix program to configure php.ini ? ;) before i "Jtjohnston" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Has anyone made a Windows executable to configure the

[PHP] Re: Array's

2001-10-28 Thread _lallous
> "$b"=>array("$surname,$init"), // does it work like it does work like that, but you're creating an array of one item which is a string holding to values comma seperated. you can do this too: > "$b"=>array($surname,$init), // does it work like w/o

[PHP] Re: tail a file

2001-10-26 Thread _lallous
to tail a file use the "+" flag when opening that log file, and write a simple PHP script that spits that file to you, ie: showlog.php "Yamin Prabudy" <[EMAIL PROTECTED]> wrote in message 003901c15de4$82f0cb70$fe2796ca@dusak">news:003901c15de4$82f0cb70$fe2796ca@dusak... > Hi there I need help her

Re: [PHP] String breaking up

2001-10-26 Thread _lallous
$string = "hey there!"; $out = ''; for ($i=0; $i if output is to browser } echo $out; "Richard Baskett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Strings are arrays, so you can print out a string by doing something like > this: > > $string = "hey ther

[PHP] Re: argument variable gets lost in function

2001-10-25 Thread _lallous
hmm...weird! is that the code? if you show us your real code...maybe you're missing a small detail... "Spunk S. Spunk III" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm assigning a variable a value from an associative array. > $variable = $array["key"

[PHP] Re: intermediate pre-parsed or compiled PHP files possible?

2001-10-25 Thread _lallous
did you check www.zend.com and their caching/optimizing products? "Thomas" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello there, > I was wondering if there was any intermediate format I could compile my > PHP scripts to in order to gain speed. > > For e

[PHP] Re: regardnig receiving mails

2001-10-25 Thread _lallous
there are lots of classes on http://phpclasses.upperdesign.com just search there. "Nigam Chheda" <[EMAIL PROTECTED]> wrote in message 006e01c15d43$63351620$26a8a8c0@bravo">news:006e01c15d43$63351620$26a8a8c0@bravo... > > Hi > For sending mail php has a function mail() > But how to receive mails(i

[PHP] Re: how can I do this !!

2001-10-25 Thread _lallous
this should do! "Alawi" <[EMAIL PROTECTED]> wrote in message 008f01c15da2$ddf4fd30$d43f47d4@php">news:008f01c15da2$ddf4fd30$d43f47d4@php... i have txt file have this words -- bla bla bla [phpcode] [/phpcode] bla bla bla --- now I want to convert the code that are between [ph

Re: [PHP] Re: Loading message

2001-10-25 Thread _lallous
bar or is the html (including graphics etc) just very big? > > Anyway, > > Hope this helps > Derek > > - Original Message - > From: "Daniel Alsén" <[EMAIL PROTECTED]> > To: "php" <[EMAIL PROTECTED]>; "_lallous" > <[E

[PHP] Re: Loading message

2001-10-25 Thread _lallous
the page won't ever showup unless the webserver finishes processing the PHP file, therefore the "Loading ..." will appear while the page is waiting for its component to finish loading (images, javascripts, flash files, ) therefore what you're asking for has a javascript solution: 1)make a w

Re: [PHP] talking directly w/ MySql

2001-10-25 Thread _lallous
SELECT 1+1 doesn't really need a connection... or any other statments that doesn't address a table or database, SELECT SUBSTRING('test', 1, 2); etc etc.. I guess it is not possible though... "Kodrik" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > how can i

[PHP] Re: I NEED HELP WITH PWS AND W98

2001-10-24 Thread _lallous
1)Install PHP w/ the installer or manually 2)In PWS add a new virtual directory and give it Script+Execute rights. 3)Create a simple script there (where the virtual directory points) and write just to see if everything is fine. you may want to try to ask in php.install group too. "Nicolas Llamo

Re: [PHP] OnUNload Scripts

2001-10-24 Thread _lallous
This can be done...but what if the user closes the whole browser? the frame won't work cause it will also be closed i guess! The popup window will assure that in all cases it will be poped up. "Kodrik" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > >You cou

[PHP] Re: running scripts onunload

2001-10-24 Thread _lallous
I'm afraid there is no way to do so! "Impex Holidays Maldives / Hasan" <[EMAIL PROTECTED]> wrote in message 0beb01c15bcb$f0becf50$c6c801ca@hasan">news:0beb01c15bcb$f0becf50$c6c801ca@hasan... > Hi everyone, > > I can use javascripts onunload to run PHP file with a new window. > Is there anyway i

[PHP] Re: Detect mySql Install

2001-10-24 Thread _lallous
$mysql_installed = function_exists('mysql_query'); as for the version, you can then do: $r = mysql_query("SELECT VERSION()"); $r = mysql_fetch_array($r); $ver = $r[0]; "Chris" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there a way to detect, using PHP,

[PHP] talking directly w/ MySql

2001-10-24 Thread _lallous
I think that the MySql's API allow to many queries to be executed w/o having an open connection, example: SELECT 1+1; how can i issue such statments w/o opening a connection? like SELECT NOW() .. whenever I first run mysql_query() it tries to connect w/ default connection settings. --

[PHP] Re: DATE FORMAT ISSUES

2001-10-22 Thread _lallous
maybe you have in your database a DATE field instead of DATETIME field? "Beeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have inserted the date into MySQL using now() in the query. However, when > I retrieve the using MySQL_Date_Format in the query th

[PHP] Re: Thick arc with PHP

2001-10-22 Thread _lallous
try this: ImageSetThickness() "Ville Mattila" <[EMAIL PROTECTED]> wrote in message 009801c15a31$e7f56140$0100a8c0@ville">news:009801c15a31$e7f56140$0100a8c0@ville... Hi there, How it would be possible to draw a "thich" arc with PHP & GD? You can see a picture here about thing I mean: http://ww

[PHP] Re: MessageBox in PHP?

2001-10-22 Thread _lallous
you can use JavaScript to do that... alert('your message goes here'); embed this in your HTML source code. it is not possible to do so in PHP since it is server side. "Silvia Mahiques" <[EMAIL PROTECTED]> wrote in message 005101c15aec$9ccac280$1a9cd29b@tscpc6">news:005101c15aec$9ccac280$1a9c

[PHP] Re: kindly help adding days on a date

2001-10-19 Thread _lallous
you can use it like that: see the mysql's date_add() usage: SELECT DATE_ADD(NOW(), INTERVAL 5 DAY) or 5 YEAR or n MONTH "Krushna Kumar R" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I have 2 fields on a table as shown below 1. period int

[PHP] Re: Adding zeros to date

2001-10-05 Thread _lallous
if you want to do as you're doing this will do: > if ($month < 10) { > $month = "0$month"; > if ($date < 10) { > $date = "0$date"; "Daniel alsén" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > is there a easier way to add zeros to date than the scri

Re: [PHP] ereg checking if its only numbers

2001-10-04 Thread _lallous
That's not regexps Rasmus! :) I always see you referring us the the manual! sometimes you refer to a function i never say in my life! ;) "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > http://php.net/is_numeric > > On Fri, 5 Oct 2001, Chris Ait

Re: [PHP] Downloading Images

2001-10-04 Thread _lallous
I suggest you call: readfile() instead of include() at the end of your script! "David Otton" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 4 Oct 2001 07:32:17 -0700 (PDT), you wrote: > > >I have added a download button to a web-site that > >enables us

[PHP] Re: How can I simulate the login process?

2001-10-04 Thread _lallous
eer a little time: http://chatmusic.com/volunteer.htm > - Original Message - > From: _lallous <[EMAIL PROTECTED]> > Newsgroups: php.general > To: <[EMAIL PROTECTED]> > Sent: Thursday, October 04, 2001 4:48 AM > Subject: How can I simulate the login process? >

[PHP] How can I simulate the login process?

2001-10-04 Thread _lallous
I want to write a script that simulates the login process and logs on and grabs some pages (that can only be viewed when logged in) and the logs out... how can i do that? consider the authentication system is done via session variables method... any ideas would help. -- PHP General Mailing L

[PHP] Re: passing object variable from page to page. Please disregard the previous!

2001-10-03 Thread _lallous
you can always pass objects if you serialize them in the first page and then unserialize them back in the 2nd page. check serialize() "Ming-Chieh Lee" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > > I have a question on how to pass object variable

Re: [PHP] word filter

2001-10-01 Thread _lallous
duced Maxim Maletsky www.PHPBeginner.com -Original Message- From: Maxim Maletsky (PHPBeginner.com) [mailto:[EMAIL PROTECTED]] Sent: lunedì 1 ottobre 2001 10.33 To: '_lallous'; [EMAIL PROTECTED] Cc: 'Kristjan Kanarik'; 'Richard Heyes' Subject: RE: [PHP] word filter T

[PHP] Re: Array Elements & While Loops

2001-10-01 Thread _lallous
> if ($flag = 1) { > die ("Email #$errorNo is not a valid e-mail should be: if ($flag == 1) // notice the double-equal signs "Tom Churm" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi, > > my problem is this: i'm using a while loop to check elements

[PHP] Re: one pattern, one string, multiple results

2001-09-26 Thread _lallous
use this modifier /ies instead of /ie "_lallous" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > try this! > I don't know how effective is preg_replace w/ huge memory contentsbut > this should work fine! > >

[PHP] Re: one pattern, one string, multiple results

2001-09-26 Thread _lallous
try this! I don't know how effective is preg_replace w/ huge memory contentsbut this should work fine! $mem = "an arc is an archer, arc but what about marc and darcy?"; $match = "arc"; $count = 0; preg_replace("/\b$match\b/ie", "\$count++;", $mem); echo $count; "Richard Baskett" <[

[PHP] Re: Receiving mySQL result from remote server?

2001-09-24 Thread _lallous
Yes you can. It depends if you have a user name and password and access to access abc.com's MySql server, remember you do this: see? try http://freesql.org (it is a free mysql database provider!;)) "Jeff Lewis" <[EMAIL PROTECTED]> wrote in message 010301c14508$864c8060$[EMAIL PROTECTED]">news:0

[PHP] Re: mysql_connect failes w/ variables and defines. why?

2001-09-24 Thread _lallous
Can you show us some code? "Dana Holt" <[EMAIL PROTECTED]> wrote in message 000501c143df$dcedbb20$6400a8c0@MORPHEUS">news:000501c143df$dcedbb20$6400a8c0@MORPHEUS... > Does anyone know why if I pass mysql_connect() or mysql_select_db() parms as > variables or defined constants the connection alway

[PHP] Re: form variables have CR/LF ?

2001-09-21 Thread _lallous
in worst cases read it after post via trim() "Patrick Sibenaler" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > Does anyone know what is going wrong, when all of a sudden, the > content of PHP global variables that are generated from a POSTED > form, hav

[PHP] Re: Grabbing

2001-09-21 Thread _lallous
I guess the ereg() will stop when i reads a new line character, therefore try to use the preg_match() with /is modifiers. preg_match("/$begin(.*?)$end", $search, $matches); "Daniel alsén" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > iam trying to gr

[PHP] Re: Generating variable names 'on the fly'

2001-09-21 Thread _lallous
you can always use eval to create a variable too! "Neil Freeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi there, > > How do I generate variable names 'on the fly'? I wish to have variable > names along the lines of $genre_category_1, $genre_category

[PHP] Re: importing a text file

2001-09-21 Thread _lallous
You want to parse the non blank lines out of the blank lines? "Dominica Anderson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a text file that is formatted as such > > Something - SomethingElse > <4 blank lines> > SomethingMore > <4 blank lines> > So

[PHP] Re: How to update a variable on a other frame.

2001-09-21 Thread _lallous
are we talking JavaScript wise? "Hvm" <[EMAIL PROTECTED]> wrote in message 001001c14270$8a563380$0601a8c0@Hans">news:001001c14270$8a563380$0601a8c0@Hans... Hi all, Is there a command to update a variable on a other frame generated by a php script. This is needed to show the number of records sel

[PHP] Re: parsing

2001-09-21 Thread _lallous
This should do, Motor Racings Strangest Races TIMBALLS, GEOFF Paperback http://owas.proxis.be/gate/jabba.coreii.g_p?bi=4&sp=DETAILS&mi=3575625 &si=19806267"> Sales start 30/09/2001 Proxis Price: 663 BEF http://owas.proxis.be/gate/jabba.coreii.g_p?bi=4&sp=DETAILS&mi=3575625 &si=1

[PHP] Re: excuting several sql statements in one time

2001-09-20 Thread _lallous
No you can't! I wrote a simple routine for the task! you might want to view it from: http://www.kameelah.org/eassoft/php_files/sql2php.php.txt just take the parse_sql_stream($all) which returns an array that have all the statments to be passed to mysql_query() this script is usefull when you

[PHP] Re: text editing (parsing)

2001-09-19 Thread _lallous
you can also use Regular Expressions, just post the text you want to parse (no matter how complex) and we will see how we can help you out. "Jonas K" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I need some help with parsing text. very simple. I have a text

[PHP] Re: Call a script without a return

2001-09-18 Thread _lallous
check lgwm.org goto reading comprehension section and then double-click or select any word on this page and see what happens! Yes it can be done what you're thinking of. "Alex Shi" <[EMAIL PROTECTED]> wrote in message 005d01c140b6$67c19550$0105050a@pony">news:005d01c140b6$67c19550$0105050a@pony.

[PHP] Re: INCREASING GAS PRICES

2001-09-18 Thread _lallous
Hehhere (Lebanon) the gas price rasied to $2 per 20 Litters already! <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > "Oil prices have jumped amid concerns that U.S. > retaliation for this week's terrorist attacks > could hurt supplies from the Middle East.

[PHP] Re: INCREASING GAS PRICES

2001-09-18 Thread _lallous
Hehhere and just now the gas price rasied to $2 per 20 Litter <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > "Oil prices have jumped amid concerns that U.S. > retaliation for this week's terrorist attacks > could hurt supplies from the Middle East. > > Bren

[PHP] Re: Get the beginning array number

2001-09-18 Thread _lallous
reset($array); list(, $value) = each($array); this will give you first value in $value "Brandon Orther" <[EMAIL PROTECTED]> wrote in message !~[EMAIL PROTECTED]">news:!~[EMAIL PROTECTED]... > Hello, > > I have an array sent to my script that starts at different numbers each > time. Here is an ex

[PHP] Re: May I ask sql question here??

2001-09-18 Thread _lallous
Man...you could have asked already and you might have got an answer from others and "NO" from others... I might answer you if your question is in the range of my knowledge. "Zenith" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I know that, this is a newsgrou

Re: [PHP] Re: Replacing datafile with array

2001-09-18 Thread _lallous
mbnail_dir.trim($photos[$i]); > $thumb_image_size = getimagesize($thumbnail); > $image_size = getimagesize(trim($photos[$i])); > print(" > href=\"javascript:photo_open('photo_display.php?photo=".trim($photos[$i])."' > ,'"

[PHP] Re: regular expression help

2001-09-18 Thread _lallous
This should do (but ofcourse you might want to play a bit with it) $mem = ' http://www.mydomain.com/mypage.php";>something is fine http://www.yourdomain.com/yourpage.php";>something is wrong http://www.yourdomain.com/yourpage.php";>something is fine http://www.lgwm.org/";>lgwm http://www.google.c

[PHP] Re: Replacing datafile with array

2001-09-18 Thread _lallous
works like a charm just initializet the $retVal function... $retVal = array(); rest of script here "Daniel alsén" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > i am trying to replace a datafile wich contains the contents of a directory > wit

[PHP] Re: EXTRACTING URL FROM A FILE

2001-09-17 Thread _lallous
your regexp won't work...you have to change it! cause a quick look to yahoo's index page: Photos - Domain Registration - see?! I made this regexp which is partially working: $re = "/]*>(.+?)<\/a>/is"; "Chinmay Varma" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTE

[PHP] Script that logons and grabs some pages (while beeing authenticated)

2001-09-17 Thread _lallous
Hello I wonder if this can be done via a PHP script: 1)Goto mail.yahoo.com 2)Authenticate (submit username and password) 3)proceed to next screen and grab the inbox page (which shows the messages headers) 4)Log out I know how I can post data, but I wonder how I can keep my script authentic

[PHP] Re: MySQL query error

2001-09-17 Thread _lallous
> mysql_quory($Query); typos i can't also see more errors... "Niklas lampén" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Code: > $Query = "UPDATE feRegUsers SET Constructor='2001-09-17', > Enertec='2001-09-17', Seatec='2001-09-17' WHERE ID LIKE '288'"

[PHP] Re: FOPEN remote problems..

2001-09-17 Thread _lallous
I tried to get it via CURL but i failed, here's the output: * Connected to www.800.com (216.88.211.1) > GET /prod.asp?P=5261 HTTP/1.1 User-Agent: curl/7.8 (win32) libcurl 7.8 Host: www.800.com Pragma: no-cache Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* * Closing live connecti

[PHP] Re: Download a file with PHP

2001-09-17 Thread _lallous
Very simple, you can use functions like this to copy file from an HTTP server to your local harddrive: function my_copyfile($src, $dest) { if (!$fp = fopen($src, "rb")) return; $fpo = fopen($dest, "wb"); while (!feof($fp)) { $t = fread($fp, 4096); fwrite($fp

[PHP] Re: Overriding PHP build-in functions

2001-09-17 Thread _lallous
You have two ways: 1)Recompile PHP (as it comes with source code) and put your decryption functions just after the reading of the .PHP and before getting it parsed. 2)If you want to do a windows solution w/o modifying source code then you have to hack into the PHP code and add your new functions

[PHP] Re: Is it *really* an associative array?

2001-09-14 Thread _lallous
what are you trying to do? why do you want to diffirentiate between "99" as a string or as a number? "Chris Boget" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Sample code: > > > > $array = array( "one", "two", "three" ); > while( list( $key, $val ) = e

[PHP] Re: Sorting an array

2001-09-13 Thread _lallous
another case-insensitive version: "Dotan Cohen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm trying to sort a listing of albums alphabetically > for LyricsList.com, the problem is that I want the > initial 'The' and 'A' in some albums (A Hard Days >

[PHP] Re: syntax?

2001-09-13 Thread _lallous
If you don't put fields name as in: INSERT INTO news VALUES(, ) this means you are going to give values to all the fields in the table (in their order). If you specify fields after table name: news(body, date) this means VALUES() would be adding to these specific fields... now as for putt

[PHP] Re: Sorting an array

2001-09-13 Thread _lallous
here's your script, "Dotan Cohen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm trying to sort a listing of albums alphabetically > for LyricsList.com, the problem is that I want the > initial 'The' and 'A' in some albums (A Hard Days > Night, The Wall

[PHP] Re: Regular Expression ? from newbie

2001-09-12 Thread _lallous
here's your PHP code, banana .46 .55 pear .38 .51 apple .59 .33 '; $re2 = "/.*?]*>.*?]*>(.+?)<\/td>.*?]*>(.+?)<\/td>.*?]*>(.+? )<\/td>.*?<\/tr>/is"; $re1 = '/(.+?)<\/table>/is'; if (preg_match($re1, $mem, $matches)) { if (preg_match_all($re2, $matc

[PHP] Re: how to ?

2001-09-11 Thread _lallous
$ok = mysql_query("INSERT INTO table(field) VALUE('asdf')"); if (!$ok) { echo "error!"; } else { echo "good!"; } "Clint Tredway" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > is there a way to tell if an insert failed while a in a loop. I tried this: $qu

Re: [PHP] Re: Sessions Getting Broken

2001-09-11 Thread _lallous
e same time, not sure about it thou. > > session.cache_expire is set to 180. > session.cookie_lifetime is 0. > > Maybe those do tell you something and you tell me more! :) > > > Niklas > > -Original Message- > From: _lallous [mailto:[EMAIL PROTECTED]] > Sen

Re: [PHP] Re: variables

2001-09-11 Thread _lallous
_USER to be set and when so I query the > db again and. > It seems that the vars aren't global. How can I globalize the vars so they > are usable in other files. Are sessions teh only option? > > Thanks in advance, > Bart > > -Oorspronkelijk bericht- > Van: _lal

[PHP] Re: regexp (?:

2001-09-11 Thread _lallous
The ereg() is not is not a a Perl Compatible regexp element! try using preg_match() instead! "Andrew Perevodchik" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Why doesn't this simple example work? > > ereg ("aaa(?:bbb|ccc)aaa", $string); > > It causes an err

[PHP] Re: Some problem...

2001-09-11 Thread _lallous
You're running PHP in safe mode where some restrictions apply. try turning safe mode off! (in PHP.ini) ; ; Safe Mode ; safe_mode = Off "Oòkó‰öårzòËèkó" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Sveiki, php-general, > > I got this message: > Warni

[PHP] Re: variables

2001-09-11 Thread _lallous
Sure you can! consider this simple example: click here to go to next page it's using hidden forms... you can also use sessions... <[EMAIL

[PHP] Re: More thoughts about PHP: Taglibs

2001-09-11 Thread _lallous
Yep this is not bad! > > Hello, . Your last login was . > and now using PHP's short tags, you can make it even prettier: Hello, . Your last login was . Right? "Dr. Evil" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > It seems to me that one of th

[PHP] Re: Sessions Getting Broken

2001-09-11 Thread _lallous
Maybe it's getting timed out? "Niklas lampén" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a database update system and I regonize users with sessions. > Sometimes sessions just broke with no sane (for me at least) reason. > > Any ideas what may cause

[PHP] Re: JavaScript MD5()

2001-09-11 Thread _lallous
Yes, there is Md5() for javascript ;) http://pajhome.org.uk/crypt/md5/ I tried it and it works just fine! :) "Nicolas Costes" <[EMAIL PROTECTED]> wrote in message 00fd01c13a94$e3329b80$0100a8c0@p2333">news:00fd01c13a94$e3329b80$0100a8c0@p2333... > Hellorgh, all !!! > Does anyone knows if there

[PHP] Re: Weird PHP problem...Example code...

2001-09-11 Thread _lallous
Yes, I see this problem before, There was a setting that you turn on/off in the php.ini file..forgot which one.. maybe these: ; use transient sid support if enabled by compiling with --enable-trans-sid. session.use_trans_sid = 1 url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeen

[PHP] Re: NT?

2001-09-11 Thread _lallous
it works fine under 2000 Pro +IIS5 "Jeremy Morano" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > Sorry to bother everyone. I was just wondering if php runs on NT? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PR

[PHP] Re: Problem regarding select boxes

2001-09-11 Thread _lallous
IT's something like that friend, New Document MobileTest 12 "Balaji Ankem" <[EMAIL PROTECTED]> wrote in messa

[PHP] Re: New to PHP, just looking for resources is all =)

2001-09-10 Thread _lallous
http://www.weberdev.com/ http://www.phpbuilder.com http://www.zend.com "Pete Lopez" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi there, > > I am new to PHP and mySQL. I am a fairly quick learner and have set up a > script to add/modify/delete entries fr

[PHP] Re: problem in downloading manual

2001-09-10 Thread _lallous
Did you try to dload the manual from PHP site's mirrors? "S.Maria Goretti20010808" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi All, > I am trying to download php mauals. but I couldn't suceed as the server > is displaying the message > as "Server is

  1   2   >