The address to subscribe to the javascript list is
http://lists.evolt.org/mailman/listinfo/javascript
There is a link there to the archives.
--
Malka Cymbalista
Webmaster, Weizmann Institute of Science
malki.cymbali...@weizmann.ac.il
08-934-3036
>>> On 6/15/2010 at 12:16 AM, in message
<513c9a
On Jun 14, 2010, at 3:45 PM, Paul M Foster wrote:
On Sun, Jun 13, 2010 at 06:06:16PM -0500, Karl DeSaulniers wrote:
Hello List,
I may have asked this before, but can not find any emails about it.
Does anyone know of a general-javascript email list like this php
list?
Hoping someone here ca
Thanks Malka,
I was wondering if you had a web page I could go to before I sign up
to see some discussions that have taken place.
I tried using the lists.evolt.org, but it did not show the
javascript section.
TIA,
Karl
On Jun 14, 2010, at 3:20 AM, Malka Cymbalista wrote:
javascr...@list
On Mon, Jun 14, 2010 at 4:36 AM, Karl DeSaulniers wrote:
> Hello List,
> I may have asked this before, but can not find any emails about it.
> Does anyone know of a general-javascript email list like this php list?
> Hoping someone here can point me in the right direction.
> TIA
>
> Karl DeSaulnie
bruce schreef:
> Hi...
>
> Working on a test app, and I need a web interface to test/view the
> underlying information. Looking for (hopefully) quick pointers/suggestions.
>
> I'm dealing with a number of cli web crawling apps that return data. I'm
> trying to find a quick app that I can modify t
Ashley Sheridan wrote:
On Wed, 2008-12-31 at 20:41 +, Ólafur Waage wrote:
Short: Is it possible to see the PHP code that is going to be
processed in whole?
Long: I love to see things visually, and while programming i create
all kinds of debugging variables i keep on the side for each
page/r
On Wed, 2008-12-31 at 20:41 +, Ólafur Waage wrote:
> Short: Is it possible to see the PHP code that is going to be
> processed in whole?
>
> Long: I love to see things visually, and while programming i create
> all kinds of debugging variables i keep on the side for each
> page/request.
> I kn
Whoops, sent the thanks to the wrong list :P
On Thu, Dec 11, 2008 at 7:33 PM, Daniel Brown wrote:
> (Forwarding back to PHP General for the archives.)
>
> On Thu, Dec 11, 2008 at 14:31, Ólafur Waage wrote:
>> Its fixed, thanks guys :)
>>
>> On Thu, Dec 11, 2008 at 7:16 PM, Daniel Brown wrote:
>
(Forwarding back to PHP General for the archives.)
On Thu, Dec 11, 2008 at 14:31, Ólafur Waage wrote:
> Its fixed, thanks guys :)
>
> On Thu, Dec 11, 2008 at 7:16 PM, Daniel Brown wrote:
>> On Thu, Dec 11, 2008 at 14:01, Ólafur Waage wrote:
>>> I should be able to set a session var and then do
On Thu, Dec 11, 2008 at 14:01, Ólafur Waage wrote:
> I should be able to set a session var and then do a header redirect
> right? Small bug regarding that and i just need to be sure.
This isn't a bug in PHP, it's actually in adherance with HTTP
standards (and current browser standards). Prio
On Thu, Dec 11, 2008 at 2:01 PM, Ólafur Waage wrote:
> I should be able to set a session var and then do a header redirect
> right? Small bug regarding that and i just need to be sure.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
I said AFAIK. I was under the impression the DirectoryIndex did a
redirect. I just tested it and it does not, so you are correct Jochem.
He has everything he needs. He'll need the document root and
$_SERVER['REQUEST_URI'] to do this.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
Micah Gersten schreef:
What is the point of figuring that out? If we knew that, we might be
able to help you with a solution. As it stands what you want is not
possible AFAIK.
you know wrong. he has all the info needed.
1. the document root of the site (/var/www/example.com)
2. the requeste
I am pretty certain that this isnt possible under current code. But i
just wanted a confirmation on this, since i worked on the code for a
while trying to get to the end point. And yes Jochem, i am looking for
a magical location :P
Well, thanks guys :)
Ólafur Waage
2008/8/24 Micah Gersten <[EMAI
What is the point of figuring that out? If we knew that, we might be
able to help you with a solution. As it stands what you want is not
possible AFAIK.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Ólafur Waage wrote:
> I am within a certain directory o
Ólafur Waage schreef:
Robert, thanks for the reply but i had tried __FILE__ and __DIR__
(which is dirname(__FILE__)) but it doesnt work.
__DIR__ only came into existence very recently IIRC,
realpath(dirname(__FILE__)); will tell you what directory the
*current script* is actually living in ...
Thanks for this David, i was using REQUEST_URI and other $_SERVER info
and mixed that together. It worked in some situations but on hosted
servers (like GoDaddy and others like that where they use a
complicated directory setup) it does not work.
Olafur Waage
2008/8/23 David Otton <[EMAIL PROTECTE
2008/8/23 Ólafur Waage <[EMAIL PROTECTED]>:
> Robert, thanks for the reply but i had tried __FILE__ and __DIR__
> (which is dirname(__FILE__)) but it doesnt work.
>
> And thanks for the reply also Ashley but as i said in my first post, i
> had tried $_SERVER with limited results
If checking the o
Luke, i am looking for local directory info. Not URL info as i said before.
And Ashley, as i said in the original mail. I had tried $_SERVER.
Thanks for the reply though.
Ólafur Waage
2008/8/23 Luke <[EMAIL PROTECTED]>:
> $_REQUEST?
>
> Luke Slater
> Lead Developer
> NuVoo
>
> On 23 Aug 2008, at
Robert, thanks for the reply but i had tried __FILE__ and __DIR__
(which is dirname(__FILE__)) but it doesnt work.
And thanks for the reply also Ashley but as i said in my first post, i
had tried $_SERVER with limited results
Ólafur Waage
2008/8/23 Robert Cummings <[EMAIL PROTECTED]>:
> On Fri,
On Fri, 2008-08-22 at 22:13 -0400, Eric Butera wrote:
> On Thu, Aug 21, 2008 at 8:50 PM, Ólafur Waage <[EMAIL PROTECTED]> wrote:
> > I'll throw out an example here.
> >
> > I have a directory structure of: /var/www/example/
> > And in that i have a file: index.php
> > That file echo's getcwd() and
On Thu, Aug 21, 2008 at 8:50 PM, Ólafur Waage <[EMAIL PROTECTED]> wrote:
> I'll throw out an example here.
>
> I have a directory structure of: /var/www/example/
> And in that i have a file: index.php
> That file echo's getcwd() and returns: /var/www/example/
>
> Now i tell Apache or Lighty that if
I am within a certain directory of the server via the browser.
Example:
http://www.example.com/foo/bar
would be
/var/www/example.com/foo/bar
And Apache's DirectoryIndex feature is opening a index.php file that
is located at
/var/www/example.com/test/index.php
And from that file i need to figure
On Fri, 2008-08-22 at 21:56 +, Ólafur Waage wrote:
> That is the brick wall i faced. There is no way to know where exactly
> you are (via DirectoryIndex) locally on the machine.
>
> Thanks though.
>
> 2008/8/22 Micah Gersten <[EMAIL PROTECTED]>:
> > You might want to try a Redirect Rule or re
That is the brick wall i faced. There is no way to know where exactly
you are (via DirectoryIndex) locally on the machine.
Thanks though.
2008/8/22 Micah Gersten <[EMAIL PROTECTED]>:
> You might want to try a Redirect Rule or rewrite which would tell you
> the HTTP PATH. AFAIK, there is no way t
You might want to try a Redirect Rule or rewrite which would tell you
the HTTP PATH. AFAIK, there is no way to know which directory they
tried to access unless you write your own index.php and store it in a
session variable.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.
Thanks for the reply Micah but i have no interest in the URL. I am
looking for the servers local path to the directory. (example:
/var/www/directory/ or C:\apache\htdocs\directory\)
Also the HTTP_REFERER is empty unless you are linked in from another
location. And then it gives you the URL you came
How are you browsing to it from within PHP? Depending on how you are
doing it, the way to get the cwd is different
Ash
www.ashleysheridan.co.uk
--- Begin Message ---
I'll throw out an example here.
I have a directory structure of: /var/www/example/
And in that i have a file: index.php
That file e
Once you tell apache to load /example/index.php, that's where you are.
You might try looking at the $_SERVER['HTTP_REFERER'].
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Ólafur Waage wrote:
> I'll throw out an example here.
>
> I have a directory structu
Well, when I try date('d/m/y', strtotime($_POST('date')) - it seems
mixing day and month, I tried setlocale(LC_ALL, 'en_GB'); but it
didn't
If you're sure that's the format of the date, this will do it...
list($day, $month, $year) = explode('/', $thedate);
$thetimestamp = mktime(0, 0, 0, $
Well, when I try date('d/m/y', strtotime($_POST('date')) - it seems
mixing day and month, I tried setlocale(LC_ALL, 'en_GB'); but it didn't
strtotime() returns a unix timestamp (ie number of seconds since
1970ish. Nothing to do with the date object.
--
Richard Heyes
+---
Ho to read date from HTML form ->
How to read $_POST['date']="dd/mm/" string variable as a date?
If you want a unix timestamp then try investigating strtotime().
--
Richard Heyes
++
| Access SSH with a Windows mapped drive |
|http://www.phpguru.o
At 12:30 AM -0500 11/29/07, Robert Cummings wrote:
On Wed, 2007-11-28 at 22:19 -0700, Jon Westcot wrote:
>
$123,456.78 becomes 123456.78
$24,680 becomes 24680
1234B becomes 1234
$number = ereg_replace( '[^[:digit:].]', '' );
Cheers,
Rob.
Sweet.
Another one of those sta
On Wed, 2007-11-28 at 22:47 -0700, Jon Westcot wrote:
> Thanks, Rob! I can see that it's going to be important for me to get
> familiar with the POSIX regular expressions.
You can use the perl versions too. I just got used to the posix versions
a long time ago :). BTW, if you didn't notice I forg
Thanks, Rob! I can see that it's going to be important for me to get
familiar with the POSIX regular expressions.
Jon
- Original Message -
> On Wed, 2007-11-28 at 22:19 -0700, Jon Westcot wrote:
> > Hi all:
> >
> > Since I'm relatively new to PHP, I'm not familiar with all of the
sho
On Wed, 2007-11-28 at 22:19 -0700, Jon Westcot wrote:
> Hi all:
>
> Since I'm relatively new to PHP, I'm not familiar with all of the
> shortcuts and efficient ways one could write a routine that handles
> converting data from one format into another, so I thought I'd ask here for
> recomme
Hi guys,
Thank you for your responses and your input.
"At the end of the day the best way to secure data being transferred from
client to server is to use SSL."
THAT I know ;) was just wondering from a normal http page... and you answered
that question perfectly...so thanks again!
Would someo
I think you meant to send this to the OP not me. And please also include
the list in your replies.
Tijnema ! wrote:
The best way is using a HTML form, and then adding a javascript ,that
runs before submitting, that encrypts the password with md5.
This offers little more security than plain te
Ryan A wrote:
Quick question, one of our sites already uses BASIC_AUTH to take the username
and pass from clients, we were thinking of instead doing it via a login form
(so we can also add a CAPTCHA later...if needed)
what I would like to know is, by using a login form instead of a BASIC_AUTH
On Thu, 05 Oct 2006 09:29:46 +0800, Penthexquadium wrote:
> On Wed, 4 Oct 2006 23:19:58 +0200, "Martin Bach Nielsen" <[EMAIL PROTECTED]>
> wrote:
>
>> Hi all.
>>
>>
>>
>> I have written a guestbook (I know, there's a ton out there), which until
>> recently did not get any spam, so now I'm tr
On Wed, 4 Oct 2006 23:19:58 +0200, "Martin Bach Nielsen" <[EMAIL PROTECTED]>
wrote:
> Hi all.
>
>
>
> I have written a guestbook (I know, there's a ton out there), which until
> recently did not get any spam, so now I'm trying to remove the spam-ad by
> using preg_replace:
>
>
>
> $meldin
lists. I would rather struggle
for days with it than listen to some halfwit like you who's got nothing
better to do. Get a life moron.
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: July 1, 2006 6:41 AM
To: Beauford
Cc: php-general@lists.php.net
Subject: Re: [PH
Beauford wrote:
> Hi,
>
> I'm just curious, because I come across this from time to time.
>
> Why does the code below work on Windows and not on Linux. PHP is 5.0 on
> Linux and 4.4 on Windows (still can't get 5 on Windows). The code at the
what stops you from installing php5 on windows? - it's
On 7/1/06, Beauford <[EMAIL PROTECTED]> wrote:
Hi,
I'm just curious, because I come across this from time to time.
Why does the code below work on Windows and not on Linux. PHP is 5.0 on
Linux and 4.4 on Windows (still can't get 5 on Windows). The code at the
very bottom is how I got it to work
On 7/27/05, Jochem Maas <[EMAIL PROTECTED]> wrote:
> Dotan Cohen wrote:
> > On 7/26/05, Jochem Maas <[EMAIL PROTECTED]> wrote:
> >
> ...somebody beat me with a virtual stick if I am wrong!
> >>>
> >>>Why? I'd rather just throw the php.net/manual at you!
> >>
> >>harddrive or memory stick?
> >
>
Dotan Cohen wrote:
On 7/26/05, Jochem Maas <[EMAIL PROTECTED]> wrote:
...somebody beat me with a virtual stick if I am wrong!
Why? I'd rather just throw the php.net/manual at you!
harddrive or memory stick?
just /home/dotan/myfiles/docs/php-manual/
but seriously did I err?
Not that I
On 7/26/05, Jochem Maas <[EMAIL PROTECTED]> wrote:
> >>...somebody beat me with a virtual stick if I am wrong!
> > Why? I'd rather just throw the php.net/manual at you!
>
> harddrive or memory stick?
just /home/dotan/myfiles/docs/php-manual/
> but seriously did I err?
Not that I see. But don't for
On 7/26/05, Jochem Maas <[EMAIL PROTECTED]> wrote:
> >>...somebody beat me with a virtual stick if I am wrong!
> > Why? I'd rather just throw the php.net/manual at you!
>
> harddrive or memory stick?
just /home/dotan/myfiles/docs/php-manual/
> but seriously did I err?
Not that I see. But don't fo
Dotan Cohen wrote:
On 7/25/05, Jochem Maas <[EMAIL PROTECTED]> wrote:
...somebody beat me with a virtual stick if I am wrong!
Why? I'd rather just throw the php.net/manual at you!
harddrive or memory stick?
but seriously did I err?
Dotan
http://lyricslist.com/lyrics/artist_albums/23/agu
On 7/25/05, Jochem Maas <[EMAIL PROTECTED]> wrote:
> ...somebody beat me with a virtual stick if I am wrong!
Why? I'd rather just throw the php.net/manual at you!
Dotan
http://lyricslist.com/lyrics/artist_albums/23/aguilera_christina.php
Aguilera, Christina Song Lyrics
--
PHP General Mailing Lis
Richard Lynch wrote:
On Sun, July 24, 2005 11:39 am, Dotan Cohen said:
On 7/24/05, Bruce Gilbert <[EMAIL PROTECTED]> wrote:
I am well versed in coding with xhtml which requires all lower case
and am pretty much a newbie at PHP so that is why I am asking this
question.
is this acceptible
if
On Sun, July 24, 2005 11:39 am, Dotan Cohen said:
> On 7/24/05, Bruce Gilbert <[EMAIL PROTECTED]> wrote:
>> I am well versed in coding with xhtml which requires all lower case
>> and am pretty much a newbie at PHP so that is why I am asking this
>> question.
>>
>> is this acceptible
>>
>> if ($_pos
Bruce Gilbert wrote:
is this acceptible
if ($_post [sender_email] == "") or does at have to be if ($_POST
[sender_email] == "")
As a friendly suggestion, you should always try before you ask. You
could answer your own question with a few seconds of effort. Typically,
such extreme laziness i
On 7/24/05, Bruce Gilbert <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am well versed in coding with xhtml which requires all lower case
> and am pretty much a newbie at PHP so that is why I am asking this
> question.
>
> is this acceptible
>
> if ($_post [sender_email] == "") or does at have to be
[snip]
[/snip]
Unfortunately you cannot do it like this, you either have to reload the
page or send the processing to another namespace. But you can do
different buttons...
In processStuff.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
As an apache module it runs as the apache user.
On Friday 10 October 2003 17:44, Grant Rutherford wrote:
> Hi,
>
> Just a quick question... What user does php run as on linux? Is it the
> Apache user? Is there some way to tell? I need to be able to set a
> directory so that only PHP can access
> Just a quick question... What user does php run as on linux?
It all depends on how PHP is set up. Do something like:
$fff = fopen ("./temp","w");
fwrite($fff,"testing");
fclose($fff);
in a directory chmod 777. Look at the user id.
(For what it's worth on my system its UID 518).
-Dan
-
Try using in your PHP page:
error_reporting (E_ALL ^ E_NOTICE);
Ryan A wrote:
Hi John,
Thanks for replying, I already tried that and thought i might be mistaken
because i am still getting stuff like this:
Notice: Undefined index: facility24 in
/home/bestweb/public_html/add_co_location.php on lin
Hi John,
Thanks for replying, I already tried that and thought i might be mistaken
because i am still getting stuff like this:
Notice: Undefined index: facility24 in
/home/bestweb/public_html/add_co_location.php on line 12
Plenty of notices
I tried:
php_value error_reporting 0 (and)
php_valu
From: "Ryan A" <[EMAIL PROTECTED]>
> I know how to suppress warnings in my file locally but i want to suppress
> warnings and notices in one whole directory using a .htaccess, i cant seem
> to find my old file that does that, can someone refresh my memory please?
>
> This is how i do it in my local
> >>I'm sending credit card info to a 3rd party credit card processing
site.
> >> I would like to keep the inputted values and, after the approval,
have
> >>them appear in the value part of the form so that they don't have to
> >>re-input the same values they had just put in for the credit card.
h
Right - but the problem is, the form is submitting to another site, so i
don't have a way to store the variables. I could put them in session
variables, but I would have to create another script and then forward
the form submission to the outside side. This isn't working because the
outside
> I'm sending credit card info to a 3rd party credit card processing site.
> I would like to keep the inputted values and, after the approval, have
> them appear in the value part of the form so that they don't have to
> re-input the same values they had just put in for the credit card. how
> ca
You should look at E-xact (http://www.e-xact.com). They have a solution
they call "tagged transactions" that actually replaces the credit card
numbers with "tags" that are only meaningful in the context of your
merchant account. That way, you can let your customers make repeat
purchases without act
On Thursday 13 February 2003 01:40, Didier McGillis wrote:
> I get this.
>
> Warning: Cannot add header information - headers already sent by (output
> started header.php:7) in add_store.php on line 186
OK, did you search the archives?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Ope
I get this.
Warning: Cannot add header information - headers already sent by (output
started header.php:7) in add_store.php on line 186
From: Jason Wong <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] quick question form validation
Date: Thu,
On Thursday 13 February 2003 01:26, Didier McGillis wrote:
> Is there a way that I can redirect and keep the id.
If you want to _redirect_ use header().
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet
Is there a way that I can redirect and keep the id.
From: Jason Wong <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] quick question form validation
Date: Thu, 13 Feb 2003 00:55:59 +0800
On Thursday 13 February 2003 00:47, Didier McGillis wrote:
&g
On Thursday 13 February 2003 00:47, Didier McGillis wrote:
> I must be missing something, but I am doing some very simple validation of
> a form. So if it is incorrect I need to redisplay the form. Normally what
> I do is I just include the form back in. This one I have tried to include
> the f
> I need to specify a absolute path to a file on my harddrive, but you
can't
> use backslashes in php. Right?
You can also use forward slashes just as effectively.
C:/path/to/your/file.php
Or, if the file is on the C drive, you can use
/path/to/your/file.php
without even using the c: part.
-
On Thursday 30 January 2003 17:25, Dale wrote:
> I need to specify a absolute path to a file on my harddrive, but you can't
> use backslashes in php. Right?
Please use a descriptive subject.
You escape an intended literal backslash with a backslash.
--
Jason Wong -> Gremlins Associates -> www.g
At 10:25 30.01.2003, Dale said:
[snip]
>I need to specify a absolute path to a file on my harddrive, but you can't
>use backslashes in php. Right?
[snip]
Oh yes, you can. Just pay attention that the backslash is an "e
Sure, you could do it any way you want. One way or another you need to
get it into a variable, so how you get the template there doesn't really
have any affect on your replace function.
I'm using the file based template so it's easy for users to modify. I
"read" the template file into the outpu
> -Original Message-
> From: Martin Towell [mailto:martin.towell@;world.net]
> Sent: 08 November 2002 06:23
>
> what is the technical difference between using
>
> else if
Well, technically this starts a new block structure level...
>
> and
>
> elseif
... and this doesn't.
But to
Realistically, there is no difference. It is *slightly* quicker to parse,
but thats about it.
I think it was introduced to satisfy those that have used this type of
syntax in other languages, like C and Perl (which users elsif).
I usually use elseif as its a bit nicer looking (IMHO)
Todd.
-
Hi, sorry about the delay, i have some computer problems in the last few
days, all fixed now i hope.
I don't know exactly what shell access is, or ssh for that matter, but in my
quest to do what i was trying to do, I realised its not worth it due to the
fact the file i was copying was still being
> I am the webmaster of the site, i pay for the server space,
> is that what you mean?
First up Simon, I deleted over a hundred lines of no longer relevant
content from your message including things like signatures. You should
probably trim messages down when you reply to them...
Next up, w
i am unsure what you mean, where exactly do it type in 'ls -al' ?
--
Cheers
-
Simon Angell
Canberra ACT
www.canberra-wx.com
-
Member of:
Australian Severe Weather Association.
www.sever
No i mean switch to the directory in which you have th file with the code
and type 'ls -al' Then look at the permissions and ownerships. Don't forget
the web server runs with different permissions thatn you do at home.
Cheers,
Rob.
Simon Angell wrote:
>
> I am the webmaster of the site, i pay f
I am the webmaster of the site, i pay for the server space, is that what you
mean?
--
Cheers
-
Simon Angell
Canberra ACT
www.canberra-wx.com
-
Member of:
Australian Severe Weather Assoc
Simon Angell wrote:
>
> Thanks for that Robert *it works*, now i have 1 more problem, after
> uploading to my web server i get this...
> Warning: fopen("wtest.txt", "wb+") - Permission denied in
> /home/canberra/public_html/bomonster/canberra.php on line 6
>
> Dunno why either, the directory is
Thanks for that Robert *it works*, now i have 1 more problem, after
uploading to my web server i get this...
Warning: fopen("wtest.txt", "wb+") - Permission denied in
/home/canberra/public_html/bomonster/canberra.php on line 6
Dunno why either, the directory is not protected, can you help me with
Windows makes me cry... this will fix the problem...
Change: $rContents = implode( "\n", file(
'ftp://ftp.bom.gov.au/anon/gen/fwo/IDN10035.txt' ) );
To: $rContents = implode( "\r\n", file(
'ftp://ftp.bom.gov.au/anon/gen/fwo/IDN10035.txt' ) );
If that doesn't work:
To: $rContents = imp
i removed a / and it worked :)
ftp://ftp.bom.gov.au/anon/gen/fwo/IDN10035.txt' ) );
if( ($fp = fopen( 'test/canberratest.txt', 'w+' )) !== false )
{
fputs( $fp, $rContents );
fclose( $fp );
}
?>
Now the format of the content is no longer, can this be fixed?
This is how it is originally.
You're a Windows guy so probably you need the directory delimiters facing
the other way :)
Try this one (not tested AT ALL):
$rContents = implode( "\n", file( 'ftp://www.foo.bar/me/my/data.txt' ) );
if( ($fp = fopen( 'c:\path\to\directory\outfile.txt', 'wb+' )) !== false )
{
fputs( $fp, $rC
i tried that ine and got this...
Warning: fopen("/test/canberra.txt", "w+") - No such file or directory in
C:\Xitami\webpages\bomonster\test2.php on line 4
code..
ftp://ftp.bom.gov.au/anon/gen/fwo/IDN10035.txt' ) );
if( ($fp = fopen( '/test/canberra.txt', 'w+' )) !== false )
{
fputs( $fp, $r
Simon Angell wrote:
>
> Hi everyone.
> I asked this a week or so ago but i am unsure if it got to the list, so here
> we go again.
>
> I am trying to get a remote file to be copied onto my own web server, I have
> looked at fopen() and fread() and fwrite() and get the general idea of each,
> but
Everything you need:
http://www.php.net/ftp
Adam Voigt
[EMAIL PROTECTED]
On Tue, 2002-10-01 at 11:50, Simon Angell wrote:
> Hi everyone.
> I asked this a week or so ago but i am unsure if it got to the list, so here
> we go again.
>
> I am trying to get a remote file to be copied onto my own w
basically it is used for accessing a variable in an array.
Adam
On Wed, 14 Aug 2002, Chris Barnes wrote:
> hey people,
> I have been seeing something in a few php scripts i've been playing with and
> i really dont know what it means or does. I'm only new to php so maybe
On Wednesday 24 July 2002 15:48, Nicholas Mercier wrote:
> I'm currently developing a Remote CMS for a site.
>
> I'm working on the image upload and want to create a smaller thumbnail type
> image (thought >200x>180 instead of >50x>50)
> I know I'm going to need either imagecopyresize() or imageco
Hello Dan,
Please try this.Let me know if you have any problem.
function setChecked()
{
document.forms[0].r1value.value='on';
}
function checkr1()
{
if(document.forms[0].r1value.value=='on')
{
alert("One of your radio button is selected");
return false;
}
else
{
Quick answer:
the same for radio boxes.
Dan McCullough wrote:
>I have a form, and if someone doesnt fill in a field it returns and asks them to
>filling in the
>missing field. I have made it so that the person doesnt lose everything, currently
>they will lose
>radio button information or c
You need to call "new" operator to create the object.
Thank you,
RAY HUNTER
-Original Message-
From: Jay [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 2:22 PM
To: Php-General (E-mail)
Subject: [PHP] Quick Question about Classes
When you define a new class can you do the
It seems that you are saying that not using quotes is bad (first), but
then later you show that omitting the quotes does not result in an error.
Or are you saying that the quotes can be omitted if the array element is
being used in a string (between quotes), but generally the quotes around
the
On Friday, January 11, 2002, at 06:05 AM, Ford, Mike [LSS] wrote:
> Incidentally, I've occasionally had problems including a variable name
> containing an underscore in a double-quoted string (e.g. "$num_recs
> records retrieved"), where PHP tries to insert the value of $num
> followed by th
> > $sql = "SELECT * FROM tablename WHERE
> > tablename.column=$_GET['criteria_integer']";
> >
> > but unfortunately, this isn't working.
On a related note, outside of strings one should always surround keys with
quotes, so:
$arr = array('a' => 'apple', 'b' => 'banana');
print $arr['a'];
> -Original Message-
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: 10 January 2002 15:44
>
> I thought that $_GET[] and $_POST[] could be used in place of regular
> variables... that is,
>
> $sql = "SELECT * FROM tablename WHERE
> tablename.column=$_GET['criteria_integer']";
>
On Thu, 10 Jan 2002, Erik Price wrote:
> I thought that $_GET[] and $_POST[] could be used in place of regular
> variables... that is,
>
> $sql = "SELECT * FROM tablename WHERE
> tablename.column=$_GET['criteria_integer']";
>
> but unfortunately, this isn't working.
$sql = "SELECT * FROM tablena
Erik,
Although, I've not proved this I think the PHP parser gets confused when
it sees a complex variable reference, $_GET[ 'criteria_integer' ]
embedded within double quotes. I've run into similar error messages so
I've been breaking out the variable from the double quotes as follows:
$sql = "S
Yes, but $sql is passed to the database, which has no understanding of
$_GET. Will it take PHP that much longer to make this assignment:
$criteria_integer = $_GET['criteria_integer'];
With the benefit that the SQL is much easier to read"
$sql = "SELECT * FROM tablename WHERE tablename.column='
1 - 100 of 107 matches
Mail list logo