2007. 10. 19, péntek keltezéssel 11.33-kor Jay Blanchard ezt írta:
> [snip]
> function solution1($var1){
> // some code
> }
>
> function solution2($var2){
> // some code
> }
>
> function solution3($var3){
> // some code
> }
>
> if ($function == 'solution1' or $function =
I see reading the online docs that I'm supposed to go:
socket_create...
socket_bind...
socket_connect...
I've never used the bind function and it hasn't seemed to make any
difference? I've always just done socket_create() and then
socket_connect(). What benefit is there to putting a socket_bind
On Thursday 18 October 2007 09:59:16 Nathan Nobbe wrote:
> On 10/18/07, Zoltán Németh <[EMAIL PROTECTED]> wrote:
> > 2007. 10. 18, csütörtök keltezéssel 12.56-kor Matt Arnilo S. Baluyos
> >
> > (Mailing Lists) ezt írta:
> > > Does Eclipse already have word-wrap?
> > >
> > > To my disappointment, it
On Friday 19 October 2007 12:49:50 Sascha Braun | CEO @ BRAUN Networks wrote:
> Hi everyone,
>
> I am using the rename function on my local development
> system fine. But as soon as I upload the script, the
> rename function does not work anymore.
>
> Is there a specific compiler flag needed, to ma
On Friday 19 October 2007 10:34:28 Ronald Wiplinger wrote:
> I have a form, where I upload a picture and a corresponding text.
this far I'm with you
>
>
> Is it possible to have a form (upload picture) within a form (text)?
> As I have it now, the submit button just does nothing.
here you escap
Jochem Maas wrote:
Stut wrote:
Say you have a function that builds a fairly large array and then
returns it. If you just return it as usual PHP will make a copy of that
array and therefore use twice the amount of memory than it needs to.
php has something called 'copy on change' so until an at
Stut wrote:
...
>
> Say you have a function that builds a fairly large array and then
> returns it. If you just return it as usual PHP will make a copy of that
> array and therefore use twice the amount of memory than it needs to.
php has something called 'copy on change' so until an attempt to
try seeing what json_encode() creates:
$json = "json";
$data = array(
"no_1" => $json,
"no_2" => $json,
"no_3" => $json,
"no_4" => array("foo" => $json, "bar" = $json),
);
print_r({"{$json}_encode"}($data));
Christoph Boget wrote:
> The string used below in "$myAr
On 10/19/07, Jochem Maas <[EMAIL PROTECTED]> wrote:
>
> Christoph Boget wrote:
> > The string used below in "$myArrEncoded" is generated in javascript,
> after
> > creating the structure and spitting out:
> >
> > var JSONVar = javascriptVar.toSource();
> >
> > I can eval JSONVar and work with it as
Christoph Boget wrote:
> The string used below in "$myArrEncoded" is generated in javascript, after
> creating the structure and spitting out:
>
> var JSONVar = javascriptVar.toSource();
>
> I can eval JSONVar and work with it as I would be working with the original
> javascriptVar so I know the
On Fri, 2007-10-19 at 13:31 -0700, Instruct ICC wrote:
> > I want to prohibit an image from being shown to anyone who is not
> > permitted (i.e., logged in).
> >
> > The way I want to do this is to:
> >
> > 1. Set [file] permissions...
>
>
>
> What if 2 or more users access the application at
> but in the img tag, try src="display_image.php?id=anId"
> and in display_image.php, test if the user is authorized before displaying
> the image.
> Then a direct call to display_image.php?id=anId would still have a chance to
> authenticate the user.
Forgot to reiterate:
Keep the images where
> Hi gang:
>
> I think I found a solution.
>
> Here's the url:
>
> http://www.webbytedd.com/bbb/image-test1/
>
> The point is that the image is only accessible via this script, is
> this correct?
I can access it without a script:
http://www.webbytedd.com/bbb/image-test1/images/a.jpg
It may
> I want to prohibit an image from being shown to anyone who is not
> permitted (i.e., logged in).
>
> The way I want to do this is to:
>
> 1. Set [file] permissions...
What if 2 or more users access the application at the same time?
Set the permissions so only the PHP application can acces
> > > When I run the command on the server itself, it
> > > works just fine. When I run the same command via a webpage, the text file
> > > does not generate.
> >
> >
> > I also have a similar problem but reversed. It works in a webpage but not
> > on the command line.
> > mysql_connect, mssql_c
On Sat, 2007-10-20 at 01:36 +0300, Marek wrote:
> I have a simple directory listing script - you can move up and down
> directories and it shows the files/dirs inside. Now I have to figure out
> a way to display the latest modification time for each directory.
>
> The problem is that filemtime() w
I have a simple directory listing script - you can move up and down
directories and it shows the files/dirs inside. Now I have to figure out
a way to display the latest modification time for each directory.
The problem is that filemtime() works only if the modifications are done
on the first level
On Fri, 2007-10-19 at 09:48 -0700, Kevin Murphy wrote:
> I'm trying to create an advanced search feature for my site, and I
> have it mostly working the way I want. I take whatever search term
> ($searchkey) that the user submits, explodes if off any spaces
> between words, and then use that
yup! it works perfect.
obviously, it's MY fault.
:-)
thanks stut
-afan
Stut wrote:
> afan pasalic wrote:
>> actually, what example you are talking about? I got jay's example only?
>
> http://dev.stut.net/php/varfunc.php
>
> -Stut
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
Go here and get charprobe http://www.dextronet.com/charprobe.php It's a super
utility to have.
Look up the hex code for a space, "/x20" as I recall.
Then pick a non-printable code that you like e.g., /x83 or a printable one that
users cannot enter.
Then simply preg_replace("%/x20+%", "/83",
afan pasalic wrote:
actually, what example you are talking about? I got jay's example only?
http://dev.stut.net/php/varfunc.php
-Stut
--
http://stut.net/
Stut wrote:
afan pasalic wrote:
why then the code doesn't work?
the error I'm getting is: "Fatal error: Call to undefined function
solu
actually, what example you are talking about? I got jay's example only?
Stut wrote:
> afan pasalic wrote:
>> why then the code doesn't work?
>> the error I'm getting is: "Fatal error: Call to undefined function
>> solution1() in ..." even the function itself is just above the line that
>> calls f
Stut wrote:
> afan pasalic wrote:
>> why then the code doesn't work?
>> the error I'm getting is: "Fatal error: Call to undefined function
>> solution1() in ..." even the function itself is just above the line that
>> calls function?
>
> I can only guess that you're not showing us the code you're a
On 10/19/07, Philip Thompson <[EMAIL PROTECTED]> wrote:
>
> On 10/19/07, tedd <[EMAIL PROTECTED]> wrote:
> >
> > Hi gang:
> >
> > I think I found a solution.
> >
> > Here's the url:
> >
> > http://www.webbytedd.com/bbb/image-test1/
> >
> > The point is that the image is only accessible via this scr
afan pasalic wrote:
why then the code doesn't work?
the error I'm getting is: "Fatal error: Call to undefined function
solution1() in ..." even the function itself is just above the line that
calls function?
I can only guess that you're not showing us the code you're actually
running. See the
why then the code doesn't work?
the error I'm getting is: "Fatal error: Call to undefined function
solution1() in ..." even the function itself is just above the line that
calls function?
-afan
Stut wrote:
> Jay Blanchard wrote:
>> I don't think you can put a function name in a variable and cal
Yes, I'm from NetBeans, that "Java" IDE. But we're actually thinking
very seriously about PHP for the next release of NetBeans. I know
emacs and vi are pretty darn good tools, but we're looking to see how
NetBeans may be able to provide some value for PHP developers.
My area of focus is on datab
Nathan Hawks wrote:
I have only done this when I am building the function name using a
string expression, so my advice might not be necessary in your case but
it has worked for me:
{$function}($var);
In that case, the curly braces equate to the eval() function in
Javascript.
You don't need th
I have only done this when I am building the function name using a
string expression, so my advice might not be necessary in your case but
it has worked for me:
{$function}($var);
In that case, the curly braces equate to the eval() function in
Javascript.
Jay Blanchard wrote:
> I don't think you
I'm trying to build PHP 5.2 as an Apache 2.0 handler module.
Apache and PHP are installed with DESTDIR/INSTALL_ROOT=/sandbox
set because the end goal is to make a package, not to install on
the build machine.
The paths returned by apxs are relative to /, not to /sandbox
which throws off PHP's make
Hi gang:
I think I found a solution.
Here's the url:
http://www.webbytedd.com/bbb/image-test1/
The point is that the image is only accessible via this script, is
this correct?
The technique I used simply runs the first php script, which creates
the page that has uses ajax to trigger anothe
Jay Blanchard wrote:
I don't think you can put a function name in a variable and call it like
$function($var).
Yes you can - it's basically the same as variable variables.
-Stut
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
On Oct 18, 2007, at 9:50 PM, Bastien Koert wrote:
Are you sure that the value is a string? If its numeric, then try
the check without the quotes around the value
http://www.php.net/manual/en/language.operators.comparison.php
"If you compare an integer with a string, the string is convert
Jay Blanchard wrote:
> [snip]
> [snip]
> function solution1($var1){
> // some code
> }
>
> function solution2($var2){
> // some code
> }
>
> function solution3($var3){
> // some code
> }
>
> if ($function == 'solution1' or $function == 'solution2' or $function ==
> 'soluti
Jay Blanchard wrote:
> [snip]
> function solution1($var1){
> // some code
> }
>
> function solution2($var2){
> // some code
> }
>
> function solution3($var3){
> // some code
> }
>
> if ($function == 'solution1' or $function == 'solution2' or $function ==
> 'solution3')
> {
Robin Vickery wrote:
> On 19/10/2007, afan pasalic <[EMAIL PROTECTED]> wrote:
>
>> hi
>> I have a problem with calling functions:
>>
>> > function solution1($var1){
>> // some code
>> }
>>
>> function solution2($var2){
>> // some code
>> }
>>
>> function solution3($var3){
>
actually, you could run it by
1. making the page
2. flushing the output buffer (which puts it in the screen)
3. run the 2nd script
tedd <[EMAIL PROTECTED]> wrote:
> At 12:06 AM -0400 10/19/07, Nathan Hawks wrote:
> >If by "creates a web page" you just mean it echos output to the browser,
The string used below in "$myArrEncoded" is generated in javascript, after
creating the structure and spitting out:
var JSONVar = javascriptVar.toSource();
I can eval JSONVar and work with it as I would be working with the original
javascriptVar so I know the transition back and forth from a stru
I'm trying to create an advanced search feature for my site, and I
have it mostly working the way I want. I take whatever search term
($searchkey) that the user submits, explodes if off any spaces
between words, and then use that to search for each word separately.
$keys = explode(" ",$sear
[snip]
[snip]
[/snip]
I don't think you can put a function name in a variable and call it like
$function($var). You'd be better of with a case statement in one
function and call the proper solution (quick syntax, may need a little
fixing;
function my_solution($function, $var){
switch $f
[snip]
[/snip]
I don't think you can put a function name in a variable and call it like
$function($var). You'd be better of with a case statement in one
function and call the proper solution (quick syntax, may need a little
fixing;
function my_solution($function, $var){
switch $function{
Hi;
I upgraded to Apache 2.2.6 and it ran fine when I tested it after
configuring the httpd.conf file (although instead of getting the PHP
configuration page I got a page that said simply "It works.") After I
rebooted though, I can't get it to run. The error log refers to a syntax
error in the
2007. 10. 19, péntek keltezéssel 11.15-kor afan pasalic ezt írta:
> hi
> I have a problem with calling functions:
>
> function solution1($var1){
> // some code
> }
>
> function solution2($var2){
> // some code
> }
>
> function solution3($var3){
> // some code
> }
>
> if
On 19/10/2007, afan pasalic <[EMAIL PROTECTED]> wrote:
> hi
> I have a problem with calling functions:
>
> function solution1($var1){
> // some code
> }
>
> function solution2($var2){
> // some code
> }
>
> function solution3($var3){
> // some code
> }
>
> if ($function ==
2007. 10. 19, péntek keltezéssel 12.16-kor tedd ezt írta:
> At 12:06 AM -0400 10/19/07, Nathan Hawks wrote:
> >If by "creates a web page" you just mean it echos output to the browser,
> >and you want to do something else after that, then:
> >
> >After you have sent your and have no more output for
2007. 10. 19, péntek keltezéssel 12.07-kor tedd ezt írta:
> At 8:19 PM -0400 10/18/07, TG wrote:
> >Describe the process a little more.
>
> Ok, here's what I want to do.
>
> I want to prohibit an image from being shown to anyone who is not
> permitted (i.e., logged in).
>
> The way I want to do
hi
I have a problem with calling functions:
suggestions?
thanks.
-afan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 12:06 AM -0400 10/19/07, Nathan Hawks wrote:
If by "creates a web page" you just mean it echos output to the browser,
and you want to do something else after that, then:
After you have sent your and have no more output for the
browser, just use the include() function to run your extra proces
At 3:13 PM -0400 10/18/07, Robert Cummings wrote:
On Thu, 2007-10-18 at 15:04 -0400, tedd wrote:
Hi gang:
I would like to run a php script that creates a web page and AFTER it
is finished creating the page, then it runs another php script -- how
you do that?
exec()
Cheers,
Rob.
Rob:
At 3:13 PM -0400 10/18/07, Robert Cummings wrote:
On Thu, 2007-10-18 at 15:04 -0400, tedd wrote:
Hi gang:
I would like to run a php script that creates a web page and AFTER it
is finished creating the page, then it runs another php script -- how
you do that?
exec()
Cheers,
Rob.
Rob:
At 8:19 PM -0400 10/18/07, TG wrote:
Describe the process a little more.
Ok, here's what I want to do.
I want to prohibit an image from being shown to anyone who is not
permitted (i.e., logged in).
The way I want to do this is to:
1. Set the image permissions to 0640. That way no one can g
Please disregard. Sometimes I weep at my own stupidity... :p
thnx,
Christoph
On 10/19/07, Christoph Boget <[EMAIL PROTECTED]> wrote:
>
> Please take a look at the following code and tell me what I'm doing wrong
> here. I'm just not understanding why this isn't working:
Please take a look at the following code and tell me what I'm doing wrong
here. I'm just not understanding why this isn't working:
array( 'Key 1 1' => array( array( 'Key 1 1 1'
=> 'Value' ),
array( 'Key 1 1 2'
=> 'Value' )),
John Parker wrote:
In essence, I'm asking if it's technically possible to catch an out of
memory error in PHP.
As such, it's not really a code specific issue. I'm just asked whether
or not it's possible. (I'm pretty sure it isn't, I'm just double
checking.)
As far as I know it's not technica
M. Sokolewicz wrote:
Philip Thompson wrote:
On 10/19/07, Stut <[EMAIL PROTECTED]> wrote:
Ondra Zizka wrote:
Hello,
please look at the code bellow and tell if it does not conform to rules
of
returning a reference from a function.
In the first method, I return reference to $sRet variable, and
Philip Thompson wrote:
On 10/19/07, Stut <[EMAIL PROTECTED]> wrote:
Ondra Zizka wrote:
Hello,
please look at the code bellow and tell if it does not conform to rules
of
returning a reference from a function.
In the first method, I return reference to $sRet variable, and PHP is
quiet.
But i
On 10/19/07, Stut <[EMAIL PROTECTED]> wrote:
>
> Ondra Zizka wrote:
> > Hello,
> >
> > please look at the code bellow and tell if it does not conform to rules
> of
> > returning a reference from a function.
> > In the first method, I return reference to $sRet variable, and PHP is
> quiet.
> > But i
-- Forwarded message --
From: Philip Thompson <[EMAIL PROTECTED]>
Date: Oct 19, 2007 8:31 AM
Subject: Re: [PHP] Need a hint how to use an anker on the next page
To: Per Jessen <[EMAIL PROTECTED]>
On 10/19/07, Per Jessen <[EMAIL PROTECTED]> wrote:
>
> Ronald Wiplinger wrote:
>
> > I
On 10/19/07, Robert Degen <[EMAIL PROTECTED]> wrote:
>
> Why don't you try a
>
> passthru('net apache restart')
>
> perhabs another parameter order, but I think It won't work.
> Stopping it might work, but restarting...
>
>
>
> On Fr, Okt 19, 2007 at 04:32:45 +0800, Louie Miranda wrote:
> > Is it
On 10/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Does it support multi-language and linux system ?
>
Yes it is multi-language (language-pack support)
http://wiki.moxiecode.com/index.php/TinyMCE:LanguagePack
And about compatibility look here:
http://wiki.moxiecode.com/ind
In essence, I'm asking if it's technically possible to catch an out of
memory error in PHP.
As such, it's not really a code specific issue. I'm just asked whether
or not it's possible. (I'm pretty sure it isn't, I'm just double
checking.)
JP.
-Original Message-
From: Jay Blanchard [ma
[snip]
I've tried using a error handler and try/catch block, but it doesn't
seem to be possible.
Is this the case, or am I missing something obvious?
[/snip]
Without seeing your code or knowing more specifics about what you are
trying to do it will be hard to answer this question.
--
PHP Genera
Hi, all.
I've tried using a error handler and try/catch block, but it doesn't
seem to be possible.
Is this the case, or am I missing something obvious?
Regards,
John Parker.
On Oct 18, 2007, at 3:15 PM, Marcelo Wolfgang wrote:
This looks good, but since the db server is in a hosting company it
will be possible to read from a .txt ?
also I have never seen the LOAD DATA command, so I'm testing here
and having problems ... can anyone spot what's wrong on this que
Sascha Braun | CEO @ BRAUN Networks wrote:
I am using the rename function on my local development
system fine. But as soon as I upload the script, the
rename function does not work anymore.
Is there a specific compiler flag needed, to make rename
work on both plattforms?
You're using different
Colin Guthrie wrote:
PS I know the above examples are contrived and that constructors would
be more appropriate for the above - but using constructors is not always
possible due to how you deal with failed initialisations where
exceptions are not desirable.
I see what you mean. You thought that
Stut wrote:
> Colin Guthrie wrote:
>> Stut wrote:
>>> Colin Guthrie wrote:
Stut wrote:
> Stut wrote:
>> In that case you need a new foo. That's the only way you're going to
>> reset the internal static if the API doesn't give you a way to do it.
>>
>> $f=new foo();
>> $
Colin Guthrie wrote:
Stut wrote:
Colin Guthrie wrote:
Stut wrote:
Stut wrote:
In that case you need a new foo. That's the only way you're going to
reset the internal static if the API doesn't give you a way to do it.
$f=new foo();
$f->bar();
$f->bar();
$g=new foo();
$g->bar();
Actually, scr
Nathan Nobbe wrote:
On 10/18/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
On 10/18/07, Joshua Bacher <[EMAIL PROTECTED]> wrote:
thats the solution for the wrong problem. it's not up to me to change
the API. the API is designed like i noted and i need a way to get around
this behaviour.
thanks f
MSN Messenger uses the Ink Serialized Format for sending Ink.
reference: http://siebe.bot2k3.net/docs/?url=ink.html
i through php to use msn function, most okay,
main problem, how can i create handwriting image "Ink" in php ?
Thank You Very Much !
--
PHP General Mailing List (http://www.php.n
Stut wrote:
> Colin Guthrie wrote:
>> Stut wrote:
>>> Stut wrote:
In that case you need a new foo. That's the only way you're going to
reset the internal static if the API doesn't give you a way to do it.
$f=new foo();
$f->bar();
$f->bar();
$g=new foo();
$g->
Ondra Zizka wrote:
Hello,
please look at the code bellow and tell if it does not conform to rules of
returning a reference from a function.
In the first method, I return reference to $sRet variable, and PHP is quiet.
But in the second, PHP says:
Notice: Only variable references should be retu
Ronald Wiplinger wrote:
> I have a long page (form), where the user has to return to the place
> he left last time, or where in that page a question has not been
> answered.
Hi Ronald
When you send the user back (maybe using a redirect), you supply the
anchor on the URL by appending "#anchor".
Colin Guthrie wrote:
Stut wrote:
Stut wrote:
In that case you need a new foo. That's the only way you're going to
reset the internal static if the API doesn't give you a way to do it.
$f=new foo();
$f->bar();
$f->bar();
$g=new foo();
$g->bar();
Actually, scratch that, won't work. Not even uns
""Sascha Braun | CEO @ BRAUN Networks"" <[EMAIL PROTECTED]> schrieb
im Newsbeitrag news:[EMAIL PROTECTED]
Hi everyone,
I am using the rename function on my local development
system fine. But as soon as I upload the script, the
rename function does not work anymore.
Is there a specific compiler
Hi everyone,
I am using the rename function on my local development
system fine. But as soon as I upload the script, the
rename function does not work anymore.
Is there a specific compiler flag needed, to make rename
work on both plattforms?
Thank you very much.
Sascha
--
PHP General Mailing
Why don't you try a
passthru('net apache restart')
perhabs another parameter order, but I think It won't work.
Stopping it might work, but restarting...
On Fr, Okt 19, 2007 at 04:32:45 +0800, Louie Miranda wrote:
> Is it possible to restart Windows Apache (service) on a PHP script?
>
> i
I have a form, where I upload a picture and a corresponding text.
Is it possible to have a form (upload picture) within a form (text)?
As I have it now, the submit button just does nothing.
bye
Ronald
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.ne
Is it possible to restart Windows Apache (service) on a PHP script?
i have installed PHP/Apache on a Windows machine. Added the ext windows32
service.
But could not find any how to or information online.
Please help!
--
Louie Miranda ([EMAIL PROTECTED])
http://www.axishift.com
Security Is A Se
Jason Paschal wrote:
> just wanted to know if any of you have seen anything geared for this sort of
> content, something professional-looking that doesn't come with a huge
> learning curve. it wouldn't have to be TOO fancy, i could probably make
> something, but didn't want to re-invent the round-
80 matches
Mail list logo