Ernest E Vogelsinger wrote:
>
if ($_COOKIE[$_SESSION['cookie_name']] == $_SESSION['cookie_token']) {
Ok, please forgive my ignorance, but in PHP isn't $_COOKIES the same as
$_SESSION?. I thought it was if the user had cookies turned off (and
even if the user had cookies turned on come to t
Michael Sims wrote:
I 'm not where I can test this right now, but if a session is older
than session.gc_maxlifetime, isn't it invalid anyway? I.E. if I
bookmark a page on your site and then come back 3 hours later passing
an old SID, shouldn't that session have expired on the server by that
time
Michael Sims wrote:
Then I suppose it's just an added feature of the session handler I am
using. Maybe the OP should give it a shot, as I use it and I
definitely don't have a problem with expired sessions
I'll think about writing my own session handler as it can be quite
useful. However I nee
Cookra wrote:
Any help would be ideal
Some code would be nice. Youdidn't post any code so we have no idea what
your problem might be ... do you get an error message, or no results, or
the wrong results?
We don't even what what SQL query you are using ...
Jc
--
PHP General Mailing List
Ernest E Vogelsinger wrote:
No, that's a misunderstanding. Session var's are never passed to and from
the client, only the session _name_ is passed, either via a cookie
(PHPSESSIONID) or via trans-sid href encoding.
Thanks for clearing that up! I hadn't realized that only the session
name was
Justin French wrote:
What sort of stuff are you storing in the session that your are worried
about with too many writes?
Oh, this site is just your regular, run-of-the-mill, amazon.com copy.
For each open session I store up to 20 variables. It's not a lot, but
each access to a script means a
Hatem Ben wrote:
I'm looking to implement the huffman encoding in PHP, but i would like to
ask if it isn't already done ? (why reinventing the wheel)
You have highjacked someone else's thread. Not very nice of you
Please repost and start your own message thread ... highjacked threads
rar
My company wants to set up online credit card functionality and we are
thinking of going with a company called Veritrans (I believe they are
the japanese branch or cybercash for Verisign in Japan).
However they do not support PHP. They only offer kits for Perl and Java.
Unfortunately for me the
Antti wrote:
How can I count how many code lines I have written? I have many php
files in one directory. I'm using linux.Do you know any non-php way to
count the lines.
from a directory one level above where all your files lie do this:
(assuming all you files are in a directory called php)
#l
Matty Rozen wrote:
by using the 'curl' module, you can use any calls needed to any type of
scripts. you can use curl to "talk" with the cgi.
Ok, I'll look into CURL. If I understand their system, it is meant to be
called from a form so CURL might be applicable.
> let me know if you need more
On my web site there are some areas that I want to make accessible only
after a user has logged in (for example when placing an order, etc ...)
I have been able to achieve this however I have the following problem:
1- user logs in
2- user goes to restricted area
3- user views pages, orders an it
Tularis wrote:
I adives to make sure the browser doesn't cache it *at all*.
This can be done using (one, or more) of the following headers:
// HTTP 1.1 compliant:
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP 1.0
Justin French wrote:
I know it sounds simple, but try to analyse what other big sites are doing
in this situation:
That's exactly what I did, but I don't understand *how* they do it hence
my question.
I surfed some of the big sites and saw that they do not break when a
user hits the back but
Jason Wong wrote:
The cache-control directives are only supposed to be followed if the page was
to be _explicitly_ reloaded or refreshed. The BACK button (as specified in
the standards rfc something or another) is NOT supposed to reload or
refresh a page -- it is supposed to redisplay the
Markus JäNtti wrote:
You forgot the double quotes ... Should be:
if($_GET["test"] ...
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Bruce Levick wrote:
I am looking to populate a list menu with the current date and then the
30days after that current date. Is there a small snippet of code that
achieves this??
Hvae a look at date(), mktime() in the manual.
Here something that should help you get started, it is untested.
fun
Bruce Levick wrote:
That's sweet. Can you just satisfy my curiosity and explain the 86400??
I am thinking this might be minutes??
It the number of seconds in a day.
But that solution doesn't take into account Daylight Savings Time.
The one I posted does, I think ...
Jc
--
PHP General Mailin
How can I detect if my PHP script is about to time-out?
I would like to be able to detect a time-out and display a page with an
appropriate error message "i.e. the server is busy now, please try again
later".
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://w
Timothy Hitchens ) wrote:
Set up output buffering on your page then if the page times out the
buffer
should be sent to the browser and that is loaded with your message.
Ok. Is there another solution?
The reason I ask is that in order to use your solution I would need to
redesign my pages (qui
Greg Beaver wrote:
http://www.php.net/manual/en/features.connection-handling.php
Nice!
So if I understand correctly I need to:
1- register a shutdown function
2- have this function check if it was called b/c of a conection_timeout()
3- And if so have the function print out my timeout error me
Timothy Hitchens ) wrote:
Issue... as I said before the register shutdown won't work because:
- output from the shutdown is not visible nor do you have access to some
variables
You are right. From the manual:
http://www.php.net/manual/en/function.register-shutdown-function.php
" The registere
Pupeno wrote:
$oer = error_reporting(E_ALL & ~E_NOTICE);
$tpl->display("index.html");
error_reporting($oer);
but it still reports notices, any idea ?
Should be error_reporting (E_ALL ^ E_NOTICE);
See:
http://www.php.net/manual/en/function.error-reporting.php
Jc
--
PHP General Mailing List
Timothy Hitchens ) wrote:
There is one last option ... register an output buffer as I suggested
before suggested but this time do the reverse and you
don't have to rewrite your scripts:
Ok I think I understand what you are proposing. I just have one question
about your example code.
Where does
Timothy Hitchens ) wrote:
No you can't.. the issue with this is that you need to have error
reporting turned on.. so you will need to have
more error collecting or removing.
[..]
This isn't the best for a production env but this is the best I can see
considering you don't want to rewrite!!
Ou
I am trying to use a command line program in Linux using this form:
$result = `/path/prog $arg`;
But this doesn't work as the program is expecting and EOF that never comes.
If I use the program on the command line when I am finished entering all
the data I need to hit return and then CTRL-D to
Marek Kilimajer wrote:
$result = `echo | /path/prog $arg`;
should work
That didn' work ... don't know why.
Isn't there a way to say echo "EOF"?
There must be a way to specify the ascii or hex value for EOF in an echo
statement no?
Jc
--
PHP General Mailing List (http://www.php.net/)
To u
I also tried tried with popen with no success.
$fp = popen('/usr/src/bsfmdk/CCCallServer 2>&1', 'r');
fwrite($fp, $query);
$result = fread($fp, 8096);
echo "result is ";
echo "$result ";
I get back and empty result string ...
Any more hints?
Jc
--
PHP General Mailing List (http://www.php.net/
Marek Kilimajer wrote:
What prog is it anyway.
It is a credit card processing program. It is interactive. You can it,
type values in hit return, then ctrl-D and it spits out a status code.
If I put all the values in a file I can get the prog to work by doing:
#./prog < filename
It does not
I'm at wits end ... I've tried everything from system(), shell_exec(),
bacticks, popen() and still no go ...
I even tried writing the data to file first and then doing a
system("./prog 2>&1 < ./datafile") and that didn't work either.
I know that it shoudl work b/c if from the command line I iss
Ok, found the problem. The external program I was trying to run is only
happy is it is called from the same directory as the one it resides in.
I guess it needs to access files in it's directory and by calling from
php somehow it gets confused as to where to files are.
Thanks to everyone for th
Tamas Arpad wrote:
That's not right now. The manual is outdated. See this bug report
http://bugs.php.net/bug.php?id=15209.
This behavior was changed from 4.06 to 4.1. In newer versions of php the
registered functions will run before the connection is closed so ouptput can
be done from there as
Matt Vos wrote:
What is the ASCII value of an EOF? Find that and use
For the benefit of those reading this in the future the value is 4, so
use chr(4);
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Robert Fisher wrote:
If you are willing to do a rewrite, then have your
main script start a fork, or child process.
According to Arpi (see below) I can use register_shutdown(), as the docs
are wrong and it *will* send output to the browser *before* the
connection is closed.
Jc
>Tamas Arpad
[EMAIL PROTECTED] wrote:
I need to be able to just extract the number that is right Under
blocks in this example it is the number 57070. This was generated by
the quota -g groupname command.
Disk quotas for group site53 (gid 165):
Filesystem blocks quota limit grace files quota
Ysrael guzmán wrote:
This is correct?
location.href="page.php?=SID?>&cliente=$cli";
You have one small mistake here:
Erich Kolb wrote:
I am going to be dealing with a ton of data shortly and my goal is to make
it accessible via the web. I am curious about the performance differences
between using a database or leaving the data in the individual files they
originated in. Can anyone offer any recommendations?
I've written a script that uses proc_open() to call and external program
and capture it's output.
My script works fine as long as I call/use it in the directory where it
resides. But if I try to include() it in a script that resides in
another folder proc_open() return an exit value of 255. I c
I'm passing a var into a function which is a 16 digit number, but when I
try to print it out I get 1.111E+15 instead of the expected
11.
Why? How can I change this behaviour?
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
If this is for output to a web browser you can use nl2br to changed all
the line-breaks to 's ...
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Edwin wrote:
I guess it's because the number is converted automatically to an exponential notation if it goes over a certain number of digits--makes it easier to read...
I figured as much. But why? I found a solution by changing the precision
of floats in the php.ini file.
But I still find
- Edwin wrote:
[...]
As you can see, PHP didn't "touch" the string version...
True. My var is being passed in as a POST var so maybe that has
something to do with it ...
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm not sure how it's done exactly but I think the basic concept is to
have a daemon running, or have your program run by cron, and have the
program collect it's mail.
On Linux I think you can get your mail simply by fetching and parsing
the file /var/spool/mail/"username", where username is th
Tamas Arpad wrote:
There was a discussion about this topic on the dev list, and because of many
reasons the current functionality of register_shutdown_function() will remain
the same in future releases too. Joseph Tate is working on a new function
(apache_register_shutdown_function) to make it
Wilbert Enserink wrote:
I wanrt to display amounts like "2 products a ? 6,25 = ? 12,50"
Whatever I try I can't get the comma there (it's showing a point "." and it doesn't display the second number behind the comma i.e. "12.5"
Show us some code and maybe we can help. If you don't give any code
See Kok Boon wrote:
Sorry, I am abit dumb. Where is the archive that you refer to in your email?
The PHP archives. Go to the PHP web site and follow the links to the
mailing lists page. There you will find links to the archives.
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubs
Hi. I thought I had abstracted out the SQL querying part of my code out,
just to find out today that it doesn't work when it comes to
transactions. I had come up with this code:
function sql_query($sql) {
$conn = pg_connect("dbname=JC user=postgres");
$res = pg_exec($conn, $sql);
if (!$re
Jason Sheets wrote:
Manual Excerpt: " If a second call is made to pg_connect() with the same
connection_string, no new connection will be established, but instead,
the connection resource of the already opened connection will be
returned. You can have multiple connections to the same database if
To all who replied to my initial question ...
I actually did *not* have problems with transactions in the way I first
implemented my abstraction layer. In the case of PHP
"If a second call is made to pg_connect() with the same
connection_string, no new connection will be established, but instea
I'm not sure what you are trying to do exactly (i haven't been following
this thread) but if you want to analyze apache web logs try analog. It
can do everything and is *blazzingly* fast. I use on log file that are
10 Gb or greater ...
http://www.analog.cx
Jc
--
PHP General Mailing List (htt
You high jacked someone else's thread, probably because you hit the
"reply-to" button and just changed the subject line instead of posting a
"new" message.
Try posting again, creating a new message this time. You'll start your
own thread and will definitely get more answers ...
Jc
Christian S
Gamin wrote:
I have currently working a Red Hat 7.2 system that installs PHP 4.0.6
from the CD and it works fine. I want to upgrade to ver 4.3.0 what would be
the simplest way to do this without breaking any of the old modules etc. I
wont mind making changes to my scripts in case of changes
Michael Sims wrote:
My site has a custom error handler (implemented via set_error_handler)
which sends a nicely formatted email including all of the error
details, a variable dump, the contents of the output buffer before the
error occured, and the contents of a call to debug_backtrace, in
additi
[EMAIL PROTECTED] wrote:
I don't want to have to write 50 different ifelse statements unless I have to.
You can add all the boolean fileds in the query and not worry about
doing if's to check them, the DB will automatically find the fields that
match for boolean fields (just make sure to i
On my web server (Apache) I have two sites and I would like each site to
use a different php.ini.
What is the correct way for me to have each site use it's own php.ini
file? I figure it's a setting in the apache conf file but I can't figure
out which ...
Thanks,
Jc
--
PHP General Mailing Li
Timothy Hitchens ) wrote:
Inside each of the Virtual Host defs you can put most of the php_flag
etc settings just like:
Oops .. I forgot to mention that these two website do *not* have
different IP addresses. Actually these are two testing website on my
local LAN.
What I have is to have a di
Thanks to everyone for the suggestions. I finally got what I wanted by
doing it a directive in the httpd.conf file.
Thanks again!
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I don't want to start a flame-war here, just asking for specifics on a
question I have :)
I know that PHP and Apache 2 (on Linux anyway) have some problems
working together. I was just wondering, for my own education, why is that?
Is it a problem in Apache 2 or in PHP? (Not that I want to lay b
Henry wrote:
Apache2 now work with php in aspx (PHP is as a module)
Really!? I was sure there were still some issues ...
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Henry wrote:
what issues for example?
I do know I can successful install php in module with apache2.0.43 without error messages, also execution was successful
can you tell me what issues did you see?
A successful install means nothing.
My question is basically, does Apache2 work with PHP 100% o
Yasin Inat wrote:
it depends on you & your aim
Ok, to put it more simply,
Are there cases where something would work in Apache 1.3.27 + PHP that
would break in Apache2 + PHP??
A simple yes or no will suffice.
If the answer is no, I am curious as to why not ...
Thanks,
Jc
--
PH
Rasmus Lerdorf wrote:
Because the server doesn't work very well yet. There are issues in the
filter api and you can't really uses a threaded mpm as many of the
3rd-party libraries that are commonly linked into PHP are simply not
threadsafe.
Thank you! That's the kind of answer I was looking
Rasmus Lerdorf wrote:
No, you didn't understand correctly. I specifically said the thread
safety issues were in 3rd party libraries and not in PHP.
Sorry, I thought by 3rd party libraries you meant libraries that PHP is
dependent upon. Do you mean libraries used by PHP or Apache. And if
thes
Justin French wrote:
anyone got any links to decent tutorials on sql caching, and caching in
general?
A few questions:
At what level do you want the caching?
Are you talking about stored procedures?
Do you mean storing functions in the DB? (some DB's, like PostgreSQL can
compile functions onc
I've installed PHP and Apache countless times but it seems I have
forgotten something somehow because I can't for the life of me get
apache to install PHP as a static module. Argh ...!
I'm trying to get PHP 4.3.0, Apache 1.3.27, openssl-0.9.7,
mod_ssl-2.8.12-1.3.27 all working together but to n
Is there a simple way for me to programmatically know if an error has
occurred during my script? (besides from writing a custom error handler?)
I want to be able to know at the end of my script if any errors where
thrown and then show a simple message. I know that if the error is fatal
my scrip
I am trying to access the last error message using the superglobal
$php_errmsg. But trying to acess that var gives a "not defined" error ...
Running this script gives me:
ini_set("track_errors", true);
error_reporting (E_ALL);
$a = $php_errmsg;
die;
?>
Notice: Undefined variable: php_errmsg i
My mistake, spelling sold be php_error,sg.
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Found it, if track_errors is set then the last error is in
$php_errormsg. However be careful as the variable is initially not set
and doing a if ($php_errormsg != "") will resultin an error.
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.ph
Can anyone point to information on how to install mcrypt support for
PHP. I tried the PHP mcrypt pages but they are quite lacking in details.
I downloaded libmcrypt and got that installed fine.
I also downloaded mcrypt (do I really need it?) but that wouldn't
configure. It complains that:
chec
Do a "man crontab" to get info.
Or Google for turotials on how to use cron.
Also make sure that PHP is available from the command line. Do a simple
test, on the command line type:
php --version
If you get version iformation as output the PHP is installed for command
line useage and will work
Adam Voigt wrote:
Download MCRYPT SRC.
tar -zxf mcrypt.tar.gz
cd mcrypt
./configure --prefix=/usr/local/mcrypt
From the commands you give you imply that libmcrypt is not needed. Are
you sure?
The configure command you give does not work.
Here's the complete error:
[root@host110 mcrypt-2.6.3]
Tom Rogers wrote:
I did it this way
untar libmcrypt and mcrypt into /usr/src
then in libmcrypt
./configure --prefix=/usr (could be /usr/local if you want
make
make install
ldconfig
cd ../mcrypt-2.6.3
Up to here fine.
./configure --prefix=/usr
configure: error: "You need at least libmhash 0.
Jason Sheets wrote:
You need only libmcrypt, mcrypt is a command line program that is
intended to replace the Unix crypt program.
To build the mcrypt binary you need mhash and libmcrypt, for PHP unless
you want mhash you need only libmcrypt.
Ok, so to build mcrypt support into PHP I only need
Tom Rogers wrote:
Looks that way :)
I also have that in /usr/src and in php as
--with-mhash=/usr/src/mhash-0.8.17
Still no go. Did you compile into php 4.3.0? I finally got libmcrypt,
mhash and mcrypt to make and install, but can't get PHP to work with
--with-mcrypt OR --with-mcrypt=/usr/loc
I fixed my problem.
For archive purposes (as of PHP 4.3.0), to install mcrypt support you
only need to install libmcrypt. No need for mcrypt, or mhash ... forget
anything else you might read.
The installation problem I had was indeed a bug in PHP which I am happy
to say is fixed in the latest
I might be able to help you with support/customization of your
application depending on what kind of PHP application it is. I have a
great deal of experience programming with PHP and developing large
application.
Could you let me know what kind of application you have?
Jc
Michael McGlaughlin
Can anyone recommend a simple (and free) BBS module/software written in
PHP. preferably something that writes to a DB and preferably PoserSQL.
I would like to add some bulletin board functionality to my web pages
but don't feel like reinventing the wheel :)
Jc
--
PHP General Mailing List (htt
Moriyoshi Koizumi wrote:
Partially yes.
Strings encoded in GB2312(CP936), big5, Shift_JIS are known to be
clobbered by addslashes().
Sh*t ... and I just added a whole bunch of addslashes() to my code to
prevent SQL attacks. And of course my web pages are for Japanese ... and
most of them will b
Is addslashes() multi-byte safe?
I will bu sing it to escape multi-byte input and wouldn't want it to
mangle anything...
Thanks,
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
From an email. Reposting to to list for thos who might have the same
question later on :)
Moriyoshi Koizumi wrote:
>
> Oops, I should have said mbstring.encoding_translation=on actually :)
Ok. Turning that on.
>>In which case I am safe :) But then again anyone who would want to try
>>an SQL inje
Moriyoshi Koizumi wrote:
You can avoid this issue by configuring a PHP build
with --enable-zend-multibyte option and set mbstring.script_encoding to
SJIS.
Or better yet, make sure that all pages are in EUC-JP and use that for
internal encoding too, right :)
And also translate all user input to
superglobal for PHP
(and then I delete the source code)?
Any suggestions are welcomed!
Jean-Christian Imbeault
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Diksha Neel wrote:
$connection=mysql_connect("localhost","root","")or die("Could not
connect");
print "Connected successfully";
mysql_select_db("bdoi_change")or die("could not select database");
echo " $login "
The line above you give you an error ...
echo"
Login ID *
";
?>
There'
I have a login page with a form where users enter there login and
password. The form's action is "https://mysite.com/login.php";.
login.php authenticates the user and if the authentication is successful
it ends with a:
header("Location: http://mysite.com/welcome.html?a=b&c=etc...";);
The problem I
Cpt John W. Holmes wrote:
You'll have to output a message on the HTTPS page, like "Thank you, click
here to continue", otherwise there's no way around the message. It's a
client side issue, other browsers may or may not do it.
Yuck.
I see that Hotmail does something similar, You login though HTTPS
[EMAIL PROTECTED] wrote:
Why don't you just leave them in https? Is this a performance issue?
Performance and also the fact that (if I remember correctly) session
variables are not passed from http to https nor vice versa.
And more importantly any relative links in page will turn to https links
Jason K Larson wrote:
(B> I'm almost perfectly certain this *should* work ... can anybody shed
(B> some light on why it doesn't?
(B>
(B> $retval1 = ini_set ('session.use_trans_sid',false);
(B
(BJust a quick guess but isn't that one of the settings you *can't* change
(Bon the fly since it h
max-age=0
What does this variable mean and where was it set?
Any and all help appreciated!
Jean-Christian Imbeault
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am sure someone will call this heresy, but if you really want OO don't
(Bdo it in PHP. If you are new to OO and start with PHP you will do
(Byourself a grat disfavour. OO programming in PHP is still not ready. If
(Byou try and program in OO in PHP you have to learn all of it's
(Bshortcomings
Found somewhat of an answer here http://www.mnot.net/cache_docs/:
(B
(B"By default, objects processed by PHP are not assigned validators, and
(Bare therefore uncacheable"
(B
(BJean-Christian Imbeault
(B
(B
(B--
(BPHP General Mailing List (http://www.php.net/)
(BTo unsubscribe, visit: htt
me to either use a different php.ini file for my CLI
PHP calls or to tell PHP *not* to auto-prepend the file?
Thanks,
Jean-Christian Imbeault
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Miguel Angelo wrote:
(B>
(B> Is PHP capable of running on Apache 2.x and if so what version ?
(B> And is it stable ?
(B
(B
(BPHP will run on Apache 2 but ...
(B
(B#1 Apache 2 is multi-threaded whereas PHP is not. You need to turn
(BApache 2's multi-threading off.
(B
(B#2 Turning Apache 2
Jacob Vennervald Madsen wrote:
(B>
(B> php -c
(B
(BThanks!
(B
(BI hate to say it but this was actually in the manual :( I just didn't
(Bknow where to look ...
(B
(Bhttp://php.net/manual/en/features.commandline.php
(B
(BJean-Christian Imbeault
(B
(B
(B--
(BPHP General Mailing List (
Ivo Fokkema wrote:
(B>
(B> May I add this little note from the PHP installation txt file :
(B>
(B>
(B> ATTENTION: Apache 2 Users
(B>
(B>At this time, support for Apache 2 is experimental. It's
(B>highly recommended y
Jwulff wrote:
(B> How would I download any new files on a remote machine to my local one (in a
(B> specific folder) via ftp?
(B
(BAnd how does this relate to PHP? I can't see a PHP question in there ...
(Bif there is one please make it clear :)
(B
(BJean-Christian Imbeault
(B
(B
(B--
(B
Greg Beaver wrote:
> This statement isn't entirely correct, overloading is possible with the
> overload extension.
True. Nice work. But still a hack in my mind :) (though a *very* clean
hack).
Jean-Christian Imbeault
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
I am trying to download php-4.3.3RC2 from the PHP site but my connection
keeps timing out even before the download starts.
I'm guessing the main server is too busy? Does anyone know of any mirror
sites?
Thanks,
Jean-Christian Imbeault
--
PHP General Mailing List (http://www.php.net
he first argument, 'Maker::sGetNameId', should be either
NULL or a valid callback
Is it possible to use class functions as callback functions?
Thanks,
Jean-Christian Imbeault
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Peter James wrote:
> array_map(array('Maker', 'sGetNameId'), array("1") )
>
> Have a look at the callback type, here:
> http://www.php.net/manual/en/language.pseudo-types.php
Thanks! That did it.
Now if only PHP could treat class functions first-class citizens instead
of having making us jump t
", $b = "") {}
But that is such an ugly hack ...
Thanks,
Jean-Christian Imbeault
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 235 matches
Mail list logo