$new = preg_replace('/[ ]{2,}/',""$old);
HTH
Andrey
- Original Message -
From: "Victor SpÄng Arthursson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 12:05 PM
Subject: [PHP] trim away x > 1 number of spaces from a strin
Hi!
Could someone help me with a
for($m=1;$m<=5;$m++){
$div_id[$m]=${'divid'.$m};
}
Regards,
Andrey
- Original Message -
From: "Steve Buehler" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Friday, July 26, 2002 10:48 PM
Subject: [PHP] filling an array
> Can anyone tell me what I am doing wrong?
>
> I am
unset($_SESSION['variavble']);
Andrey
- Original Message -
From: "Tyler Durdin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 26, 2002 10:14 PM
Subject: Re: [PHP] Re: sessions
> So doing it the new way ($_SESSION['variable']) how do you close or
> unregister a ses
do the following
function a(){
var_dump('',$GLOBALS,'');
}
a();
and see what variables you have and whether your variables are set
somewhere.
HTH
Andrey
- Original Message -
From: "Tyler Durdin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 26, 2002 9:28 PM
Subject:
n add/substract what you wish and will get correct results in case the
the resulting timestamp is between 1.1.1970 and somewhere in year 2038.
Best regards,
Andrey Hristov
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nter-1),2002);
}
}
HTH
Regards,
Andrey
- Original Message -
From: "Christopher J. Crane" <[EMAIL PROTECTED]>
To: "Andrey Hristov" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, July 29, 2002 7:00 PM
Subject: Re: [PHP] Dates and Date()
No problema.
If you have access to icq you can use irc.php.net or capek.openprojects.net
(or any other openproject's irc server)
on #php channel.
Andrey
- Original Message -
From: "Christopher J. Crane" <[EMAIL PROTECTED]>
To: "Andrey Hristov" <[EMAIL
e people
always experiment some not.
Kind regards,
Andrey Hristov
- Original Message -
From: "1LT John W. Holmes" <[EMAIL PROTECTED]>
To: "Christopher J. Crane" <[EMAIL PROTECTED]>; "Andrey Hristov"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Inspect $argc & $argv arrays (var_dump() them).
Andrey
- Original Message -
From: "Evan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 29, 2002 8:06 PM
Subject: [PHP] php.exe from command line
> I've made a simple php file that creates a file named 'agent_1.txt' where
There are two ways (SOAP) to use SOAP library written in PHP such as NuSOAP
by Dietrich Ayala or to use
PHP-SOAP toolkit (module for PHP written in C)by Brad Lafountain(coding) and
Shane Caraveo(testing) (available at sourceforge.net).
Regards,
Andrey
> "Bob Lockie" <[EMAIL PROTECTED]> wrote i
> > I suppose include() can be used to include files from remote
> > systems(not on
> > WINDOWS).
>
> Only if the sysadmin running your web server allows it, which they should
> not.
>
>
> > A webmaster on the same server can always use a path like
> > "/home/htdocs/.../config.php" and include my
Post that on [EMAIL PROTECTED]
Andrey
- Original Message -
From: "SenthilVelavan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 02, 2002 10:54 AM
Subject: [PHP] Reg- array_unique
Hello All,
I tried a program using array_unique.It shows different outputs
http://ispcheck.com is the place. Listing of many webhostings. Go and see.
Regards,
Andrey
> > 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!
> >
> > Storage up to 100MB
> > normal trans
The password that user used is available in some var
var_dump($HTTP_SERVER_VARS); or var_dump($GLOBALS);
Andrey
- Original Message -
From: "Oliver Witt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 02, 2002 5:21 PM
Subject: [PHP] .htaccess
> Hi!
> Using an .htacce
> >>>So...
> >>>Is this equivalent to Zend Encoder?
> >>
> >>Not exactly, but in some aspects it is/will be better like the ability
> >>to generate executable standalone PHP programs that you can distribute
> >>independently. There is also the question of the price that for Zend
> >>Encoder is rid
gedit - for gnome. nedit. - for X
joe - for console. use joe if you had used Borland's editors. The key
combinations are almost the same.
Regards,
Andrey
- Original Message -
From: "JJ Harrison\" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 09, 2002 1:40 PM
Subject: [
Hi,
sets the value of the var to be parsed later.
HTH
Andrey
- Original Message -
From: "John Wards" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 13, 2002 12:58 PM
Subject: Re: [PHP] Php lib?
> Thanks for that rather handy!
>
> Does anyone know what the function s
$contents = implode('',file($filename));
Regards,
Andrey
"Edgar" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> I was looking for in the news, but i did not encounter any thing.
>
> Where can I get an example or the way to read a text file into a variable
> and how identify
Variable variable. Read the docs.
$v = 'foo';
$foo = 'bar';
echo $$v;
Regards,
Andrey
P.S.
Sometimes {} are used : ${$v}
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> The script was working great before PHP 4.2.x and not after that. So, I
> looked thro
I think that it is better to use unixtimestamps and if you save them to a
RDBMS then save according to GMT. When retrieving use timezone to convert to
your local time -
ex
define('MY_TIMEZONE',-2);
list($time) = mysql_fetch_array(mysql_query('select tstamp from table where
user='.$user_id.';'));
$xy = array_values($_POST);
HTH
Regards,
Andrey Hristov
- Original Message -
From: "Gabor Niederlaender" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 17, 2002 1:19 PM
Subject: [PHP] To fill an Array
> Hi all!
>
> I would
Something like this.
$your_string = preg_replace('/[\d\w]+@([\w\d]{3,}\.)+([\w]{2,4})/','',
$your_string);
HTH
Best regards,
Andrey Hristov
- Original Message -
From: "Michal Albrecht" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wedn
Try with output buffering.
Regards,
Andrey Hristov
- Original Message -
From: "Matt Babineau" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 17, 2002 6:20 PM
Subject: [PHP] $_SESSION - autostart, or session_start() ?
> If I set the SESSION
They are moving to another machine. The intention is to move the download
resource to another resource to free the resources ot the current machine
because there are too many working apache processes. And this is a problem
for other applications. It will be fine soon.
Regards,
Andrey
- Orig
What PHP version do you use(4.1.0?)
Regards,
Andrey Hristov
- Original Message -
From: "Bogdan Stancescu" <[EMAIL PROTECTED]>
To: "Chris Cocuzzo" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, December 27, 2001 2:18 PM
Subject: Re: [
It is for the author of "This makes NO SENSE!"
Regards,
Andrey Hristov
--
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 administrators, e-mail: [EMAIL PROTECTED]
Read the docs about copy_uploaded_file() (this is the function with some more docs, as
I remember).
HTH
Andrey Hristov
- Original Message -
From: "Paul Roberts" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 28, 2001 2:41 PM
Subject: [PHP] is
Under *nix - SysV semaphores
HTH
Regards,
Andrey Hristov
- Original Message -
From: "Nicolas Guilhot" <[EMAIL PROTECTED]>
To: "Php General MailingList" <[EMAIL PROTECTED]>
Sent: Friday, December 28, 2001 4:31 PM
Subject: [PHP] Only one instance of a scri
>From : http://www.php.net/manual/en/features.file-upload.php
HTH
Regards,
Andrey Hristov
- Original Message -
From: "Paul Roberts" <[EMAIL PROTECTED]>
To: "Andrey Hristov" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, De
PHP which
changed after that version."
If one of your boxes is 4.0.2 and the other 4.0.3 use the output of phpinfo() with
some kind of hack to determine wich one of the
function to use, or just write a wrapper which decides pipe to which function to make.
Regards,
Andrey Hristov
--
PHP
Brainbench?
Regards,
Andrey Hristov
- Original Message -
From: "clint " <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Friday, December 28, 2001 11:13 PM
Subject: [PHP] PHP certification
> Does anyone know if there are plans to offe
I think it is $HTTP_SERVER_VARS['HTTP_REFERER']
Regards,
Andrey Hristov
- Original Message -
From: "Kelly Meeks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 02, 2002 8:15 PM
Subject: [PHP] easy quickie..
Happy New Year,
Does p
Try array_unique()
Regards,
Andrey Hristov
--
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 administrators, e-mail: [EMAIL PROTECTED]
.
Inc.';
or better
select employee.* from employee left join companies using(company_id) where
company_name='Some Ltd Inc.';
I do not have links to literature about relational model but I remember that on
www.phpbuilder.com there is/are some info on it.I
think from y.2000.
Reg
That means the sql is not correct and the mysql_query()(mysql at all) didn't succeded
to execute it
Check you sql statement.
Regards,
Andrey Hristov
- Original Message -
From: "Gurhan Ozen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, Janua
try :
for ($i=0; $i < $num_results; $i++)
{
$some= $$GLOBALS["variable"];
// $some[$i] is what you need.
}
Regards,
Andrey Hristov
- Original Message -
From: "Rodney Davis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 07,
Ooops, no $$ before GLOBALS, single $
for ($i=0; $i < $num_results; $i++)
{
$some= $GLOBALS["variable"];
// $some[$i] is what you need.
}
Regards,
Andrey Hristov
- Original Message -
From: "Andrey Hristov" <[EMAIL PROTECTED]>
To: "Rodney Davi
Possibilities:
1)There was an error when mysql_query(). Possibly the SQL statement is not correct.
Trace with var_dump()/mysql_errno().
2)You give as parameter to some of mysql_* functions a variable not returned from
mysql_query().
HTH
Regards,
Andrey Hristov
- Original Message
ame']."";
}
Regards,
Andrey
- Original Message -
From: "Dan McCullough" <[EMAIL PROTECTED]>
To: "Andrey Hristov" <[EMAIL PROTECTED]>
Sent: Tuesday, January 08, 2002 7:00 PM
Subject: Re: [PHP] Supplied argument is not a valid MySQL result resource
> he
Try array_merge()
Regards,
Andrey Hristov
- Original Message -
From: "Marc Logghe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 09, 2002 10:55 AM
Subject: [PHP] unshift a key value pair
> Hi,
> I was wondering how you could unsh
is no set PHPSESSID cookie, so PHP WILL NOT have
$GLOBALS['PHPSESSID'] variable (assuming
register_globals is on in php.ini).
If you want the id. Get it from session_id().
HTH
Regards,
Andrey Hristov
- Original Message -
From: "Ryan Kelley" <[EMAIL PROTECTED]>
To
Probably here :
$header .= "User-Agent: PHP/4.0.6 (Apache/1.3.20)\r\n\r\n";
you have two new lines instead of one.
HTH
Regards,
Andrey Hristov
- Original Message -
From: "Sandeep Murphy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, Januar
Probably
1)You do echo before session_start()
2)You have white space before the opening
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 10, 2002 11:00 PM
Subject: [PHP] session related
> i can't use session, give me an error when use ie 6.
>
> Warning: Cannot send session cookie - headers alrea
also makes type comparison.
Regards,
Andrey Hristov
- Original Message -
From: "mike cullerton" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
Sent: Friday, January 11, 2002 5:01 PM
Subject: [PHP] RTFM code snippet
> hey folks, hope the ne
If you have file with name "0" , with
while ($file = readdir($dir)) {
it will be casted to false, but this is regular file. Thus !== is used.
Regards,
Andrey Hristov
- Original Message -
From: "mike cullerton" <[EMAIL PROTECTED]>
To: "php-general&qu
ource code untouched(no compiling on it).
It is interesting if one can make compiler for php to Java bytecode. I saw that there
is a such compiler for Ada.
Regards,
Andrey Hristov
- Original Message -
From: "charlesk " <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent:
IK the encoder first optimizes somehow the code and then encode it to make a
bruteforce attack harder to do.
Regards,
Andrey Hristov
- Original Message -
From: "Henning Sprang" <[EMAIL PROTECTED]>
To: "Andrey Hristov" <[EMAIL PROTECTED]>
Cc: <[EMAIL PR
What do you mean : "session persist"?
Whe you close the browser the file(the most common case) is not deleted till the
session expires.
So if the expire time is 30 min it will stay in the /tmp for minimum 30 mins(the
session garbage collector is not started on
every request). The cookie which is
Hi,
if you want to save an array and the structure is not known when you make the database
schema definition,
you have to serialize(), put the string in the DB, and when you restore it from the DB
do unserialize().
Best regards,
Andrey Hristov
"Back from the exams hellReady to help
(($m[0]=="-")&&($count<2))||($count++"0"))
this seems ok but
$count++"0"
is not OK. What you want to do?
Best regards,
Andrey Hristov
"Back from the exams hell"
- Original Message -
From: "brendan conroy" <[EMAIL PROTE
yn_var4
When you want to show them in the parsed html do:
$counter=0;
while(isset(${"your_dyn_var".$counter++})) echo ${"your_dyn_var".($counter-1);}
or
for ($tmp_count=0;$tmp_count<$counter;$counter++){ echo ${"your_dyn_var".$counter"};}
Best regards
And
you want to remove a char at position $x.
so
$the_string =
substr($the_string,0,$x).substr($the_string,$x+1,strlen($the_string)-1-$x);
you can do some juggling in the second substr() with negative values for the
parameters but they will not be more fast than this.
Best regards,
Andrey Hristov
This means that you do some output before calling session_start() or
session_register();
check for echo()s or blanks before
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 8:56 PM
Subject: [PHP] Sessions
> Hi,
> I try to use sessions to keep track if a user is logged in. I keep getti
till it is sent to the end user.
Best regards,
Andrey Hristov
- Original Message -
From: "James Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 9:02 PM
Subject: [PHP] Sessions
> Speaking of sessions, I was wondering if so
Maybe the content of the page is cached. Try to reload/to clear the cache of the
browser.
Best regards,
Andrey Hristov
- Original Message -
From: "Rodrigo Peres" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Saturday, February 16, 2002 4
Try this :
$d1=strtotime('d-m-Y',$str);
$d2=strtotime('d-m-Y',$str1);
var_dump($d2-$d1);
Best regards,
Andrey Hristov
- Original Message -
From: "Uma Shankari T." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 19, 2002
in 4.1.0 at least in a CVS 4.1.0-pre
version. Try with 4.1.x
Best regards,
Andrey Hristov
- Original Message -
From: "Nicolas BOUTET" <[EMAIL PROTECTED]>
To: "Andrey Hristov" <[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 3:57 PM
Subject: RE: [P
There is another php option about the lifetime. If a session is not used for some
amount of time it will be deleted when the GC
starts. GC starts wih some probability. For example GC can be started 1 time on every
100 request, then it checks if there are
expired sessions( not sure but maybe base
preg_replace('/\d+/','',$the_string);
Hope this helps.
Andrey
- Original Message -
From: "Andras Kende" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 4:29 AM
Subject: [PHP] str_replace question
> Is a nicer way to remove any number 1-0 from a string???
>
> "Arcadius A." wrote:
>
> Hello !
> I'm planning to write a database application for MySQL, and then port it to
> PostrgeSQL.
> Is there any library or class that could help me to write/maintain just one
> source code for both MySQL and PostgreSQL ?
Try the dbx extension.
Andrey
--
$pharray = array("php","the best language ever");
preg_match("/(?<=What is )(\w+)(?:\?)/",$question,$matches);
if (in_array($matches[0],$phparray)){
// your stuff here
}
Regards,
Andrey
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday,
Use preg_match_all('|
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 10:45 PM
Subject: [PHP] Extracting hyperlinks from file
> I need to produce an array of all the links(hrefs) in a remote file
> (actually those that refer to files in the same remote server, but thats
>
> another m
ooops
sorry
The correct is :
preg_match_all('/
To: "Ando Saabas" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 1:35 PM
Subject: Re: [PHP] Extracting hyperlinks from file
> Use preg_match_all('| var_dump($the_match
look at the mysql docs
at www.mysql.com/doc/
there are some functions about times. it is easy to work with time intervals.
Best regards,
Andrey Hristov
- Original Message -
From: "Sven Jacobs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 21
warning but probably
lose the second which is useful.
Best regards,
Andrey Hristov
- Original Message -
From: "Narvaez, Teresa" <[EMAIL PROTECTED]>
To: "'Sanduhr'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 6:05 P
Try with preg_match_all()
PCRE functions are up to 25% faster than POSIX(ereg).
Best regards,
Andrey Hristov
- Original Message -
From: "DigitalKoala" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 22, 2002 1:44 PM
Subject: [PHP] function that
Better is:
$index=0;
for (index=0; $index < $rowcount; $index++){
$formvar=${'formvar'.$index};
}
- Original Message -
From: "george Pitcher" <[EMAIL PROTECTED]>
To: "Michael Romagnoli" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, February 22, 2002 2:40 PM
Subject: Re: [
ID0015', 'Fourth row');
INSERT INTO some VALUES ( 'ID0023', 'Fifth row');
INSERT INTO some VALUES ( 'ID0026', 'Sixth row');
Try this sql on this table:
select * from some where id<'ID0015' order by id desc limit 0,1;
select * from
identificator do :
if ($res){
...
}else{ echo "something went wrong;";}
I think the problem is etiher the sql query is not successful or php cannot connect to
the mysql.
$db = mysql_connect("localhost", "", "");
the username is empty??
Regards,
Andrey Hristov
-
Did you restarted the Apache service?
Regards,
Andrey Hristov
- Original Message -
From: "Mike Brackenridge" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 22, 2002 7:00 PM
Subject: [PHP] imagecreate with Windows .exe installer
> php4
get all from the string which is between the tags and use the substring with eval();
Best regards,
Andrey Hristov
- Original Message -
From: "neko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 22, 2002 5:42 AM
Subject: [PHP] resolving php
Vulcan Logic SRM
www.vl-srm.net
Every your task is a banana.
Regards,
Andrey Hristov
- Original Message -
From: "Paul Roberts" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 23, 2002 1:05 PM
Subject: [PHP] fork?
how do i do two things
Use global. Read the docs about variable scoping.
If you use php >=4.1.0 then use $_POST, $_GET,... they not need to use global. Global
scope.
";
}
show("countries");
show("cities");
?>
Regards,
Andrey Hristov
- Original Message -
From: <[EMAIL PROTEC
In 4.1.x series there are new vars (global scope)
$_GET,$_POST,$_COOKIE,$_FILES,$_SESSION
not available in 4.0.x versions. For old scripts could be problem that
register_globals is off in the 4.1.x tree(for new
installations, not upgrades). But this is for good.
Regards,
Andrey Hristov
Try doing it by yourself.
$the_str = str_replace('"','\"',$the_str);
$the_str = str_replace("'","\\'",$the_str);
This is a little hack until you find what is the problem with addslashes();
Best regards,
Andrey Hristov
IcyGEN Corporat
Try unset($GLOBALS["var"]);
Best regards,
Andrey Hristov
- Original Message -
From: "Enrico Weigelt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 28, 2002 9:44 AM
Subject: [PHP] unsetting global variables from an function
>
its .= '0';
}
$topic_id = $leading_digits.$myrow[topic_id] ;
Best regards,
Andrey Hristov
- Original Message -
From: "Andy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 28, 2002 9:56 AM
Subject: [PHP] Inserting leading 0 infron
Hi,
Is there someone who knows good places with information about Web Services? Such as
SOAP, XML-RPC, WSDL etc.
TIA
Andrey Hristov
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
owned by andy:web . so identify fails.
Maybe my problem and yours have something in
commong.
try :
strace your_command_here
and see the output.
Best regards,
Andrey Hristov
- Original Message -
From: "Nicke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROT
When register_globals is on try this:
if ($open_why_good_consult){
}
Regards,
Andrey
- Original Message -
From: "John Fulton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 6:45 PM
Subject: [PHP] empty() & texarea
>
> I can't seem to get empty() to check if
It is in the TODO list of PHP. The behaviour will be changed in such a case.
You can get the string from $QUERY_STRING
explode it with $ar=explode('&',$QUERY_STRING);
and some other small things to get all stuff with same name in an array
Regards,
Andrey
- Original Message -
From: "Diana
Hi Erik,
I think that you look for array_count_values().
Regards,
Andrey
- Original Message -
From: "Erik Price" <[EMAIL PROTECTED]>
To: "John Fulton" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 6:58 PM
Subject: Re: [PHP] empty() & texarea
>
> On Friday, M
locate mysqld
whereis mysql
Regards,
Andrey
- Original Message -
From: "Sean Kennedy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 7:05 PM
Subject: [PHP] trouble with telnet.
Hello,
I telneted to my web server and I would like to see if they have MySQL. Is
I think - " no mysql is available"
what did "locate mysql" returned?
Regards,
Andrey
- Original Message -
From: "Sean Kennedy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 7:27 PM
Subject: [PHP] hmm.. more trouble with telnet.
Hello,
When I type in 'whereis
.cfm are ColdFusion files(like .php or .pl)
Regards,
Andrey
- Original Message -
From: "Sean Kennedy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 7:36 PM
Subject: [PHP] mysql and telnet.
Hello,
Thanks for the advice... But now I need to know what all this
check you php.ini if you need to change sendmail -t -i to something other.
Regards,
Andrey
- Original Message -
From: "andy thomas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 02, 2002 11:04 AM
Subject: [PHP] Bizarre mail() problem
> I have written a script to do
pcntl extension. But only *nix.
Best regards,
Andrye Hristov
- Original Message -
From: "Gaylen Fraley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 02, 2002 6:33 PM
Subject: [PHP] Threads and PHP
> Is it possible to use threads to perform an operation while anoth
Untared php 4.1.1 into /usr/local/src/php4.1.1
Untared apache 1.3.22 into /usr/local/src/apache-1.3.22
ran ./configure in apache
there is /var/www/bin/apxs
When configuring php : ./configure --with-mysql --with-apxs=/var/www/bin/apxs
--with-xml
error occurs that says either perl is not installed(
they are the
same as the parsed the date is valid, otherwise
not.
Best regards,
Andrey Hristov
- Original Message -
From: "Andy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 05, 2002 11:27 AM
Subject: [PHP] How to validate this date: 2002-02-31
array is generated in this way :
for ($i=0;$i<10;$i++){
$ar['foo'.$i] = 'bar'.$i;
}
Best regards,
Andrey Hristov
P.S.
There is in PHP's ToDo list such feature.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes.
If you know what is garbage collector then you will understand why it is
there. The GC is started from time to time and cleans expired session data.
Best regards,
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
On Thursday 07 March 2002 07:54 pm, you wrote:
> Firstly i creat
behaviour. Before it leaded to fatal error if some the file that has to be
required is not found. Now it works just like include (just notice or warning
- not sure).
For more info read the docs ar : http://www.php.net/
Best regards,
Andrey Hristov
On Thursday 07 March 2002 07:25 pm, you wrote
You can use a string to keep the file content. And then put it the
mysql(probably a BLOB field)
Best regards,
Andrey Hristov
IcyGEN Corporation
On Thursday 07 March 2002 11:30 pm, you wrote:
> hello everyone.
>
> i'm wondering if i can do the following:
>
> FIRST,
>
en if I use the standart foreach() statement PHP will have to
copy $ar[$k] to $v :)))
Best regards and fun with PHP,
Andrey Hristov
On Thursday 07 March 2002 08:48 pm, you wrote:
> On Thu, 2002-03-07 at 09:53, Andrey Hristov wrote:
> > The code below is too weird. I spent 15 min
ooops
On Thursday 07 March 2002 09:09 pm, Andrey Hristov wrote:
> try this:
> echo "foo".$i++;
> echo "\n";
> echo "bar".($+++0);
> ?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
array_count_values()
Best regards,
Andrey Hristov
On Friday 08 March 2002 04:45 pm, you wrote:
> Does anybody has a clever way to summarize the
> number of different words (with multiple occurences)
> from an array into an array with all the different words
> and the times
Read the docs. Look at the assertion part. ?= and the opposite of it.
Best regards,
Andrey Hristov
On Friday 08 March 2002 05:51 pm, you wrote:
> Hello!
>
> I use
>
> $txt = preg_replace("#(()|$search)#se", '"\2"=="\1"?
> "\1":&q
e extension tries to distinguish whether this is xmlrpc
packet or soap envelope.It is bad that the extension
is compilable only under Linux. There is no version for windows. I was forced to
switch to Linux to use it.
Hope that helps.
Best regards,
Andrey Hristov
On Monday 11 March 2002 06:52 am, you wr
AFAIK the problem is not afecting windows users. Because of that there is no windows
binary.
Best regards,
Andrey Hristov
- Original Message -
From: "Gabor Hojtsy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 9:42 AM
Subject: [PHP-DEV]
There was a discussion on PHP-DEV. Win32 binaries will be available soon.
Best regards,
Andrey Hristov
- Original Message -
From: "Marcel Besancon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 6:43 PM
Subject: [PHP] Installing PHP
1 - 100 of 321 matches
Mail list logo