Samuel Vogel wrote:
Hey guys,
Actually I'm still looking for a way to block for example the exec()
function without throwing an error!
Since there seems to be no way to do this, without hacking the code of
php, it seems like that is what I'll have to do...
Why do you have to do this and not
Samuel Vogel wrote:
Hey,
Thanks for the replies!
safe-mode is not an option unfortunately!
But changing the Error reporting, is the first thing I wanted to do, but
when I asked if this was possible on this list, somebody replied, that
it this is not possible!
Could you point me to a way, how
tedd wrote:
At 4:24 PM -0400 9/6/07, TG wrote:
The web server software has access to certain directories, but PHP
itself can
have access to things outside the main web folders.
That's good advice, but what do you do when safe_mode is ON?
My experience is that PHP can't access folders out of
Fábio Generoso wrote:
I have a little trouble while trying to connect to gmail server.
I already enabled POP on gmail.
After experience a lots of errors with the command below, now I'm
seeing no more errors, but it still doesn't working, the page stay
processing and just is broke after this comma
tbt wrote:
Hi
I'm a newbie to php and I'm using
require_once($_SERVER['DOCUMENT_ROOT']."/includes/class.announcement.php");
to import pages in php. This works fine on a windows environment. However
when I move this application to a linux environment the files dont get
imported properly. T
Julien Pauli wrote:
Hi, at first, read that bug report : http://bugs.php.net/bug.php?id=42065
I would like to say that it doesn't seem to be fixed as it's said.
When I execute the bug 42065 test case, it still fails.
In reality, another code brought me to that bug, please consider this :
http
Julien Pauli wrote:
Wow, all right ; that's why casting to (array) before passing the
variable , thus making a copy of it, works.
Thanks for that short but effective answer ;-)
However, except in the comments, this is not said in the original doc.
It should be written
ArrayObject ArrayObject::_
Andrew Prostko wrote:
Wow, it really must be late, Thank you for pointing out that missing
parenthesis
... 330am and now I can go to bed happy... TY VM
Ending Code for anyone listening:
Get PW from another .php page using:
What is the Password?:
This is the passwordcheck.php code:
You
Paul Scott wrote:
On Thu, 2007-09-20 at 09:54 -0300, Martin Marques wrote:
If not, you should just use the COPY command of PostgreSQL (you are
using PostgreSQL if I remember correctly) or simply do a bash script
using psql and the \copy command.
Unfortunately, this has to work on all suppor
And here is the dump of the $_FILES array (which, notably, reports
zero as the size):
[error] => 2
And also gives you an error code.
http://www.php.net/manual/en/features.file-upload.errors.php
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailin
As for MySQL, if the table that you are inserting to has any indexes at
all, then each time your insert/update completes MySQL will re-index the
table.
That'll happen for any database (I don't know that it really re-indexes,
rather it has to update the index instead).
Therefor, if you can
Peter Lauri wrote:
Hi,
In a current project we have developed a piece of software that run
independently and that only requires php5 as a CLI component.
Now we want to use this software on other machines, and the only requirement
it that the machine has php5 installed. Fine for now, but
magoo wrote:
Hi NG!
I wanna output several kinds of ascii files. Two things are bothering me
right now:
1. I don`t get the PHP starttag (tags. Is there anything I can to to get all of it?
2. How can I stop the browser to render HTML output, in order to get
plain ascii?
$string = file_get_c
rdpweb wrote:
Hi All
I am just converting the data from database to excel format.For that i am
using pack function of php . But i want some data to be in bold like
Employee Name = ABC
http://pear.php.net/package/Spreadsheet_Excel_Writer
It has support for doing this.
--
Postgresql & php tutor
Per Jessen wrote:
Stut wrote:
Indeed, but only if you're making a lot of repetitive queries to the
database.
Which is typically what a busy website does :-)
The query cache only works if you give it exactly the same query.
That is:
select blah from table where id=1;
if it changes to
se
The number of connections is presumably only important if we speak
about the number of concurrent connections. If each query can be
dealt with faster due to caching, the number of concurrent
connections should drop.
Err no - it still has to connect to the database (thus use a
connection slot)
Per Jessen wrote:
Chris wrote:
Err yes - a query replied to out of cache will take less time to
complete, therefore the connection will be given up faster, therefore
less _concurrent_ connections.
I guess my idea of concurrency is different to yours.
http://en.wiktionary.org/wiki/concurrent
Array ( [0] => Host not found (#11001): pop3.gmail.com )
So pop3.gmail.com doesn't exist.
http://pop.gmail.com:995/pop3%7DINBOX>',
'@gmail.com', ');
print_r(imap_alerts());
print_r(imap_errors());
$num_mens_not_read = imap_num_recent($mbox);
imap_close($mbox);
?>
I get these errors:
Warnin
Sebastian Dieser wrote:
Hi, we have been using the following codes on our site for a year and I wanted
to know if these codes are just spaghetti or its actual usable code. I know it
can be bettered a lot I just need opinions if the codes can be used a while
more until we reprogram everything a
Amos Vryhof wrote:
I'm writing a few very simple search scripts.
One searches in a few columns of a CSV file, while another just searches
through a collection of file names.
Currently, I just have it stripping illegal characters from the "needle"
and "haystack" then doing a substring search
Amos Vryhof wrote:
Ok, My example was pretty bad.
I was just looking for an easier/more optimal way to look for something
along the lines of
"word1*word2*word3*word4" rather than "word1 word2 word3 word4" as it
currently does.
Actually, I think I have an idea for a way to do what I want without
So is there a way to exit(); with some sort of code to put that message
back into the queue? I have read that I need to exit(75); but that does
not work. If anyone could help, that would be more than fantastic.
That's exactly what you need. What doesn't work exactly?
$ php -a
Interactive m
Robert Cummings wrote:
On Wed, 2007-10-03 at 14:49 -0700, Jim Lucas wrote:
This is only from my own personal testing. Mind you that I have only been using PostgreSQL for a
year or so. But one problem that I have always ran into with MySQL is that when JOIN'ing tables
that have large data sets
Robert Cummings wrote:
On Thu, 2007-10-04 at 11:23 +1000, Chris wrote:
Robert Cummings wrote:
On Wed, 2007-10-03 at 14:49 -0700, Jim Lucas wrote:
This is only from my own personal testing. Mind you that I have only been using PostgreSQL for a
year or so. But one problem that I have always
Yamil Ortega wrote:
Hi list, good day.
I have a simple script that inserts text on a mysql table, that has a field
named description and the type is text.
Everting works fine, except when I try to insert a text that includes a
simple quote.
For example
Yamil´s car
http://www.php.n
Don O'Neil wrote:
Are there any known security issues/concerns with compiling PHP with
imap/pop3 support? Such as hijacking php pages and relaying spam, etc...?
[ was posting this again a mistake or just impatience? ]
I'm not sure how opening an email inbox can hijack pages but maybe
someone
Aleksandar Vojnovic wrote:
I would also suggest to limit yourself to things you actually need not
to select the whole table.
In this case you can't because you're looking for records that exist in
one table that don't exist in another.
Apart from looking at the whole table in each case how e
Aleksandar Vojnovic wrote:
It seems you missed my point :) if you would need all the data then
select them all, but if you need only partial data from the table then
you could limit yourself to that specific columns. I doubt everybody
need everything all the time. True?
Ahh - you meant the se
Andrew Ballard wrote:
On 10/4/07, Chris <[EMAIL PROTECTED]> wrote:
Don O'Neil wrote:
I'm not sure how opening an email inbox can hijack pages but maybe
someone more creative than I can show me..
I don't know about the IMAP/POP3 itself, but if you are displaying the
mess
John A DAVIS wrote:
left join where item in right table is null
That's still going to look at all records in both tables:
1) so it can work out if there is a match from table 1 to table 2
2) so it can then remember to display any records that don't have a match
I was thinking more that if you
al jo wrote:
Hi i have a site that is relatively high loaded (~20 reloads/sec) and i am
trying to optimize it.
So i have started timing sections of the php scripts to find out which is the
slowest so i optimize it first. I write the times to a database( timings are done
on the live server)
Steve Finkelstein wrote:
Hi all,
I'm contemplating on a proper way of handling a counter for profile
views on my auto dealership website. I'm currently confused with the
type of algorithm to approach this with.
Say a user has a registered session, and views profile a). I can
increment the count
Hi I have a socket connection like so..
$sourceip = '84.234.18.16'; // ip you want to bind to
$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
socket_bind($sock, $sourceip);
socket_connect($sock, 'dac.nic.uk', 2043);
if ($socket === false) {
$errorcode = socket_last_error();
$errorms
Yes its a valid socket.
The destination only allows a max of 2 two connections at any one time. The
most likely
reason for lossing a connection is I exceed the 2 connection rule and then
it breaks and
spills out that error.
- Original Message -
From: "Instruct ICC" <[EMAIL PROTECTED]>
Hi Stut Ive tried your example but still cant get it to work.
- Original Message -
From: "Stut" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc:
Sent: Monday, October 08, 2007 5:26 PM
Subject: Re: [PHP] Socket how to die if connection broken
[EMAIL PROTECTED] wrote:
Hi I have a sock
Hi how would I trigger another script whilst the parent continues without
waiting for the second script
to finish. ie in the example below if db empty, start second script but also
continue closing connections
and exiting.
if(sqlite_num_rows($result) == 0)
{
// trigger another php script
sqli
Hi I got this error
Warning: socket_write() expects parameter 1 to be resource, null given in
/path/script.php on line 34
Thanks
- Original Message -
From: "Instruct ICC" <[EMAIL PROTECTED]>
To:
Sent: Monday, October 08, 2007 7:43 PM
Subject: RE: [PHP] Socket how to die if connecti
Sorry if I change it to..
if (false === socket_write($sock, $buffer))
rather then $s
if (false === socket_write($s, $buffer))
ie
if (false === socket_write($sock, $buffer))
{
echo "connection broken";
socket_close($sock);
exit;
}
I dont get that error
Warning: socket_write() expects paramet
You're using the wrong option.
Register globals is for the auto-creation of variables passed through
GET, POST, etc.
What you want is register_long_vars (or something like that, long
variables, long arrays...)
Chris
Rodney Courtis wrote:
Hi
I have installed php v5 on a windows
Jon Westcot wrote:
Hi David, et al.:
Thanks for the comment. I removed the trailing semi-colon in the two
areas where it was being sent to mysql_query() and tried the code again.
I'm still getting the same basic problem -- it silently aborts somewhere
around 22,000 to 26,000 records being p
Frank Lopes wrote:
I just started using PHP and got to think...
Without getting into the discussion of "best practices", strictly from
a performance perspective,
what is faster: a function or an include?
For example I have a block of text that needs to appear mutliple times
throughout the s
Ronald Wiplinger wrote:
My php program is working with Firefox, but not with Internet Explorer.
Nothing to do with php, your problem is javascript.
Is there a tool to find the problem?
For IE, try
http://www.microsoft.com/downloads/details.aspx?familyid=e59c3964-672d-4511-bb3e-2d5e1db91038
Khyron wrote:
I have tried this for weeks with no success, so I am asking for help
with this. Something seems really off with the PHP 5.2.4 build
process.
You might get more help on the php-install list rather than this one.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP G
Nathan Nobbe wrote:
On Nov 11, 2007 9:32 PM, Robert Cummings <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
On Mon, 2007-11-12 at 11:27 +1100, Chris wrote:
> Frank Lopes wrote:
> > I just started using PHP and got to think...
> >
&
Nathan Nobbe wrote:
On Nov 11, 2007 11:52 PM, Chris <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
As I said, it's a micro-optimization *shrug*. 0.0004 seconds difference
over 10 iterations - wow ;)
actually it was just one iteration; the output isnt very clea
Jamesas wrote:
I have the array by the following. i want to sort the array by name and
starlevel.plz help me i am troubled for it.
If this is coming from a database it would be easier to get the database
to do the sorting instead of trying to do it in php.
--
Postgresql & php tutorials
http:
The only question that remains for me is what's the difference between
Local and Master Configure values in php_info? Why two?
The 'master' value is straight from php.ini or the httpd.conf settings
(eg httpd.conf sets the open_basedir restrictions).
The 'local' value is after .htaccess chan
David Calkins wrote:
I'm attempting to "scrape" a web page to pull out some pertinent info.
The URL looks similar to the below.
http://www.someserver.com/user-info.xml?user=myusername
If I paste the above into my web browser, the page comes up and
displays the information. If I try "view sour
Radek Hladik wrote:
Hi,
I need to run remote command (by ssh), send it some data and receive
its output and return value. I could run command like
ssh [EMAIL PROTECTED] 'command' via proc_open or something like that. But I've
discovered ssh2 pecl-extension and I liked the idea of using ssh
Josh McDowell wrote:
I just recently installed apache 2.0 on my comp with php 5.2.5 aswell. Apache
is working and I am trying to get php to be configured into apache as a module,
I put the ini file in the load module so it looks like this:
#LoadModule vhost_alias_module modules/mod_vhost_alias
David Calkins wrote:
Its a big company. They provide the page to help people look up the
info, but I don't think I could expect support from them on it. I was
thinking it was some standard sort of thing, like maybe the way you
issue the HTTP request or some way of decoding an alternate document
mvh wrote:
on windows
Why not?
http://www.vim.org/download.php#pc
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jon Westcot wrote:
Hi all:
I'm having problems retrieving an array value that should be in a $_POST
setting. In fact, I'm having trouble with the code hanging with no warnings or
errors whatsoever, so I've got no clue why it's not working.
Working code:
if(isset($_POST["mls"]))
OK, I'm looking at the PHPEclipse site, and I've been here before: the current
Using PHPEclipse document lists the system requirements as PHP 5.1.2 or *below*,
and Apache 2.0 or *below*
Is that just badly out-of-date (last update is April 2007), or is PHPEclipse
really not able to support PHP 5.
Jon Westcot wrote:
Hi Mike:
you want javascript.
i'd recommend using jquery (jquery.com)
I'll look into this. Thanks.
put an id="username" on the username box.
then do
$(document).ready(function() {
$("#username").focus();
});
voila
Hmmm. It didn't work for me. Do I ne
Ronald Wiplinger wrote:
I added just into a input field"
19" enclosure
which was displayed from the database as:
19\" enclosure
That gives me some questions:
1. where the protecting slash comes from?
Probably magic_quotes_gpc
2. how can I get it away when I want to display that field?
Ronald Wiplinger wrote:
I am having troubles with the function file_exists()
I tried the full path like:
if (file_exists('/srv/www/../images/pic412.jpg') {
echo "";
} else {
echo " " //picture is missing!
}
No matter if I use the full path or just images/pic4
Ronald Wiplinger wrote:
Chris wrote:
Ronald Wiplinger wrote:
I am having troubles with the function file_exists()
I tried the full path like:
if (file_exists('/srv/www/../images/pic412.jpg') {
echo "";
} else {
echo " " //pictu
Philip Thompson wrote:
On Nov 14, 2007 3:20 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
Come to think of it - if there is a more basic 'newbie' forum list (for
PHP
beginners like myself) that anyone knows of (I found a few listed below) -
please let me know and I'll use that instead for th
Hayden Livingston wrote:
Hello,
I was wondering if this is possible? It seems in the apache mailing
list, that it is not possible per se, but any workaround thoughts?
If they say it's not possible I don't think you're going to get a
different answer here.
php_value include_path .:/libr
#1 email is only being sent to a few recipients.
I need to implement
$smtp = ‘localhost’;
Somewhere, but I keep getting parse errors?
Don't use fancy ms-word quotes, use the normal single quotes.
php mail() only uses the smtp config if you are sending on a windows
machine.
http://php
Brad wrote:
It makes sense, but the Bcc is still not making it through.
Try the examples here:
http://www.sitepoint.com/article/advanced-email-php
They also point out there could be a bug in php mail() where bcc needs
to be all caps or all lower.
Not sure if the smtp portion is correct ei
Working code:
Correction - non-working code ;)
'.$eol;
$headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = "\r\n";
This should be:
$headers .= 'Bcc: [EMAIL PROTECTED]' . $eol;
You need the EOL on the end.
Plus afaik in email headers it's \n not \r\n.
--
Postgresql & php tutorials
http://www.
Brad wrote:
For the purposes of this task, mailer is not an option.
This is a class assignment to put us into the weeds.
I am neck deep googling the heck out of this and finding snippets of
un-related code which do not fit.
Just because you can't use php-mailer in your project doesn't mean you
Hayden Livingston wrote:
Hello,
So I've been trying to compile PHP6 with MySQL 4.1.20 and it seems, I
keep getting compile errors. It complains for MYSQL_TYPE_VARCHAR.
Since php6 is alpha code, ask the -internals list.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General
Eventually, I wind up with a query similar to:
UPDATE table_01 SET field_a = 'New value here', updated=CURDATE() WHERE
primary_key=12345
Even though you've solved it one way to work out the problem here would
be to change it to a select query (unfortunately mysql can't explain
Richard Heyes wrote:
well if you take a string (filename) and wish to change the end of it
somone
then I don't think str_replace() is the correct function. what's to
say a script
doesn't exist called 'my.cfm.php'?
How does this:
/\.cfm$/
take into account that?
$ in regex's means 'end of
Ronald Wiplinger wrote:
If my user wants to logout, I want that the session will be destroyed
and that he must start with the first page again (index.php) and a new
session.
Whatever I try he always gets the old sessions or he does not come to
the first page.
What code do you have?
--
Postgre
David Christopher Zentgraf wrote:
Hi,
I want to offer visitors of my site the possibility of downloading
printable, foldable pocket guides for certain things that come out of my
database. The problem is that items will be entered into the database
very frequently, so I need to automate the pr
Al wrote:
I writing a script to fetch bounced emails from a dedicated mailbox.
$mbox = imap_open($addr, $user, $pw);
I've got a simple foreach(){
$bodyStr = imap_body($mbox, $num);
... $hdrStr = imap_fetchheader($mbox, $num);
>
Using 110/pop3 is incredibly slow.
Is it slow if you man
Gevorg Harutyunyan wrote:
Hi,
I am using Curl extension for my project.
Regulary I am fetching some pages from web using Curl.
Now I must create ban system for some IPs.
What does that mean? Don't fetch the pages on some ip's? Don't allow
some ip's to use curl? Something else?
--
Postgresq
In my solution, I use two scripts. One for showing the image true size
and another for generating a thumbnail -- I may be wrong, but I think
it's better to generate a thumbnail as needed on the fly than it is to
store both images (large and thumbnail) in the dB.
Cache it on the filesystem ev
[EMAIL PROTECTED] wrote:
I got different portions of code only used for certain purposes (who don't
;-)?). But what, in your opinion (better: in your experience) would be the
best regarding script-performance: Putting each code-portion in a separate
file and include it if required, putting it i
Hell, I'm all ok with this method... but does (different) webhotells take into
account the amount used with cache/temp files.
If so, some check should be used, and if not. Cache it all!, and remove the
timelimit, some check for the change of image of course, but that all depends
if you acctual
Out of curiosity, what SQL server (and version) are you using? I
currently have MySQL 5.0.33 on my dev box and I had no problem with the
query I gave you. Perhaps it's a version issue. There really shouldn't
be a problem updating a table that also occurs in the select query since
the select quer
Jeffery Fernandez wrote:
Hi all,
Is it possible to rewind a foreach loop? eg:
$numbers = array(0,1,2,3,4,5,6,7,8,9,10);
foreach ($numbers as $index => $value)
{
if ($value == 5)
{
prev($numbers);
}
echo "Value: $value" . PHP_EOL;
}
The above do
Jeffery Fernandez wrote:
On Fri, 30 Nov 2007 02:01:47 pm Chris wrote:
Jeffery Fernandez wrote:
Hi all,
Is it possible to rewind a foreach loop? eg:
$numbers = array(0,1,2,3,4,5,6,7,8,9,10);
foreach ($numbers as $index => $value)
{
if ($value == 5)
{
p
Sascha Braun wrote:
Hi Everybody,
I have a couple of foreach loops which are ending in a for loop,
which causes the apache to consume the complete memory of the
server system the php engine is running on.
The nesting level is at round about three and looking like that:
$num_new = 4;
if (is_arr
Nathan Rixham wrote:
Hi Guys,
Hoping somebody out there may have come across this one, possible
functionality request depending on responses.
$descriptor = array(
0 => array("pipe", "r"),
1 => array("pipe", "w"),
2 => array("pipe", "w")
);
$process = proc_open('mysql', $descriptor,
Javed Chauhan wrote:
Hello Friends,
As i am integrating Paypal pro (For CC) in my site. Our client has a
merchant account. We have a kit for paypal integration with client
'credential certificate'.
We are getting success and payment is completed.
We have a problem that shipping address is not
Per Jessen wrote:
Richard Heyes wrote:
another. This is one of the reasons abstraction layers exist.
Which brings us to alternative #3 - odbc.
That's probably less likely to be available than mysqli. If you're
targetting php5 then you could use pdo::mysql as well (and there's even
the l
Dan wrote:
First off I must ask, why do you need to run windows commands when you
don't even know how to use a PHP function.
That's a pretty extreme response - maybe the OP forgot the function name
or didn't know it in the first place.
There is a lot of stuff in php and there's no way anyone
Jochem Maas wrote:
Chris wrote:
Dan wrote:
First off I must ask, why do you need to run windows commands when you
don't even know how to use a PHP function.
That's a pretty extreme response -
maybe he's an extreme programmer :-P
maybe the OP forgot the function name
or di
OK then how about a STFW answer...
Google : php exexcute windows commands
I'm not sure what that particular phrase would produce ;) (surprisingly
- a few answers :P).
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
tedd wrote:
Hi gang:
Another mysql question.
I would like to create a temporary table to perform searches.
From my main table, I need to exclude records that have certain fields
that are null or empty; and then sort the final result.
Should be possible without a temp table I think..
I've
Robert Erbaron wrote:
OK, I've read every message on the list for the last year that contains
'sessions'. I've read through (bleary eyed, admittedly)
http://us2.php.net/session. And I swear, honest, that I had this working on
another box (which is no longer available to me.) I've checked phpinfo
Jim Webber wrote:
Hello I have a PHP4 server and I'm trying to figure out how to do
"implements" on classes. Is there an analogous way to do this without
PHP5 installed?
If you're using inheritance and child classes you could do it in a way, eg:
class parent_class
{
function x()
{
ech
abderrazzak nejeoui wrote:
can you help me to export data to a ms excel file using php. i tried to
export them to an html format and change the extension to .xls that's work
but i have lost the formatting
excel and the navigator doesn't interpret my code in the same why (celles
are not in the sa
Andrew Ballard wrote:
On Dec 18, 2007 4:58 PM, Jim Webber <[EMAIL PROTECTED]> wrote:
Hello I have a PHP4 server and I'm trying to figure out how to do
"implements" on classes. Is there an analogous way to do this without
PHP5 installed?
It isn't inheritance in the same sense as PHP5, but you
php mail wrote:
Hi All,
Is there any tool to profiling PHP app ?
http://www.xdebug.org/docs/profiler
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
M5 wrote:
On 20-Dec-07, at 1:17 AM, Per Jessen wrote:
René Fournier wrote:
I'm really not sure what to try next. ps -aux shows MySQL as hogging
the CPU, not PHP or Terminal:
When this happens, do a 'SHOW PROCESSLIST' in mysql to see what it's
doing.
I have, and I can't see anything unusu
Al wrote:
clearstatcache();
if(is_executable(PATH_TO_SOURCE_DIR . $filename)
{
code
}
Always returns true for:
foo.jpg
foo.php
foo.sh
And even if I feed it a non existing file.
Really?
file exists:
is exec:
Check the permissions on those files through ftp or ssh. Are they 755 or
are the
Sancar Saran wrote:
Hello,
I just wonder to how can I find a memory size of an array.
echo strlen(serialize($array));
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Wan Chaowei wrote:
> hello all:
> my boss want use zend framework with smarty. if i don't use view helper
> in smarty, it's easy to do it, but how can i use zend framework view
> helper in smarty?
Probably best to ask the zend-framework list(s):
http://framework.zend.com/community
--
Postgresql
Cyril Chacko wrote:
Hi,
I have created a class and passing a float value to a method in it. I
have checked the the argument values in the method. The passed
argument has the proper value. However, on any arithmetic operation
the float as a whole is rounded off.
http://php.net/float
There is a
steve wrote:
When configuring APC 3.0.16 I see this, which I don't recall seeing before:
checking dlfcn.h presence... no
configure: WARNING: dlfcn.h: accepted by the compiler, rejected by the
preprocessor!
configure: WARNING: dlfcn.h: proceeding with the compiler's result
checking for dlfcn.h...
Jan 5 13:52:02 server postfix/qmgr[7450]: 20EB589B68:
to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=none,
delay=0, status=deferred (delivery temporarily suspended: transport is
unavailable)
Which means it's a postfix problem and has nothing to do with php at all.
Ask on the post
I'm trying to help a friend migrate his application to php 5 from
another system. The problem seems to be that he references files
(require, include, etc) that have a .php3 extension, however there are
no files in those locations with the .php3. There are files with .php
extensions. It's r
I think you misunderstood. I have lots of file with things like
require "admin.php3"
But there is no admin.php3 anywhere. There is however a file admin.php.
Since this works on the old server then something on that system is
translating a request for a .php3 file to .php I'm guessing. Apach
steve wrote:
I have a dir of html files that link to websites, i would like to read the dir
and print a list of those files as a link. Which the script i have does. I
would like to take this one step further and replace the ".html" extension
with ".com" so it winds up being:
website.com instea
601 - 700 of 6456 matches
Mail list logo