Thanks John,
sorry I didn't see the new join()'s parameters you provided, I only noticed
the new '%s' .
Elias,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
:002101c26de2$982bf7d0$7c02a8c0@coconut...
>
>
> > -Original Message-
> > From: lallous [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, October 07, 2002 6:09 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] join() , can do that fast?
> >
> >
Hello,
I have:
$x = array('str1','str2','str3');
I want to convert that array to a valid javascript syntax as:
var x = ['str1','str2','str3']
I can do this in PHP:
echo sprintf("x=[%s]", join(',', $x));
but that would produce:
x = [str1, str2, str3]
is there is a fast way (other than doing
With the mysqldump utility (comes with mysql) you can backup/restore any
database.
I don't know if you can tell it to dump all databases and their tables too.
If you've got root access, you can simply copy the 'data' (i.e:
C:\mysql\data) from a server to another.
good luck,
Elias
"Peter Janett"
did you try www.phpbuilder.com for how to install PHP /win ?
Elias,
"Dan" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am trying to create a message board. I setup a windows 2000 server and
> installed IIS. In order to setup this messageboard i need to hav
Peter, I think he's stuck with the parsing part?
you can file() the /etc/passwd file then explode() it and add the
username,passhash parts and/or more values into the mysql table.
Elias,
"Peter Janett" <[EMAIL PROTECTED]> wrote in message
026a01c26b94$7b45d0a0$55285742@peters">news:026a01c26b94
ps sending something every now and then. If it just sits there without
> outputting anything, then Apache will kill it off eventually.
>
> On Fri, 4 Oct 2002, lallous wrote:
>
> > Hello,
> >
> >
> > if i set set_time_limit(0) will my script still timeout
Hello,
if i set set_time_limit(0) will my script still timeout and see in the
browser: Page timed out and cannot be displayed?
is there is anything I can do to prevent a script that takes an hour to
finish processing from being killed when timeout occurs?
Thanks,
Elias
--
PHP General Maili
Hello
MySqlfront.de's mysqlfront program has been discontinued any equivalent
alternative?
thanks,
Elias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
try www.sloppycode.net
* © Sloppycode.net All rights reserved.
* @title Html Source class - api for getting/posting to websites
* @author C.Small
* @version 1.0
or phpclasses.org
Elias,
"Chris Nielsen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I hav
I was about to tell you to use Last-Modified Header! ;)
Well then...try to fetch the page's size and compare with last time, if
changes then regrab the page.
Elias,
"Vikram Vaswani" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> I need to write an
look for an application called: TimeWebSheet
Elias,
"Faisal Abdullah" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi people.
> Does anyone happen to know whether there is a sample script/application
out
> there which can tell me (and everyone else in the
Hello,
I was wondering if i do:
function test()
{
$result = mysql_query("SELECT * FROM bigbigtable");
}
after calling test() will $result be freed as if calling
mysql_free_result()?
Elias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
EASILY rewriting PHP's mail() function?
>
> Cheers,
> Liam
>
>
> - Original Message -
> From: "lallous" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 18, 2002 9:25 PM
> Subject: [PHP] Re: replacing mai
There is something you can set in php.ini afaik.
search for 'sendmail' in that file.
Elias,
"Liam" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Yeah, mail() again...
>
> I want to disable the default mail command and replace it with my own.
> I've written a function that talks
and there are indeed many things to learn;
> however, it's all in js.
> I'm trying to have php write the js, but I don't know enough about arrays
> and manipulating their elements.
>
> Roger
>
> -Original Message-
> From: lallous [mailto:[EMAIL PROTE
Hi,
when you want to access class member variables prefix them with $this-> ,
otherwise they will be treated as local vars.
hope that helps.
Elias
"David Eggler" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I create a Instance fo the Class MenueItem in M
even more...
what if I create $c1 as a global instance and then $c1 as a local instance
(inside a function) ?
won't c1.log overwrite c1.log ?
Elias
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> It's not possible, imagine
>
> $firstname = ne
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 c
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-Brook
t; > warning message..
> >
> > if($_POST[new_password1] == " ")
> >
> > echo "empty input";
>
> And as final addition, you probably have to use
>
> $_POST["new_password1"]
>
> Besides that, I would use the form of Lal
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
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]>
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
understan
I use JavaScript cookie to accomplish what you're doing in your case:
function setCookie(name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((d
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 use
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 wher
Try this:
Elias
"Henry" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi All,
>
> I suspect this is a commonly asked question but; how do I generate a CSV
> files on the fly and get the browser to download it.
>
> Do I actually need to generate a file or c
e return values from these
> two servers.
>
> -Naintara
>
> -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()
>
>
t; The server needs to be set up correctly - 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 ru
$mem = '
';
if (preg_match('//is', $mem, $result))
{
var_dump($result);
}
good luck,
"Bård tommy nilsen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
> Hello
>
>
> I have a string with the html source, but want to fetch only some
> Of the code ...
>
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
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.
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
001b01c2559f$aa8f3c30$1a8f43d9@ADE2">news:001b01c2559f$aa8f3c30$1a8f43d9
showsource.php:
Good luck,
"Roman Duriancik" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How I show in IE source code of html page with php ?
>
>
> roman
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
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:
good luck,
"Kale" <[EMAIL PROTECTED]> wrote in message
002c01c254cc$fe8eace0$7800a8c
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 unsubscrib
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 PROTEC
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
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
How and where are you spitting out the text?
If to HTML output, the use the nl2br(). or spit between 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 st
try to:
var_dump($row[24])
and see what happens?
it might be that the "Y" is stored as lowercase in MySql's table.
Elias
"David Banning" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> if I set test = "Y";
> then
>
> if ($test == "Y") {echo ("it matches");}
>
>
Hello Ivan,
Don't set a value for that tag!
echo "$faqcats";
no need to "name" the tag too, setting the value will be enough.
when you submit your form, faqbycat.php will receive $selcategoryid as the
user chose from that select list.
Elias,
"Ivan Carey" <[EMAIL PROTECTED]>
tag does not need a closing tag, therefore you don't write .
Now 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 it was alway
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
>
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
$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 Li
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
sendin
I feel like the request being sent is erroneous.
it was:
fputs($fp,"GET/scripts/online.dll?icq=$uin&img=5HTTP/1.0\n\n");
It should be:
fputs($fp,"GET /scripts/online.dll?icq=$uin&img=5 HTTP/1.0\n\n");
And beside that it seems it is an outdated URL
Elias
"Justin French" <[EMA
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:[EM
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
[EMAI
r all extension,
>
> try this:
> echo preg_replace('/(\..+?)/', '1$1', $fn);
>
> Lallous wrote:
> > > $fn = 'test.gif';
> >
> > echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn);
> >
> > ?>
> >
&g
L PROTECTED]">news:[EMAIL PROTECTED]...
> On Friday 16 August 2002 19:49, lallous wrote:
> > > $fn = 'test.gif';
> >
> > echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn);
> >
> > ?>
> >
> > This script will
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 considered as a string an not another
number.
Elias
--
PHP General Mailing
ve gone too far with your system.)
>
> Miles Thompson
>
> At 02:15 PM 8/14/2002 +0200, lallous wrote:
> >give this query:
> >
> > SELECT
> > table_routing.id AS routeid,
> > table_pricing.units AS pri
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
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 w
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 resul
preg_match('!]+>(.*)!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...
> Hi, I hope you can hel
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 t
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 t
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 country
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 Mail
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, P
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
>
>switch ($_GET['fuseaction'])
> {
> case 0:
>
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 hasht
I agree with the flush() solution.
In addition, output a javascript code to update the display in the
browser...
for example:
documeny.theform.progressPercent.value++
Elias
"Tom Kohnen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi!
> Well i suppose flush
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
the
oh well,
it is done via javascript:
existingSelectBox[existingSelectBox.length] = new Option("display text",
"item value", false);
replace the "display text" , "item value" from the popup's selected field
value/text
good luck,
"Wakan" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">
;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 P
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
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: hiddenfield[
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
> functi
_ALL) oR error_reporting(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:
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?
>
> No
tions" <[EMAIL 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;
> >
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 Gene
yes, true!
try this patch:
> if (strcmp($name->firstName, "homer") == 0) {
> echo "changing homer to marge";
> $name->firstName = "marge";
$names[key($names)]->firstName = "marge";
good luck,
Elias
"Jesse Vitrone" <[EMAIL PROTECTED]> wrot
D. Budiardja" <[EMAIL 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 ('hel
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: ht
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/PE
I have this:
//file1.php
now lib1.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 code cannot make use of Apache's help. (like setting the include path
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 s
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 f
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:
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
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 t
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
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
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
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
that won't really work if he used the ALT attribute too:
"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 quotes from an image tag ?
> > i need
> >
>
]*>)/i', '\1\2\3', '');
?>
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
>
>
> to look like
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
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
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 M
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 abou
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
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 s
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
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!
>
1 - 100 of 131 matches
Mail list logo