test
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
I wonder how much I can include files?
does it matter if the size sum of the source code included are above 1MB ?
thanks,
elias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
test ok!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
1. you must have a frame system with two frames: frame1 called fileslist,
fametwo called: preview
when you build the files list do like this:
?
while (list(, $filename) = each($filesarray))
{
echo lia href=javascript:display('$filename')$filename/a;
}
?
then declare a javascript
try:
function_exists('mysql_query') - if TRUE then MySql is supported, etc...
Peter [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I need to use extension_loaded() to try and detect which database
interface(s) are installed on some servers. Nowhere
try www.hotscripts.com there are lots of scripts as your request.
Craig [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
i am using dreamweaver mx and want to acheive the following
9:00 task 1
9:30 task 2
10:00 task 3
task 4
Hello,
Can I get the starting position of my string occurence when using any
regexps searching functions in PHP ?
for example:
$mem='this is a test';
preg_match('/test/', ...) should return me somehow: 10
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
?
$mem='Newsgroups: php.general
Path: news.php.net
Xref: news.php.net php.general:109465
Return-Path: [EMAIL PROTECTED]
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Delivered-To: mailing list [EMAIL PROTECTED]
Received1: (qmail 60843 invoked from network); 25 Jul 2002 10:36:29 -
Kuznetsov [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello lallous,
Thursday, July 25, 2002, 3:40:32 PM, you wrote:
l Hello,
l Can I get the starting position of my string occurence when using any
l regexps searching functions in PHP ?
l for example:
insert into table(imagefield) values(load_file('/path/to/image.jpg'))
i remember that worked for me.
//elias
Rija [EMAIL PROTECTED] wrote in message
001501c231f5$72337a40$3d00a8c0@workelp3">news:001501c231f5$72337a40$3d00a8c0@workelp3...
I want to store image data into mysql table using BLOB
Yes, I've done it before too...but I saw some other libraries(in other
programming langs) that has such features...
Justin French [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
on 25/07/02 11:05 PM, lallous ([EMAIL PROTECTED]) wrote:
Yes, I
You can't download a script when it is being parsed.
If it is not going to be parsed you can download it as text.
as for php.net , they have got a button on their site called: showsource
click it and have the source of any page you want,
Apollo [EMAIL PROTECTED] wrote in message
[EMAIL
you have to add:
session_start()
in your second file.
Donpro [EMAIL PROTECTED] wrote in message
005001c234df$fe6e7b80$[EMAIL PROTECTED]">news:005001c234df$fe6e7b80$[EMAIL PROTECTED]...
Hi,
I have a form that calls a PHP script which sets a session variable and
redirects to anopther URL as
you can pass an unlimited number of variable through the array()
constructor.
as:
data_interface(array($table1, $table2, $table3))
you can use an Array manipulation functions for that order too.
good luck,
Mathieu Dumoulin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
No matter how much you compress you'll always come across the size grow
problem.
try RAR (www.rarsoft.com) execute it from PHP when necessary.
good luck,
Julio Nobrega [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi all,
I am serializing every get,
if you're using Apache, try creating an .htaccess file with this line in it:
php_value magic_quotes_gpc 1
Monty [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
If someone enters this into a field...
New York City
and I need to re-display it in the field
?
$mem = Hello world! http://www.helloworld.com\n
Hello world! ftp://ftp.server.com\n
Hello world www.helloworld.com;
// code starts here
$mem = preg_replace (/\s+([http:|ftp:]{0,1}\S+\.\S+)/me, ' A href=\'.
(ereg('^[http:|ftp:]','\\1')
? '\\1\\\1/A'
: 'http://\\1\;http://\\1/A'), $mem);
www.phpbeginner.com
http://www.zend.com/zend/tut/
.
.
.
Paul Dionne [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Is there a PHP counterpart to this site: http://www.4GuysFromRolla.com/
I always thought it was a great resource, easy to use, and full of
You can save the answers in sessions or cookies and then insert them all in
one bunch.
Elias,
Tyler Durdin [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have a DB that will take answers to an 82 question survey, but i have
the
survey divided into 4 html
Save all the entries somewhere programmatically,
then do DELETE * FROM tablename;
re insert all the entries (of course do not enter the ID field, cause it
will be auto assigned).
gl,
Thomas Edison Jr. [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Glory!
I
Well, you can do something like:
SELECT * FROM tablename
ORDER BY fieldname [ASC|DESC]
= [ASC|DESC] optional, put either of theses without the brackets.
//Elias.
Joel Colombo [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
This is a mysql question, cause i
Even more,
$fullname = {$session['f_name']} {$session['l_name']};
even
$fullname = sprintf(%s %s, $session[f_name], $session['l_name']);
etc
Mantas Kriauciunas [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hey php-general,
is there some other
Lots of pay sites allow you to send SMS programmatically...
check for example www.smsxchange.com
Rija [EMAIL PROTECTED] wrote in message
035c01c2383d$b39df7f0$3d00a8c0@workelp3">news:035c01c2383d$b39df7f0$3d00a8c0@workelp3...
Hi all,
I'm a newbie, and I'd like some advice, and I don't have any
Yes, the header can contain this:
$mailheader=Bcc: [EMAIL PROTECTED]\r\nTo: [EMAIL PROTECTED];
Elias,
Carlos Fernando Scheidecker Antunes [EMAIL PROTECTED] wrote in
message 012301c23874$982a5c70$93505ad1@Nando0">news:012301c23874$982a5c70$93505ad1@Nando0...
Hello all,
Just a question about PHP
Hello when I extended a class and overwrite a function, can i after
overwriting that function call it so it does what it used to do?
for example in Delphi I say:
procedure TMyExtendedClass.Proc1;
begin
// do new stuff here
inherited; // calls the TMyClass.Proc1;
end;
Elias
--
PHP General
?
echo preg_replace('/(img.+?src=)([^]+)([^]*)/i', '\1\2\3', 'IMG
height=44 alt=hspace=0 src=blah.jpg width=148 border=0');
?
Elias,
Electroteque [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
hi how is it possible to strip quotes from an image tag ?
i need
that won't really work if he used the ALT attribute too:
img alt=Hello world image src=helloworld.jpg
David Robley [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
hi how is it possible to strip
hmm!
1)Can you show the code @ line 36 if possible
2)try to escape the \ (replace every \ with \\)
Brian McGarvie [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have a problem with DOMXML...
I installed it and it is showing up in a phpinfo() script...
if dotest.php has got the code, do this:
echo eval(join('', file('dotest.php'));
Bas Jobsen [EMAIL PROTECTED] wrote in message
02073113582400.32156@bjobsen">news:02073113582400.32156@bjobsen...
Hello,
i have
/include/dotest.php:
?
function dotest() {echo 'test';}
?
and test.php:
?
NEWSTRING = preg_replace( array(/WHAT TO SEARCH FOR ARRAY/), array(/WHAT TO
REPLACE WITH ARRAY/), STRING)
Mike [EMAIL PROTECTED] wrote in message
007201c23891$4fee8400$[EMAIL PROTECTED]">news:007201c23891$4fee8400$[EMAIL PROTECTED]...
Heya,
I was just wondering If there is a more elegant way
I agree with Justin!
Probably your best solution is to write your own mini script and write an
interpreter for it!
Elias
Justin French [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm pretty sure you can use eval() on a string, but tread with caution,
and
see: http://lgwm.org/trap.htm
try to use the same mechanism.
Elias
Petre [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
HI
Is there a way I can disable the client's browser back button, forcing
them to use the navigation I built into the page?
Ideally, when
try str_replace()
or preg_replace()
Elias,
Nick Wilson [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi everyone,
I break out in a cold sweat just thinking about regex, so I thought I'd
ask you if there was
have you tried:
http://www.hostrix.com
?
//Elias
Mantas Kriauciunas [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hey php-general,
i want to buy hosting. but i can't find good one for me. maybe
someone could point some links. but this is what i need!
In your function do this:
function WriteNewArticle()
{
GLOBAL $PHP_SELF;
...
}
//Elias
JüRgen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello!
Could someone please tell me why i get the following Notice Message
Notice: Undefined variable: PHP_SELF
even on old versions of PHP,
he can then just use: $GLOBALS['PHP_SELF'] w/o worrying about the Global
keyword!
Elias
John Holmes [EMAIL PROTECTED] wrote in message
001001c23a1e$601f5050$b402a8c0@mango">news:001001c23a1e$601f5050$b402a8c0@mango...
Could someone please tell me why i get the
do this:
$op = isset($_GET['op']) !empty($_GET['op']) ? $_GET['op'] : '';
JüRgen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
It's me again, i don't mean to be a bugger, but i really like to learn as
much as possible, that's why i ask (or will ask so many
I have this:
//file1.php
?
include('../libs/lib1.php');
..
..
..
?
now lib1.php:
?
include ('helper.php');
?
If i run file1.php -includes lib1.php - fails to include helper.php ! !
how can i solve that?
p.s: currently, i'm chdir()ing to the ../libs path, then i return to current
dir...
my
So...
Is this equivalent to Zend Encoder?
Elias
Manuel Lemos [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
On 08/01/2002 01:58 PM, Yc Nyon wrote:
Is there any method to encrypt PHP files.
Use bcompiler which is free and is part of PEAR/PECL
have you searched hotscripts.com ?
Shane [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Anyone have a favorite Calendar script out there they would like to share?
- NorthBayShane
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Friday 02 August 2002 10:02 am, lallous wrote:
I have this:
//file1.php
?
include('../libs/lib1.php');
?
now lib1.php:
?
include ('helper.php');
?
If i run file1.php -includes lib1.php - fails to include he
yes, true!
try this patch:
if (strcmp($name-firstName, homer) == 0) {
echo changing homer to margebr;
$name-firstName = marge;
$names[key($names)]-firstName = marge;
good luck,
Elias
Jesse Vitrone [EMAIL PROTECTED] wrote in message
I have wrote this function:
function issne($var)
{
return isset($var) !empty($var) ? true : false;
}
which can be called as: if (issne($mightbeundefinedvariable)) echo using
this variable;
is there is any builtin function that does that? (one function call).
//Elias
--
PHP General
PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Fri, Aug 02, 2002 at 04:48:17PM +0200, lallous wrote:
function issne($var)
{
return isset($var) !empty($var) ? true : false;
}
is there is any builtin function that does that? (one function call).
Ye
any windows version of this product?
Manuel Lemos [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
On 08/02/2002 11:06 AM, Lallous wrote:
So...
Is this equivalent to Zend Encoder?
Not exactly, but in some aspects it is/will be bet
ing(2047), but i have
never got any errors when just use empty()
to determine whether a variable is set.
If the variable is: 0, null, not set or an empty string.
Then the empty() will return true.
It's unnecessary to call isset() first.
- Original Message -
From: lallous
Sent: 2002Äê8ÔÂ3
try to check if a session is session or not via:
session_is_registered()
Elias
Monty [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have PHP 4.2.2 with register_globals=off.
It seems like session vars stored in $_SESSION[] aren't visible to
functions.
this can be done through many ways:
1. serialization: serialize() the array and then send it as a string,
deserialize it back in form2
2. join the arrays with a seperator and send as one string, and split it
back in form2
3. use hidden fields with same name whose name is similar too:
Personally I wouldn't store BIG files (like .mp3) into the database.
If you insist checkout the mysql LOAD_FILE()
Elias
Danny [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
hi,
I already posted this message but the time on my computer was wrong (26/07
so i
;extension=php_pdf.dll
you have to uncomment that line above inside php.ini
Elias
Brian McGarvie [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
OK Help
I always seem to have trouble installing extensions... what am I doing
wrong? (trying to get PDFLib
oh well,
it is done via javascript:
script
existingSelectBox[existingSelectBox.length] = new Option(display text,
item value, false);
/script
replace the display text , item value from the popup's selected field
value/text
good luck,
Wakan [EMAIL PROTECTED] wrote in message
[EMAIL
As you can see that every Option (parameter) when calling curl_Setopt
requires a different mixed value format.
where can i find a full description of how to use each of curl's options ?
I mainly want to login to a page via curl
have curl maintain the cookies
post some fields while logged in
I agree with the flush() solution.
In addition, output a javascript code to update the display in the
browser...
for example:
scriptdocumeny.theform.progressPercent.value++/script
Elias
Tom Kohnen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi!
Well i
Yes, PHP support indexing by strings and not only numbers/indexes.
$myarray['elias'] = 'PHP rulez!';
echo $myarray['elias'];
Christian Ista [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
In some language (like Java, C#, ...) you can find a hashtable.
you can use isset()
better grab a PHP starter document or tutorial.
Elias
Christian Ista [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
Could you tell me why on PHP 4.2.2 this code work
?php
switch ($_GET['fuseaction'])
{
case 0:
try to put any code inside the new class' constructor part,
- move the this code:
$DBQuery = new DBQueries; --- this
is line 134
$DBQuery-attrib[type] = select;
$DBQuery-attrib[query] = SELECT ID_Secpage, PageType,
into
checkout:
opendir()
readdir()
fstat()
closedir()
Elias
Electroteque [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
hi there i was wondering how i could fopen a directory and then sort the
files by date modified is there a way ?
--
PHP General Mailing
give this query:
SELECT
table_routing.id AS routeid,
table_pricing.units AS price,
table_routing.providerAS providerid,
table_country.nameAS countryname,
table_country.id AS
Afaik, the session will die automatically when IE gets closed.
Or at least the cookie that links to that session.
Elias
Christian Ista [EMAIL PROTECTED] wrote in message
000101c24384$442ab9b0$c000a8c0@p3portable">news:000101c24384$442ab9b0$c000a8c0@p3portable...
Hello,
Is it possible to set
hmmmwhat are you missing?
globals $a and $b are not defined!
try to set error reporting to E_ALL and try running your code again.
Elias
Tim Stoop [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi there,
I'm forgetting something, but I can't seem to get
preg_match('!div class=Section1[^]+(.*)/div!Uis',$str,$regs[1]);
$everything_between_divs = $regs[1];
when calling preg_match just pass $regs as param and not $regs[1]
Elias
[EMAIL PROTECTED] wrote in message
000101c244c9$08401d50$86a96518@jumpy">news:000101c244c9$08401d50$86a96518@jumpy...
by simple ways, you can do that:
$query = urlencode(your query string)
$result_string = join('', file(http://www.google.com/search?q=$query));
Elias
Henry [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi all
I would like to be able to get the result of a
How and where can I add an alias and associate PHP with that alias?
Elias
Bogdan Stancescu [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
You can set up php to run from console if it doesn't already, and add an
alias to your mail server (stocks) which would
one of the solutions is not using fopen() instead use another class that is
able to post to pages and retrieve them.
check phpclasses.org
Dallas Thunder [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
How do I customize the User-Agent when using fopen() or
tatement, whether where or join. Since
you are working with tables, you can save yourself a lot of typing by
dropping the table_ from the table names. After all, that's what they
are. (You can do this unless you've gone too far with your system.)
Miles Thompson
At 02:15 PM 8/14/2002 +0200,
?
$fn = 'test.gif';
echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn);
?
This script will output 'testa.gif'
now how can i make it produce 'test1.gif' ?
if i replace the: '\1a\2' with '\11\2' it will understand to replace with
occurence number 11 !
How can i escape the 2nd '1' so it is
riday 16 August 2002 19:49, lallous wrote:
?
$fn = 'test.gif';
echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn);
?
This script will output 'testa.gif'
now how can i make it produce 'test1.gif' ?
if i replace the: '\1a\2' with '\11\2' it will understand to replace
with
o
_replace('/(\..+?)/', '1$1', $fn);
Lallous wrote:
?
$fn = 'test.gif';
echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn);
?
This script will output 'testa.gif'
now how can i make it produce 'test1.gif' ?
if i replace the: '\1a\2' with '\11\2' it will understand to
can do this:
$array = array('apple', 'pear', 'orange', 'apricot');
$array = array_flip($array);
$keyword = 'orange';
echo found '$orange' @ index: . $array[$keyword];
Don't use this method though! It makes your program slow!
Elias
Tim Fountain [EMAIL PROTECTED] wrote in message
[EMAIL
Hello Rasmus,
Now that the topic has been brought,
How much long will the script keep running after the redirection request has
been made?
Doesn't that behaviour depend from browser to browser ?
Thanks,
Elias
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
I feel like the request being sent is erroneous.
it was:
fputs($fp,GET/scripts/online.dll?icq=$uinimg=5HTTP/1.0\n\n);
It should be:
fputs($fp,GET /scripts/online.dll?icq=$uinimg=5 HTTP/1.0\n\n);
And beside that it seems it is an outdated URL
Elias
Justin French [EMAIL
Try to post it via other than CURL,
http://Sloppycode.net and search for clsHtmlSource.php
Good luck,
Elias
Samantha Savvakis [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
HI,
I'm using the cURL binary to perform a HTTP POST to a web page. I am
sending
XML
$str = str_pad('', 254, 'A');
Saci [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
In ASP I use the expression myvar = string(254,A)
to have a var filled with 254 characters 'A'
What is the similar one in PHP?
--
PHP General Mailing List
even more, if you want to use curl...
I remember that curl can take post data from an input file, so dump the
$strXML to a temp file then supply that file to curl.
good luck,
Samantha Savvakis [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
HI,
I'm using the
refer to:
string ini_set ( string varname, string newvalue)
Henry [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello All,
Is it possible to change the include path when a script is runing without
having to change the php.ini file?
TIA
Henry
--
hr tag does not need a closing tag, therefore you don't write /hr.
Now TAG NAME / tags are used to make the document compatible with XHTML,
XML ...
Victor [EMAIL PROTECTED] wrote in message
01c25272$357e6360$a3a96518@jumpy">news:01c25272$357e6360$a3a96518@jumpy...
When I learned html
Hello Ivan,
select name=selcategoryid value=0
Don't set a value for that tag!
echo option name=\selcategoryid\
value=\$faqcatsid\$faqcats/option;
no need to name the option tag too, setting the value will be enough.
when you submit your form, faqbycat.php will receive
How and where are you spitting out the text?
If to HTML output, the use the nl2br(). or spit between pre tags.
Elias
Royw [EMAIL PROTECTED] wrote in message
00a301c25336$9815cc60$[EMAIL PROTECTED]">news:00a301c25336$9815cc60$[EMAIL PROTECTED]...
I have a script which takes a memo field and
you can also join() the elements and pass as a single string, then explode()
the elements back again.
Elias
Paul Maine [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Is it possible to pass an array in a form post? If so, how do I reference
the array on the next
This script is not mine, but I modified it so that it can work with any form
field...
take a look at the sources:
http://lgwm.org/ozone/calcall.htm
Good luck.
Adi [EMAIL PROTECTED] wrote in message
001701c253f3$5ce58820$9600a8c0@adi">news:001701c253f3$5ce58820$9600a8c0@adi...
Hi,
There are
Do you have SSL library installed? check that PHPINFO() i guess.
You can also try to run curl() (if they have SSL support).
Otherwise, It will be hard to implement SSL from pure PHP sockets functions.
Elias
Radu Manole [EMAIL PROTECTED] wrote in message
001401c25404$a52baae0$[EMAIL
try
www.ozoneasylum.com
Elias
Christopher J. Crane [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Does anyone know of a Javascript forum like this one that I can post a
question to?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
if you have an array in javascript:
array1 = [1,2,3,4,5,6,7,8,'test'];
etc...
you can join it in JavaScript to make it a one string as:
array1 = array1.join('|');
then split in PHP to make it back an array:
?
$array1 = explode('|', $array1);
?
good luck,
Kale [EMAIL PROTECTED] wrote in
showsource.php:
html
body
span style='border:dashed 2px red'
?
$mem = join('', file('THEFILE.HTM'));
$mem = htmlspecialchars($mem);
echo $mem;
?
/span
Good luck,
Roman Duriancik [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
How I show in IE source code of
I think it is also good to fetch $mem as:
$fp = fopen('index.htm', 'r');
$mem = fread($fp, filesize('index.htm'));
fclose($fp);
that will keep index.htm formatted as is.
Adrian Murphy [EMAIL PROTECTED] wrote in message
str_replace()
Meltem Demirkus [EMAIL PROTECTED] wrote in message
001201c255a4$6253ece0$5583@hiborya">news:001201c255a4$6253ece0$5583@hiborya...
Hi,
is there any function which removes white spaces inse a string?
thanks
--
PHP General Mailing List (http://www.php.net/)
To
Isn't the gmdate() supposed to return the same value when run from two
different timezones?
I run it on GMT+2 system and EDT system, and I get 1 hour difference,
please advise.
Elias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$mem = '
!-- start
HTML CODES HERE
HTML CODES HERE
HTML CODES HERE
HTML CODES HERE
HTML CODES HERE
HTML CODES HERE
HTML CODES HERE
// end --
';
if (preg_match('/!--.+?--/is', $mem, $result))
{
var_dump($result);
}
good luck,
Bård tommy nilsen [EMAIL PROTECTED] wrote in message
orrectly - it needs to know what time
zone it is in and if the BIOS time is GMT or local.
lallous wrote:
Isn't the gmdate() supposed to return the same value when run from two
different timezones?
I run it on GMT+2 system and EDT system, and I get 1 hour difference,
please advise.
Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
t]On Behalf Of lallous
Sent: Friday, September 06, 2002 8:55 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] gmdate()
I don't own the server, and the server is probably set up correctly as it
is
a web hosting server.
any
Try this:
?php
$fileextension=csv;
$filename=report;
$fnsave = $filename.$fileextension;
header(Content-disposition: filename=$fnsave);
header(Content-type: application/force-download);
// generate your CSV content here and print them to the browser via ECHO
echo 'a,b,c,d,1';
Hi,
Try to learn many things from the test code i created below:
http://lgwm.org/ozone/dynatable.htm
Good luck,
Elias
Roger Lewis [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
The Situation:
I'm trying to create a pair of dynamic dropdown boxes where the
try this:
exec('convert picture.jpg -font Arial-Bold -pointsize 20 -fill red -gravity
southeast -draw text 10,10 \'my text to add to picture\'
text-overlay.jpg');
when you start with a single quote - you have to end with a single quote
while escaping (using \) all its occurences in the used
I use JavaScript cookie to accomplish what you're doing in your case:
script
function setCookie(name, value, expires, path, domain, secure) {
var curCookie = name + = + escape(value) +
((expires) ? ; expires= + expires.toGMTString() : ) +
((path) ? ; path= + path : ) +
try this:
if (empty(trim($_POST[new_password1])))
{
echo 'Empty!!!';
}
Meltem Demirkus [EMAIL PROTECTED] wrote in message
001701c25a2c$4758d4a0$5583@hiborya">news:001701c25a2c$4758d4a0$5583@hiborya...
Hi,
I want to understand what is wrong with this code?I am trying to
understand
Hello Chad,
I started PHP from a book.
I believe a book is a good way to start as it organized and well written to
make sure you're progressing chapter by chapter.
After that, I read articles and tutorials as I needed to expand my skills.
just my 2cents,
Elias
Chad Winger [EMAIL PROTECTED]
Hello,
1)probably you don't have CURL extension enabled in your php.ini file? try
to open php.ini and search for CURL.
2)to achieve a POST via PHP code, look at www.phpclasses.org
Elias,
Geoff Lists [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I am
probably have to use
$_POST[new_password1]
Besides that, I would use the form of Lallous:
if ( empty( trim( $_POST[ new_password1 ] )
echo Empty!;
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes, you're right about that point since the seed in most cases is computed
from system time = increasing probability of having same number @ the same
request time...
you can change the seed with the time() too (not all days are the same).
hope to hear others' opinions too.
Elias
Leif K-Brooks
what have you already tried?
can you show some code?
Elias
Bob Bowker [EMAIL PROTECTED] wrote in message
5.1.0.14.2.20020912091817.01ef3c50@localhost">news:5.1.0.14.2.20020912091817.01ef3c50@localhost...
I have a large binary file (50+ megs) ... I want to read the first 1k
bytes, make
1 - 100 of 129 matches
Mail list logo