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
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
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
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
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:
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
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
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
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]);
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
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
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
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
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
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;
}
?
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?
?
$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
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
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
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
$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.
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
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
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
$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
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
$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
$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,
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
$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
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
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
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
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:
?
$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();
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.
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,
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 =
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.
--
$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
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
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
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.
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
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:
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
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-
--
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
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
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
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
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
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
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
-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
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
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
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);
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
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
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
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
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
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
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
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...
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
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
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
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
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
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.
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
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,
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
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';
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
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
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 ) =
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]);
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
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 =
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
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 = ;
}
//--
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
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 =
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
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,
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
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;
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
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
$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
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
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
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
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
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
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
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 - 100 of 162 matches
Mail list logo