[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

[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 i have

[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;$istrlen($name)$;$i++) if ($name[$i] == '@' || $name[$i]=='!' .. ) print 'error!'; Phantom [EMAIL PROTECTED] wrote in message [EMAIL

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

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

[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: script var w = window.open('file.htm'); w.document.theform.theControl.theProperty = someValue here; /script Carlo loiudice [EMAIL PROTECTED] wrote in message

[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

[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 = ? echo _(nìjaký blábol); ? } here's a fix: function zmen_cenu() { window.opener.document.celkem.cena_celkem.value = ? echo _(nìjaký blábol); ?; } Pavel NováK [EMAIL PROTECTED] wrote in message [EMAIL

[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=aaacccmyfield1=; 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]);

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

2001-11-16 Thread _lallous
name the checkbox as: input type='checkbox' value='?=$field['id']?' name='selectedplayers' where ID is used to identify this current field! then read in the posted page as: ? while (list(, $selected) = each($selectedplayers)) { // $selected holds the ID of the field that was previously

[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 another page

[PHP] Re: I suck at regular expressions!

2001-11-15 Thread _lallous
try that! ? $mem=' !doctype html public -//W3C//DTD HTML 4.0 Transitional//EN html head title New Document /title meta name=Author content= meta name=Keywords content= meta name=Description content= /head body /body /html '; if (preg_match('/title(.+?)\/title/is', $mem, $matches)) { echo

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

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 years

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

2001-11-14 Thread _lallous
from the manual ?php $fp = fsockopen(www.php.net, 80); if(!$fp) { echo Unable to open\n; } else { fputs($fp,GET / HTTP/1.0\n\n); $start = time(); socket_set_timeout($fp, 2); $res = fread($fp, 2000); //var_dump(socket_get_status($fp)); fclose($fp); print $res; } ?

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

[PHP] Re: matches problem (preg_match)

2001-11-13 Thread _lallous
? $str=eins zwei drei vier fünf sechs sieben acht neun; if (preg_match_all(/\w+/, $str, $matches)) { $words = $matches[0]; var_dump($words); } ? viele Grüße, lallous! Ewald Schoeller [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hello we want

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

[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

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 you're

[PHP] Re: Stripping IMG tags

2001-11-11 Thread _lallous
$string = preg_replace('/img[^]*/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] 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

[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/) To

[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

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

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

[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 $idbr ; # 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: 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 with

Re: [PHP] String breaking up

2001-10-26 Thread _lallous
$string = hey there!; $out = ''; for ($i=0; $icount($string); $i++) { $out .= strtoupper($string[$i]) . \n; // or br 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

[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 ? readfile('logfile.txt'); ? Yamin Prabudy [EMAIL PROTECTED] wrote in message 003901c15de4$82f0cb70$fe2796ca@dusak">news:003901c15de4$82f0cb70$fe2796ca@dusak... Hi

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

Re: [PHP] Re: Loading message

2001-10-25 Thread _lallous
is helps Derek - Original Message - From: Daniel Alsén [EMAIL PROTECTED] To: php [EMAIL PROTECTED]; _lallous [EMAIL PROTECTED] Sent: Thursday, October 25, 2001 11:27 AM Subject: RE: [PHP] Re: Loading message I will try experimenting with that. But my situation is:

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

2001-10-25 Thread _lallous
? $mem = ' -- bla bla bla [phpcode] ? echo \'hello word\'; ?? [/phpcode] bla bla bla --- '; //' $re = '/\[phpcode\](.+?)\[\/phpcode\]/is'; if (preg_match($re, $mem, $matches)) { ob_start(); highlight_string($matches[1]); $html = ob_get_contents();

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

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

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

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

[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 can run

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 could

[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 ?phpinfo();? just to see if everything is fine. you may want to try to ask in php.install group too.

[PHP] Re: MessageBox in PHP?

2001-10-22 Thread _lallous
you can use JavaScript to do that... script alert('your message goes here'); /script 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

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

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

[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: How can I simulate the login process?

2001-10-05 Thread _lallous
-- 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? I want to write a script that simulates the login process and logs on and grabs some pages (that can only be viewed whe

Re: [PHP] Downloading Images

2001-10-05 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 users to

Re: [PHP] ereg checking if its only numbers

2001-10-05 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 Aitken

[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 script below? (ie to

[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

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

[PHP] Re: Array Elements While Loops

2001-10-01 Thread _lallous
if ($flag = 1) { die (p align='center'bEmail #$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

Re: [PHP] word filter

2001-10-01 Thread _lallous
-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 There's a better way to do this: ? $naughty_words = array

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

[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! $mem = an arc is an archer, arc but what ab

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

2001-09-25 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: ? $db_name = newsdatabase; $db_uname= username; $db_upass= password; $db_host = abc.com; $conn = mysql_connect($db_host, $db_uname, $db_upass);

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

[PHP] Re: parsing

2001-09-21 Thread _lallous
This should do, ? $mem = ' TABLE BORDER=0 WIDTH=100% CELLPADDING=0 CELLSPACING=0 TRTD WIDTH=100% CLASS=DEFAULTBOX colspan=2 SPAN CLASS=TITLE Motor Racings Strangest Races/SPANBR SPAN CLASS=AUTHOR TIMBALLS, GEOFF/SPANBR /TD/TR/table TABLE BORDER=0 WIDTH=100% CELLPADDING=0 CELLSPACING=0 TRTD

[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

[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 grab info

[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, have a CR/LF

[PHP] Re: text editing (parsing)

2001-09-20 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: 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: Call a script without a return

2001-09-19 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: 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 with an

[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 = ' A HREF=http://www.mydomain.com/mypage.php;something/a is fine A HREF=http://www.yourdomain.com/yourpage.php;something/a is wrong A HREF=http://www.yourdomain.com/yourpage.php;something/a is finebr a

[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 newsgroup for

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

[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. Brent Crude

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

[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($fpo,

[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

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

[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: a href=r/f3Photos/a - a href=r/drbDomain Registration/b/a - see?! I made this regexp which is partially working: $re = /a href=(['\]*|)(.+?)(\1|[ ])[^]*(.+?)\/a/is; Chinmay Varma [EMAIL PROTECTED] wrote

[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: script language=php $array = array( one, two, three ); while( list( $key, $val ) =

[PHP] Re: Sorting an array

2001-09-13 Thread _lallous
here's your script, ? $mem = The Childhood A Man called lallous The Long kiss good night Abbey Road Dark Side Of the Moon The Final Cut The Zombie A Hard Days Night Kill 'em All The Wall; $mem = split(\n, $mem); $arr1 = array(); for ($i=0;$icount($mem);$i++) { $line = trim($mem[$i]);

[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

[PHP] Re: Sorting an array

2001-09-13 Thread _lallous
another case-insensitive version: pre ? $mem = The childhood A Man called lallous The Long kiss good night Abbey Road Dark Side Of the Moon The Final Cut The Zombie A Hard Days Night Kill 'em All The Wall; $mem = split(\n, $mem); $arr1 = array(); for ($i=0;$icount($mem);$i++) { $line =

[PHP] Re: Regular Expression ? from newbie

2001-09-12 Thread _lallous
here's your PHP code, ? $mem = ' table cellspacing=2 cellpadding=2 border=1 tr td align=centerbanana/td td align=left.46/td td align=right.55/td /tr tr td align=centerpear/td td align=left.38/td td align=right.51/td /tr tr td align=centerapple/td td

[PHP] Re: Problem regarding select boxes

2001-09-11 Thread _lallous
IT's something like that friend, html head title New Document /title /head body onload=hidelb(); script language=JavaScript !-- function hidelb() { o = document.all[lb1]; if (test.phone.selectedIndex==1) o.style.display = none; else o.style.display = ; } //--

[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

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

[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 is a

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

[PHP] Re: More thoughts about PHP: Taglibs

2001-09-11 Thread _lallous
Yep this is not bad! html Hello, showusername/. Your last login was showlastlogin/.p /html and now using PHP's short tags, you can make it even prettier: html Hello, ?=showusername()?. Your last login was ?=showlastlogin()?.p /html Right? Dr. Evil [EMAIL PROTECTED] wrote in message

[PHP] Re: variables

2001-09-11 Thread _lallous
Sure you can! consider this simple example: html body a href=javascript:setvars('var1value', 'var2value')click here to go to next page/a script language=JavaScript !-- function setvars(var1, var2) { df = document.dataform; df.var1.value = var1; df.var2.value = var2;

Re: [PHP] Re: variables

2001-09-11 Thread _lallous
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: _lallous [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 11 september 2001 12:23 Aan: [EMAIL P

Re: [PHP] Re: Sessions Getting Broken

2001-09-11 Thread _lallous
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]] Sent: 11. syyskuuta 2001 13:09 To: [EMAIL PROTECTED] Subject: [PHP] Re: Sessions

[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: $query = my

[PHP] Re: Question on the list() function

2001-09-10 Thread _lallous
I don't think this is correct! You can't do this: list($a, $b) = variable! which is the case in: list($key, list($tag, $data)) = each($array) you can use: list($key, $value) = each($array) D [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am a newbie and

[PHP] Never tried it but....

2001-09-10 Thread _lallous
Can sessions hold the $result resource of a mysql_query? and the use that $result variable to fetch rows on other page? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] Re: Unique Array

2001-09-10 Thread _lallous
and more practically your code get corrected to this: for ($i = 0; $i100; $i++) { $a[$i] = rand(0,9); $test[]=$a[$i]; } $ra = array_unique($test); and your code get optimized to this: (mostly of the manual!;)) $numbers = range (0,9); srand ((double)microtime()*100); shuffle

[PHP] Re: Anagram Solution in PHP

2001-09-10 Thread _lallous
I have no idea how anagrams work, but is it true as you say/imply: If the same of the characters of a string is same as the sum of other characters in another string THEN the last is an anagram of the first? Ralph Guzman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: include path-problem

2001-09-10 Thread _lallous
Try use absolute path reference, I can't see your problem!? If you have this file: /home/websitename/www/include/news.txt whether you access it from /index2.php or /support/shop.php all the same! You might also want to refer yourself to the include_path variable configuration. [EMAIL

[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 Busy and

[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 from a

  1   2   >