RE: [PHP] problem calling functions

2007-10-19 Thread Zoltán Németh
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 =

[PHP] socket_bind function

2007-10-19 Thread Bill Rausch
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

Re: [PHP] Which PHP-Editor to use?

2007-10-19 Thread Børge Holen
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

Re: [PHP] Rename does not work

2007-10-19 Thread Børge Holen
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

Re: [PHP] picture upload within a form

2007-10-19 Thread Børge Holen
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

Re: [PHP] Reference return buggy notice?

2007-10-19 Thread Stut
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

Re: [PHP] Reference return buggy notice?

2007-10-19 Thread Jochem Maas
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

Re: [PHP] json_encode/json_decode, take 2

2007-10-19 Thread Jochem Maas
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

Re: [PHP] json_encode/json_decode, take 2

2007-10-19 Thread Nathan Nobbe
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

Re: [PHP] json_encode/json_decode, take 2

2007-10-19 Thread Jochem Maas
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

RE: [PHP] This, then that.

2007-10-19 Thread Robert Cummings
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

RE: [PHP] This, then that. [solved?]

2007-10-19 Thread Instruct ICC
> 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

RE: [PHP] This, then that. [solved?]

2007-10-19 Thread Instruct ICC
> 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

RE: [PHP] This, then that.

2007-10-19 Thread Instruct ICC
> 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

RE: [PHP] p-s-e-x-e-c

2007-10-19 Thread Instruct ICC
> > > 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

Re: [PHP] directory modification dates

2007-10-19 Thread Robert Cummings
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

[PHP] directory modification dates

2007-10-19 Thread Marek
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

Re: [PHP] Regex for Advanced search feature

2007-10-19 Thread Robert Cummings
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

Re: [PHP] problem calling functions

2007-10-19 Thread afan pasalic
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

[PHP] Re: Regex for Advanced search feature

2007-10-19 Thread Al
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",

Re: [PHP] problem calling functions

2007-10-19 Thread Stut
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

Re: [PHP] problem calling functions

2007-10-19 Thread afan pasalic
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

Re: [PHP] problem calling functions

2007-10-19 Thread afan pasalic
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

Re: [PHP] This, then that. [solved?]

2007-10-19 Thread Philip Thompson
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

Re: [PHP] problem calling functions

2007-10-19 Thread Stut
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

Re: [PHP] problem calling functions

2007-10-19 Thread afan pasalic
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

[PHP] Influence direction for database tooling support in NetBeans

2007-10-19 Thread David Van Couvering
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

Re: [PHP] Dang lack of a list reply button

2007-10-19 Thread Stut
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

[PHP] Dang lack of a list reply button

2007-10-19 Thread Nathan Hawks
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

[PHP] INSTALL_ROOT and apxs

2007-10-19 Thread Andre Majorel
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

Re: [PHP] This, then that. [solved?]

2007-10-19 Thread tedd
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

Re: [PHP] problem calling functions

2007-10-19 Thread Stut
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

Re: [PHP] IF command

2007-10-19 Thread Bill Allaire
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

Re: [PHP] problem calling functions

2007-10-19 Thread afan pasalic
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

Re: [PHP] problem calling functions

2007-10-19 Thread afan pasalic
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') > {

Re: [PHP] problem calling functions

2007-10-19 Thread afan pasalic
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){ >

Re: [PHP] This, then that.

2007-10-19 Thread Wolf
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,

[PHP] json_encode/json_decode, take 2

2007-10-19 Thread Christoph Boget
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

[PHP] Regex for Advanced search feature

2007-10-19 Thread Kevin Murphy
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

RE: [PHP] problem calling functions

2007-10-19 Thread Jay Blanchard
[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

RE: [PHP] problem calling functions

2007-10-19 Thread Jay Blanchard
[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{

[PHP] upgraded apache won't start

2007-10-19 Thread Pat Jones
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

Re: [PHP] problem calling functions

2007-10-19 Thread Zoltán Németh
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

Re: [PHP] problem calling functions

2007-10-19 Thread Robin Vickery
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 ==

Re: [PHP] This, then that.

2007-10-19 Thread Zoltán Németh
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

Re: [PHP] This, then that.

2007-10-19 Thread Zoltán Németh
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

[PHP] problem calling functions

2007-10-19 Thread afan pasalic
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

Re: [PHP] This, then that.

2007-10-19 Thread tedd
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

Re: [PHP] This, then that.

2007-10-19 Thread tedd
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:

Re: [PHP] This, then that

2007-10-19 Thread tedd
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:

Re: [PHP] This, then that.

2007-10-19 Thread tedd
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

[PHP] Re: json_encode/json_decode

2007-10-19 Thread Christoph Boget
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:

[PHP] json_encode/json_decode

2007-10-19 Thread Christoph Boget
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' )),

Re: [PHP] Catching/handing out of memory errors...

2007-10-19 Thread Stut
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

Re: [PHP] Reference return buggy notice?

2007-10-19 Thread Stut
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

Re: [PHP] Reference return buggy notice?

2007-10-19 Thread M. Sokolewicz
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

Re: [PHP] Reference return buggy notice?

2007-10-19 Thread Philip Thompson
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

Fwd: [PHP] Need a hint how to use an anker on the next page

2007-10-19 Thread Philip Thompson
-- 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

Re: [PHP] Is it possible to restart Windows Apache (service) on a PHP script?

2007-10-19 Thread Philip Thompson
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

Re: [PHP] html tools for Web page

2007-10-19 Thread Łukasz Wojciechowski
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

RE: [PHP] Catching/handing out of memory errors...

2007-10-19 Thread John Parker
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

RE: [PHP] Catching/handing out of memory errors...

2007-10-19 Thread Jay Blanchard
[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

[PHP] Catching/handing out of memory errors...

2007-10-19 Thread John Parker
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.

Re: [PHP] From TXT to a mySQL db

2007-10-19 Thread Jason Pruim
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

Re: [PHP] Rename does not work

2007-10-19 Thread Richard Heyes
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

Re: [PHP] Re: Strange behaviour of static declared content.

2007-10-19 Thread Stut
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

[PHP] Re: Strange behaviour of static declared content.

2007-10-19 Thread Colin Guthrie
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(); >> $

Re: [PHP] Re: Strange behaviour of static declared content.

2007-10-19 Thread Stut
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

Re: [PHP] Strange behaviour of static declared content.

2007-10-19 Thread Stut
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

[PHP] Any body know "Ink Serialized Format (ISF)" ?

2007-10-19 Thread LKSunny
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

[PHP] Re: Strange behaviour of static declared content.

2007-10-19 Thread Colin Guthrie
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->

Re: [PHP] Reference return buggy notice?

2007-10-19 Thread Stut
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

Re: [PHP] Need a hint how to use an anker on the next page

2007-10-19 Thread Per Jessen
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".

Re: [PHP] Re: Strange behaviour of static declared content.

2007-10-19 Thread Stut
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

[PHP] Re: Rename does not work

2007-10-19 Thread Christian Hänsel
""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

[PHP] Rename does not work

2007-10-19 Thread Sascha Braun | CEO @ BRAUN Networks
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

Re: [PHP] Is it possible to restart Windows Apache (service) on a PHP script?

2007-10-19 Thread Robert Degen
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

[PHP] picture upload within a form

2007-10-19 Thread Ronald Wiplinger
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

[PHP] Is it possible to restart Windows Apache (service) on a PHP script?

2007-10-19 Thread Louie Miranda
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

[PHP] Re: PHP/MySQL CMS for Articles/Studies/Research Papers?

2007-10-19 Thread Colin Guthrie
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-