barophobia escribió:
Hi!
I was thinking about asking for recommendations for a lightweight database
class. But I realized I hadn't thought much about what my requirements are
so I decided instead to ask the list to critique my own class. I don't need
anything as robust as ADOdb and I always use
On Thu, 15 Feb 2007, Ashish Rizal wrote:
You need to put a session_commit(); here, so session gets writen.
header("Location: $adminAddress");
exit();
}
--
21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18
-
Lic. M
it to an HTML file.
The advantages are that it doesn't have to query database and generate
the HTML code again, but my question is: Is it good approach? Shouldn't
we optimize database instead of restoring the data on harddrive?
Thank you for ideas,
Martin Zvarik
--
PHP General Ma
Lauri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free
-Original Message-
From: Martin Zvarík [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 25, 2007 12:50 PM
To: php-general@lists.php.net
Subject: [PHP] PHP+MySQL website cache
I did a benchmark with and without caching to HTML file and it's like:
0.0031 sec (with) and 0.0160 sec (with database)
I know these miliseconds don't matter, but it will have significant
contribution in high-traffic website, won't it?
Martin
--
PHP General Mailing List (htt
in 300 files, can I?). So I decided to put the cache
in database table - For each URL Name (news/, products/ etc) a Cache
(which will be an array of all HTML blocks).
Martin
[EMAIL PROTECTED] napsal(a):
Quoting Martin Zvarík <[EMAIL PROTECTED]>:
I did a benchmark with and without c
Difference: You don't call file as http://www.myweb.com/ but instead you
use the path like c:\some.txt or ../some.txt etc.
PHP 5
=
echo file_get_contents("some.txt");
PHP 4
=
$fp = fopen("some.txt", "r");
echo fread($fp, filesize ("some.txt"));
fclose($fp);
Another solution
Is it posible to run apache with PHP4 and PHP5 on different virtual
domains?
--
21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18
-
Lic. Martín Marqués | SELECT 'mmarques' ||
Centro de Telemática|
e many HTML parsers out there if you
want to do more complex stuff.
Martin
---
M5 napsal(a):
I am trying to write a regex function to extract the readable (visible,
screen-rendered) portion of any web page. Specifically, I only want the
text between the tags, excluding any
steve wrote:
As a newbie, is storing an image in a dB a "good" thing or a "bad" thing?
I tend to go with "depends". We actually store files in a DB in
development, as those machines are separate from the grid. Since some
are windows, linux, and MacOS, it is far easier to store in a DB than
ha
Alain Roger wrote:
Hi,
It's amazing that my previous post has raised so much consideration about
the fact to store or not pictures into DB.
It was nice, wasn't it? :-D
However, none of those posts answered to my question... How can i retrieve
and display those pictures to my PHP pages ?
??
Robert Cummings escribió:
On Sat, 2007-03-03 at 11:02 +0100, Alain Roger wrote:
I know how to do that for 1 picture. But i want to display the pictures as
thumbnail... so several pictures on the same PHP pages, with some texts.
therefore, your solution does not correspond to what i need.
You n
On Sat, 3 Mar 2007, steve wrote:
Also, when you hit the 1024 image limit you have to think about
directory schema to store the images, as the linux filesystem (and also
on other 32 bit systems) will start getting slow, until things like ls
will just give you an error.
We have a system (I didn't
Robert Cummings escribió:
On Mon, 2007-03-05 at 14:48 -0500, markw@mohawksoft.com wrote:
Yea, and 1+1 = what ever the engineer or the business requirements want it
to be, right?
Once again it depends. What base are we working in? Are we working in
some kind of odd algebraic space? 1+1 only eq
Tijnema ! escribió:
On 3/7/07, Bruce Gilbert <[EMAIL PROTECTED]> wrote:
I just need to add code to print something different, say "foo" if the
output is a multiple of 5 or 10 for example. How do I go about doing
this?
I've seen that question a lot, what i use is fairly simple
if( intval($numb
Don Don escribió:
Hi all, i am building a system using php and am trying to separate the html
codes from the php codes (i.e. placing them in separate files), I am from the
java struts/spring background and seem to be finding it difficult doing that at
the moment with php.
I've got a regi
2007/3/10, Dave Goodchild <[EMAIL PROTECTED]>:
Hi guys, I have just read 'Programming PHP' (O'Reilly) and although I
think
it's a great book, I am confused about variable variables and references -
not the mechanics, just where you would use them.
The subject of variable variables is explained
Tijnema ! wrote:
Hi,
Is there any way i can limit the transfer speed when using CURL?
I'm uploading a file to a server, and i don't want the script to f***
up all
bandwidth.
man renice
P.D.: This is not a PHP question.
--
21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37,
tedd escribió:
At 8:14 AM +0800 3/12/07, [EMAIL PROTECTED] wrote:
Dear All,
What different between 4 and 5 ?
Edward.
1
No! -1 :-D
Unless we are talkaing about absolute difference (distance between).
--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
--
Robert Cummings escribió:
On Mon, 2007-03-12 at 10:21 +0200, Haydar Tuna wrote:
Hello,
Most important change is Object Oriented Features. PHP 5 support
Object Oriented programming features.
I think you mean supports "more" OOP features. PHP4 had plenty of OOP
support also.
But it wa
Robert Cummings escribió:
On Mon, 2007-03-12 at 14:18 -0300, Martin Marques wrote:
But it was quite crappy.
Don't blame the tool. I've never had a problem with the amount of OOP
support in PHP4.
That's just taste. I started feeling very comfortable when I got to us
Vieri escribió:
Hi
The following code:
Change here:
echo "A = " . (int)$a;
--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
-
Martín Marqués | Programador, DBA
Centro de Telemática| Administrador
bruce escribió:
Hi...
I know this is off topic.. I'm looking for a good Ajax Mailing list for Ajax
discussions. I've seen a few via google, but not alot of traffic.
Best I know of are the Mozilla JavaScript and DOM mailling lists.
There's an AJAX list, but I mainly use the JS one:
https://l
Dani Dws escribió:
I just want to know if the mail function works from a localhost (local
server)?
I've checked my php.ini all the setting are right but the mail function
is not sending any mail, any idea?
How are you using it?
--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
-
On Sat, 17 Mar 2007, Wasantha De Silva wrote:
Dear all,
I want get a help from you for some php codes.
Use google. There is plenty of code out there.
--
21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18
-
Lic. Martí
On Mon, 19 Mar 2007, Richard Lynch wrote:
The MySQL developers spent a zillion hours making the LAST_INSERT_ID()
function be tied to YOUR database connection.
You get *your* LAST_INSERT_ID(), not some random one from some other
database connection.
That's why http://php.net/mysql_insert_id ta
2007/3/20, Jochem Maas <[EMAIL PROTECTED]>:
Robert Cummings wrote:
> On Tue, 2007-03-20 at 11:52 +0100, Jochem Maas wrote:
>> ok, I tried it in a whole number of variations -
>> no joy.
>>
>> you should use php5 if you want this kind of reference
>> stuff - in php5 it just works, php 4 will give
2007/3/23, Jochem Maas <[EMAIL PROTECTED]>:
Martin Alterisio wrote:
> 2007/3/20, Jochem Maas <[EMAIL PROTECTED] >:
>
> Robert Cummings wrote:
> > On Tue, 2007-03-20 at 11:52 +0100, Jochem Maas wrote:
> >> ok, I tried it in a whole nu
On Tue, 27 Mar 2007, Mario Guenterberg wrote:
Hi...
I try to connect in the last hours and the results are timeouts.
Excelent connection here.
--
21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18
-
Lic. Martín Marqué
On 4/3/07, clive <[EMAIL PROTECTED]> wrote:
> Does anyone knows any IDE for PHP like VisualStudio.net?
Second the use of eclipse. Look at easyeclipse.org - they have all the
necessary plug-ins and add-ons in easy an easy to install package. Packages
available for Linux, Mac and Windows. Incl
2007/4/4, James Tu <[EMAIL PROTECTED]>:
I've cross posted this to the MySQL list...
Here's my original post.
> Is there some quick way to do the following in MySQL? (I know I
> can use PHP to search through the result set, but I wanted to see
> if there's a quick way using some sort of query)
I have a dilemma on a design where I humbly ask your help. I'm working on
the model part of a web application (not to be understood in the "web2.0"
way, but in a more general way, where anything mounted on HTTP is a web
application) done in PHP5 following the MVC design pattern. But the strong
poi
2007/4/8, Paul Novitski <[EMAIL PROTECTED]>:
At 4/7/2007 09:49 AM, Martin Alterisio wrote:
>The solution I presented is to access, and act upon, a database as if
they
>were PHP arrays, meaning that a table is presented as an array of
records.
This implies to me that you'll
Ólafur Waage escribió:
Lets say i have a login system. This system authenticates the user via
mysql, when the user is authenticated, i set a session variable to let the
system know the user is authenticated. ie. $_SESSION["authenticated"] =
true;
Lets also say i know that's how the system works,
Ben Liu escribió:
What's the prescribed method for redirecting a user forcibly to from the
non-SSL secured version of a page to the SSL-secured version? Is this
handled at the web server level or at the script level. I found this by
googling:
This should be done with the rewrite instruction o
Tijnema ! escribió:
On 4/9/07, Martin Marques wrote:
Yes:
Don't use transparent session id, or even better, save the
authentication in a cookie on the client (seperated from the session
array).
And then the user would crack the cookie
I know they are encrypted, but trust me, co
2007/4/9, Lester Caine <[EMAIL PROTECTED]>:
Martin Alterisio wrote:
> I have a dilemma on a design where I humbly ask your help. I'm working
on
> the model part of a web application (not to be understood in the "web2.0
"
> way, but in a more general way, where any
Tijnema ! escribió:
On 4/9/07, Martin Marques wrote:
So what? The user authenticated himself, so what is he gonna crack?
Yes, but i guess you're not only storing if the user has
authenticated, also storing a username?
And if that's not the case, then you could authenticate by
Davi escribió:
Sessions are stored in the temporary's server folder... So... If I known my
session ID and where it's stored, I can do something...
Have you tried it? I mean, as a non-root, non-apache user. :-P
--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
-
Tijnema ! escribió:
Who said firefox is legal? :P
I believe that what firefox can do is limited, some things that are
illegal are not possible. I don't know exactly what's illegal, i
searched for it a few years ago, and that's what i found then.
Explain how it would be illegal to modify cooki
Stut escribió:
As with most things these days it probably breaches the DMCA. But
frankly speaking, if doing that works then the developers of the
application, and by extension the company, deserve everything they get.
DMCA is a real piece of crap.
--
select 'mmarques' || '@' || 'unl.edu.ar' A
2007/4/9, Tony Marston <[EMAIL PROTECTED]>:
""Martin Alterisio"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I have a dilemma on a design where I humbly ask your help. I'm working on
> the model part of a web application (not to be
2007/4/10, Richard Lynch <[EMAIL PROTECTED]>:
On Sat, April 7, 2007 11:49 am, Martin Alterisio wrote:
> The solution I presented is to access, and act upon, a database as if
> they
> were PHP arrays, meaning that a table is presented as an array of
> records.
I don't
2007/4/11, Roman Neuhauser <[EMAIL PROTECTED]>:
# [EMAIL PROTECTED] / 2007-04-09 19:45:41 -0300:
> Thanks but that's not what I'm looking for. As I said before, my problem
> isn't to find an implementation of an ORM, but that the concept I'm
working
> on will use a very restricted API (array ope
g along these lines, but I wrote a much more efficient
> way to make sure I grab all the data of a known length...
>
> function readSocketForDataLength ($socket, $len)
> {
>$offset = 0;
>$socketData = '';
>
>while ($offset < $len) {
>if (($data = @socket_read ($socket, $len - $offset,
> PHP_BINARY_READ)) === false) {
>return false;
>}
>
>$offset += strlen ($data);
>$socketData .= $data;
>}
>
>return $socketData;
> }
> ?>
>
> If not all the data is obtained on a read, it will loop until the amount of
> data is the same as the length requested. This is working quite well.
>
> Thanks Bob and the others!
>
> ~Philip
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
socket related:
Does this solution work on both, blocking and non-blocking sockets ?
And what about different read method?
solution related:
Does strlen works fine with binary data?
Does this snippet work for sending/receiving multibytes strings?
--
Martin Scotta
of DB you can use, and if you use an open source alternative then it's
legal, that's mean you, or your client, do not have to pay for use it.
I'm not going to say *that* DB is better that *this* other, this is a matter
of taste.
--
Martin Scotta
/*<![CDATA[*/
// redirect by javascript (3)
window.location = '<?php echo $url ?>';
/*]]>*/
You are about to be redirected to in 2
seconds
Click here if your browser do not redirect automatically
It's recommended that your use a common redirect method in your site, this
is not mandatory but it is a good practice.
This simple script also helps to prevent session problems under some evil
web-server by closing the session before any output.
--
Martin Scotta
On Fri, Aug 28, 2009 at 10:39 AM, Ashley Sheridan
wrote:
> On Fri, 2009-08-28 at 10:34 -0300, Martin Scotta wrote:
> > Actually there aren't a safe way to make a redirect
> >
> > We have 4 alternatives (correct me if I miss anything) to do a safe
> > redirec
p;& $_POST['username'] != '')
> { ...
>
>
> >>
> >> I'm sure that this is not the best/recommended way to do this but I'm
> >> hoping someone here will point me in the right direction.
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
--
Martin Scotta
s by count( $_POST ) > 0 but this only applies for
application/x-www-form-urlencoded forms.
Other content-type will not populate the $_POST and therefore need to be
validated by other method.
PHP provides non-yet-standard HttpRequest class that can handle this
perfectly
--
Martin Scotta
er is not able to
navigate to private areas in both sites.
Avoid doing things like a form-post from SiteA to SiteB. This kind of things
only make holes to your application security system.
User credentials MUST not be handled at client-side. Keep them safetily at
server-side where you are who decide which action should be taken.
--
Martin Scotta
y el mutuo beneficio a través de "compartir
conocimiento" se realize semejante acotación; aunque mucho mas triste es que
una persona oficialmente perteneciente a dicha comunidad se sume a dicho
reclamo.
Please do not reply that It's a English based list.
Or is it allowed to discriminate here?
As a non-english speaker I feel very uncomfortable with this thread.
With the best intentions for the community, sincerely yours,
Martin Scotta
Spanish Speaker
$ARR = array(
'a' => array('b' => 'blah')
);
function set($key)
{
global $ARR;
foreach ($key as $i => $k) {
if ($i == 0) {
$sourcevar =& $ARR[$k];
} else {
$sourcevar =& $sourcevar[$k];
}
}
// unset($sourcevar); // w
Robert Cummings napsal(a):
Martin Zvarík wrote:
$ARR = array(
'a' => array('b' => 'blah')
);
function set($key)
{
global $ARR;
foreach ($key as $i => $k) {
if ($i == 0) {
$sourcevar =& $ARR[$k];
AHA !!!
OMG... how come I did not see that!?
Instead this:
$array =& $array[$final];
unset($array);
This:
unset($array[$final]);
3 AM in the morning... that must be the reason! .)
Thanks.
This is possible. You're just not giving enough consideration to your
exit strategy :)
array
explode($code)
{
$lines = array();
$buffer = '';
for($i=0, $len = strlen($code); $i<$len; ++$i)
switch( $code{$i} )
{
case "\r":
case "\n":
if( $i+1 == $len )
break 2;
if( "\r" == ($next = $code{ $i+1 }) || "\n" == $next )
{
++$i;
}
$lines[] = $buffer;
$buffer = '';
break;
default:
$buffer .= $code{$i};
}
if( '' !== $buffer );
$lines[] = $buffer;
return $lines;
}
--
Martin Scotta
ing types while
comparing values.
$a = 'false';
$b = true;
var_dump(
$a == $b, # <-- true
$a === $b # <-- false
);
This happens because values are converted before comparison so, 'false'
becomes true.
PHP converts everything different to an empty string as *true*
This also affect any type of variable.
--
Martin Scotta
tp://www.ashleysheridan.co.uk
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I think php convert the boolean variable to string before print its content.
That's why...
echo true; # prints '1'
echo false; # does not prints anything, or prints ''
$bool = false;
var_dump(
(string) $bool,
(int) $bool
);
--
Martin Scotta
hleysheridan.co.uk
>
Unless you store the object state your application will not be able to
remember it.
There is a design pattern specially designed for this, the Memento Pattern (
http://en.wikipedia.org/wiki/Memento_pattern)
There are many ways to persist an object: sessions, xml, text files,
databases.
Pick the one that fits better and you'll be fine.
--
Martin Scotta
ide effect but in other situations it really
matter.
Does these behaves exactly?
for($i=0; $i<10; ++$i)
for($i=0; $i<10; $i++)
There is no side effect on the incremental section because the result is not
evaluated.
and what about these?
$array[ $index++ ] = $elem;
$array[ ++$index ] = $elem;
You can read more about the side effect at
http://en.wikipedia.org/wiki/Side_effect_%28computer_science%29
--
Martin Scotta
tabase engine => change the
loader/persister.
You need to add/remove/modify some new rules in your business logic =>
change the models
Why don't you allow the view to use the model?
This way you have...
# the controller is responsible to instantiate the model(s) and view(s)
# the model is responsible for the business logic
# the view is responsible for the presentation
--
Martin Scotta
Ben
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Martin Scotta
-is-what.com
> > http://gibberish.co.il
>
>
> Not that I know of, and trying to explain any sort of code over the
> phone is just going to lead to a disaster down the line!
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
--
Martin Scotta
On Thu, Oct 22, 2009 at 8:40 AM, Thodoris wrote:
>
>
>>
>>> I don't think it is about readability:
>>>
>>> $arr[3] = 'test';
>>> $test = 3;
>>>
>>> //This prints "$test"
>>> echo "This doesn't work: $$arr[3]";
>>>
>>> //This prints 3
>>> echo "This works: ${$arr[3]}";
>>>
>>> Using the same type
le, it's public properties are used
on the loop.
foreach($object as $prop => $value )
//php translates the foreach into something like this...
foreach(get_object_vars($object) as $prop => $value )
--
Martin Scotta
ss Beer extends Bar {}
Class Pier extends Bar {}
function get_subclasses($class)
{
$sub = array();
foreach(get_declared_classes() as $name )
{
$rClass = new ReflectionClass($name);
if( $rClass->isSubclassOf( $class ))
{
$sub[] = $name;
}
}
return $sub;
}
print_r( get_subclasses( 'Foo' ));
print_r( get_subclasses( 'Bar' ));
--
Martin Scotta
>
Just having FUN, do not take me serious : )
function getInstanceRandom()
{
$classes = get_declared_classes();
$index = array_rand( $classes );
return new $classes[ $index ]();
}
$obj = getInstanceRandom();
echo get_class( $obj );
This is way you NEVER know which class you will instantiate!
--
Martin Scotta
On Tue, Oct 27, 2009 at 9:30 PM, Raymond Irving wrote:
> Hi Martin,
>
> This works great but I was hoping that I didn't have to loop through
> get_declared_classes to find the sub class.
>
> Is there a way to get the subclasses using Reflection? For example:
>
> $
ow WHERE *show_id = '$id'*;";
> $result3 = mysql_query($query3) or die('Record cannot be located!' .
> mysql_error());
> $row3 = mysql_fetch_array($result3);
> $show_id = $row3['show_id'];
>
> How do I select the item I just inserted to obtain the ID number??
>
mysql_insert_id <http://ar.php.net/manual/en/function.mysql-insert-id.php>
mysqli->insert_id <http://ar.php.net/manual/en/mysqli.insert-id.php>
--
Martin Scotta
hen $data's value is evaluated (to
> true or false), or is the actual assignment tested (does the assignment
> fail, etc)?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
The code is interpreted this way...
$data = somefunc();
if ($data)
--
Martin Scotta
echo 'Anonymous';
> }
>
> ?>
>
> Cheers,
> Rob.
> --
> http://www.interjinn.com
> Application and Templating Framework for PHP
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
&g
ething';
> >
>
> Or the simplist approach is to define at constant at app initialization
> and use it:
>
> echo 'Something';
>
> --
> Thanks!
> -Shawn
> http://www.spidean.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Martin Scotta
et/get_included_files
>
> --
> Larry Garfield
> la...@garfieldtech.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
You can use the tokenizer's functions to parse the files and recover the
information.
They are easy to understand and make the perfect tool for this kind of
scenario.
I'd like to know how do you solve this.
cheers
--
Martin Scotta
ust finishing testing against 5.2.10 down to 5.2.4. I am not sure how
> many people are still using versions between 5.2.0 and 5.2.3
>
> I would like to know those ones too
>
> --
> "Good Enough" is not good enough.
> To give anything less than your best is to sacrifice the gift.
> Quality First. Measure Twice. Cut Once.
>
Hi!
I develop for 4.3.10 and 5.2.6 at work.
At home I use 5.2.9, it was installed by xubuntu
Our hosting providers have 5.2.0 or 5.2.4
--
Martin Scotta
ou can use any text editor.
I use SciTE. It is free and open source.
It does not provide any tool of any kind. It just allow me to write code,
and that's all I need.
Also there are a lot of tools for development.
And IDE is just a fat text editor with lot of tools on it, and in some cases
it can make your development slower.
You can improve your development with a set of lightweight tools, this is
the linux style.
--
Martin Scotta
but I find this works quite well:
>
>
>
> The way you are hiding the actual link URL will work for people who
> navigate solely with their mouse, but you might want to add an onfocus()
> handler in there as well for people who tab between links.
>
> At the end of the day though, none of this will stop someone from
> viewing your source code for the link, or using a browser plugin like
> Firebug to determine what it is.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
Why I will let you to hide things on my browser?
The browser is mine...
--
Martin Scotta
..
>
> ...
> foreach($_FILES[' UPLOADIMAGE3 '] as $file_name => $file_array) {
> ...
>
> Thanks for reading!
> Matt Cheezoid
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Your foreach does exactly what you are asking.
foreach($_FILES as $file_name => $file_array)
The keys in $_FILES are the in your form.
If you have 3 files... then count( $_FILES ) should be 3
--
Martin Scotta
> revealing unrelated with the class.
>
> Anyway, I am not upset. I am just sorry that you made many criticisms
> without giving real examples to demonstrate your points. That way it
> will not be helpful to anybody.
>
>
> --
>
> Regards,
> Manuel Lemos
>
> Find and post PHP jobs
> http://www.phpclasses.org/jobs/
>
> PHP Classes - Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Martin Scotta
Mess
Dne 27.2.2010 5:01, clanc...@cybec.com.au napsal(a):
A week ago Dasn asked a question about converting arrays, and I quoted one
possible way of
achieving his task, using the operation:
$i = 0; while ($i< $k) { $b[$a[$i++]] = $a[$i++]; }
I added the comment that "I have always been war
Hello,
I am using PHP 5.3.3 compiled as PHP-FPM.
My Apache is using mod_fastcgi to connect to PHP-FPM and everything works as
expected.
Unfortunately I don't know how to forward request http://localhost/status to
PHP-FPM so that I will see the status page of PHP-FPM.
I found only NGINX configurati
store
directories or the use a different header for sending the file?
If someone has a working solution let me know.
Best Martin
On Oct 8, 2010, at 17:18, TR Shaw wrote:
> I don't have any problem in this regard.
>
> On Oct 8, 2010, at 11:09 AM, Nathan Rixham wrote:
>
>
mething about binary
data, or is PHP's pack/unpack functionality indeed lacking? And, if the
pack and unpack functions are indeed lacking, is it possible to handle
binary data without those functions?
Thanks,
Justin Martin
<>
--
PHP General Mailing List (http://www.php.net/)
Sorry, I had forgotten that attachments weren't accepted on the list.
My code can be found at http://pastebin.com/6nmR67c3.
The test NBT can be found via the NBT specification link.
Thanks,
Justin Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
ed it, but you could also simply try using
ZipArchive::addFromString without deleting the file first. It may just
overwrite the file.
Thanks,
Justin Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
but what's evident is that your script is eating memory.
Thanks,
Justin Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
passed
parameters automatically converted to arrays in PHP?
Thank you for any tips,
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
not have to be the same.
Thank you, I thought it should be the same (for same reason, maybe
compatibility between XHTML and HTML). But could not find anything on
the net which states this. So my memories might be corrupted :)
Based on first tests, it works (but have not checked the W3C validato
not have to be the same.
Thank you, I thought it should be the same (for same reason, maybe
compatibility between XHTML and HTML). But could not find anything on
the net which states this. So my memories might be corrupted :)
Based on first tests, it works (but have not checked the W3C validato
must be identical."
Confusing, the "name" attribute on a form field ("input", "textarea",
"select", etc) is different to the "name" attribute on a "a" or "form"
element, so this rule does not apply to it.
Thank you, Benjamin
I second this - great to see both finally available. Fantastic release!
Martin Amps | CIO
www.iCracked.com
iCracked | Redwood City, CA
On Jun 21, 2013, at 2:01 PM, Julian wrote:
> Awesome work and the new design for the php.net website is also nice ;)
>
> Am 20.06.2013, 23:22 Uhr
sqli.default_socket to the same
as the mysql.default_socket. I can't tell you what the default for your
system is, but there are php functions to get configuration options, if
you don't have it in any obvious places.
Cheers,
--
- Martin Norland, Database / Web Developer, Internatio
l you what the default for your
system is, but there are php functions to get configuration options, if
you don't have it in any obvious places.
Cheers,
--
- Martin Norland, Database / Web Developer, International Outreach x3257
The opinion(s) contained within this email do not necessarily represent
I have a script that lists the files in a directory, but when i have
only ONE file , it won't display it ( here is the code :
http://www.pastebin.com/262050 )
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and if they type mysite.com to display the page.
I'm guessing it should be something like this : if ( refferer =
mysite.domain.com ) { redirect to mysite.com } else { my html code }
P.S: I need this because I don't want google to think it's a duplicate
site.
Thank you,
Alexandru
How can I remove duplicate values from an array ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a page that receives data from a form. Using $_POST['foo'], I am
able to use this data in the page but I continually receive an error
notice (PHP Notice: Undefined index: foo in
/Library/WebServer/Documents/.. etc).
This happens to all three indices that are passed by this form, yet t
do else?
Any hints are welcome, cheers
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
TCP send buffer could even result in an increased number
of tropped TCP packages ...
Thanks (I was not aware of that directive)
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
4 hours = 60 * 60 * 4 = 14400
Mario de Frutos Dieguez wrote:
pete M escribió:
I'm trying to figure out out to put a directive in .htaccess to make
the session timeout in 4 hours ..
tried
php_flag session.cookie_lifetime 240
and a few others
can someone help !
tia
Try ini_set("session.gc_maxlifeti
and try php_value instead of php flag:
php_value session.cookie_lifetime 14400
Martin Mandl wrote:
4 hours = 60 * 60 * 4 = 14400
Mario de Frutos Dieguez wrote:
pete M escribió:
I'm trying to figure out out to put a directive in .htaccess to make
the session timeout in 4 hours ..
tried
php
1401 - 1500 of 1967 matches
Mail list logo