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
>
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
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
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
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
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
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:
>
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
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
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
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
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
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
[
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
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
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
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
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
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
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
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
$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.
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/)
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
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
> $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,
$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
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
> "$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
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
$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
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"
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
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
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
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
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
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
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
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
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
$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,
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.
--
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
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
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
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
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
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
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
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?
>
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
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
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
> 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
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!
>
>
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" <[
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
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
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
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
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
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
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
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
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
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
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.
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.
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
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
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
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])."'
> ,'"
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
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
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
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
> 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'"
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
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
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
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
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
>
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
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
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
$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
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
_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
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
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
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
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
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
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
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
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
IT's something like that friend,
New Document
MobileTest
12
"Balaji Ankem" <[EMAIL PROTECTED]> wrote in messa
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
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 - 100 of 170 matches
Mail list logo