Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

WwWXxX, udp high ports, d-link extract firmware dsl-2750u, wwwwxxxxx.2G, yxxxcom, WWWXXX, ftp://192.168.100.100, wwwxxx 100, www.xxxcon, wwwxxx

Links

XODOX
Impressum

#1: Re: [PHP] Re: Continuance of the struggle (trying to understand)

Posted on 2010-10-07 10:00:12 by Ashley Sheridan

------=_Part_0_1286438412568
Content-Type: text/plain;
charset=utf-8
Content-Transfer-Encoding: base64
Content-Disposition: inline

SXQgd2lsbCBvbmx5IHdvcmsgaWYgeW91ciBsaXN0aW5nIHN1cHBvcnRzIHBo cCwgYnV0IHlvdSBz
aG91bGQganVzdCBiZSBhYmxlIHRvIHB1dCB0aGUgd2hvbGUgc3VyZSB1cCBv biB5b3VyIGhvc3Rp
bmcsIGdpdmUgdGhlIHVwbG9hZCBkaXJlY3RvcnkgdGhlIGNvcnJlY3QgcGVy bWlzc2lvbnMgKCBp
dHMgbW9zdCBsaWtlbHkgYSBtb3JlIHNlY3VyZSBMaW51eCBob3N0aW5nIHRo YW4gaW5zZWN1cmUg
d2luZG93cyBob3N0aW5nKSAKClRoYW5rcywKQXNoCmh0dHA6Ly93d3cuYXNo bGV5c2hlcmlkYW4u
Y28udWsKCi0tLS0tIFJlcGx5IG1lc3NhZ2UgLS0tLS0KRnJvbTogIkNvbCBE YXkiIDxjb2xpbmRh
eTNAYW9sLmNvbT4KRGF0ZTogVGh1LCBPY3QgNywgMjAxMCAwODozMwpTdWJq ZWN0OiBbUEhQXSBS
ZTogQ29udGludWFuY2Ugb2YgdGhlIHN0cnVnZ2xlICh0cnlpbmcgdG8gdW5k ZXJzdGFuZCkKVG86
IDxwaHAtZ2VuZXJhbEBsaXN0cy5waHAubmV0PgoKTW9ybmluZyBhbGwsCgpB cG9sb2dpZXMgZm9y
IHRoZSBkZWxheSwgSSd2ZSBqdXN0IGJlY29tZSBhIERhZCBmb3IgdGhlIGZp cnN0IHRpbWU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Lm5ldC8pClRvIHVu c3Vic2NyaWJlLCB2
aXNpdDogaHR0cDovL3d3dy5waHAubmV0L3Vuc3ViLnBocAoK


------=_Part_0_1286438412568--

Report this message

#2: Re: Re: Continuance of the struggle (trying to understand)

Posted on 2010-10-07 14:25:40 by Steven Staples

Col:

Congratulations on becoming a father!! As a father of 3 myself, I know
the joys that infants bring :)

As for your scripting issues, I would suggest that you save your files
with the .php extension, and not the .html. The .php extension will
tell the php compliler/parser/whatever and spit back the "compiled" php
script.

If you're looking to just have a "photo gallery", there are many
free/opensource gallery scripts out there that you can use. Mind you,
there is no "sense of accomplishment" when you do it this way, but if
you're unsure about security, and file injection/sql injection, then you
may be better off using one of those, until you're further along in your
book :)

http://www.google.ca/#sclient=psy&hl=en&q=opesource+php
+gallery&aq=f&aqi=g-sx1g-o1&aql=&oq=&gs_rfai=&pbx=1&fp=f85a0 cf66583c3ac

in the past, I set up coppermine for a friend of mine, and he said it
works ok... but like I said, there are lots out there, and maybe
consider using one of them for now, so you can spend more time with your
new baby :)

Steve.



On Thu, 2010-10-07 at 09:00 +0100, ash@ashleysheridan.co.uk wrote:
> It will only work if your listing supports php, but you should just be able to put the whole sure up on your hosting, give the upload directory the correct permissions ( its most likely a more secure Linux hosting than insecure windows hosting)
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
> ----- Reply message -----
> From: "Col Day" <colinday3@aol.com>
> Date: Thu, Oct 7, 2010 08:33
> Subject: [PHP] Re: Continuance of the struggle (trying to understand)
> To: <php-general@lists.php.net>
>
> Morning all,
>
> Apologies for the delay, I've just become a Dad for the first time so a
> little distracted!
>
> If I explain exactly what I am trying to do then it may become clear as to
> where I'm going wrong.
>
> Needless to say, new baby so want to show him off (Callum, 7lb4oz) so
> decided to buy a webname and pay for hosting, however money is a bit tight,
> so being adventurous (or stupid, not sure which yet) I set up apache on my
> laptop and started writing a website in Serif's WebPlus10. However I wanted
> to have an upload area on the site for friends and family to send their
> pictures of Callum (and the family and anything else they wanted) so there
> was a central "store". However I tried to find some html to handle the
> upload of these files but wasn't able to work it out, google and various
> other bitsx of research on the net showed that I probably needed to run a
> script to do this and PHP seemed the simplest, so I downloaded PHP 5.3.3 and
> installed it.
>
> This is where it started getting tricky as I was using the PHP for dummies
> book from 2006. I typed that piece of code in (direct from the book) but
> added it as an html attachment into my site I was building. Uploaded the
> site to my localhost and had a look. I only got the HTML line from the
> script. This is where I started contacting you bunch of fine programmers!
>
> I have now learned that if I save the script as a .php file and navigate
> direct to it on localhost it works fine, but I think what I am trying to do
> is get it to work in an existing webpage so that I can then get my upload
> working.
>
> Any help you can offer from explanantions to whole bits of code will be
> greatly received!
>
> Many thanks!
>
> "Steve Staples" <sstaples@mnsi.net> wrote in message
> news:1286281586.4703.63.camel@webdev01...
> > Col:
> >
> > If i am reading this correctly, then i think you're looking at this all
> > wrong.
> >
> > If you're working within some kind of page, stored outside of the
> > http://localhost served by apache, like say the .php file is on the
> > desktop... then yeah, you're not going to get the PHP information
> > displayed.
> >
> > (tech people bare with me here...)
> > PHP pages, are "compiled" when called... so you need apache to call php
> > and translate the PHP code so that if there is any output, it will
> > display that output.
> >
> > If you're trying to show a .php file from teh desktop, then apache isn't
> > handeling this request, and therefor has no idea that there is php code
> > that has to be compiled, and therefore it will just ignore it.
> >
> > I am sure that I am goign to get flamed for that, but i think that it
> > kinda simplifies what apache does for php.
> >
> > NOW... you can run a php file from the command line, but you're not
> > going to get the HTML results as you would had you ran if from the
> > localhost where apache knows what to do with a .php file.
> >
> > So... long story short, if you want PHP to display the PHP stuff, then
> > you will need to have it interpreted by apache (or IIS, or whatever your
> > web server software is) to have it spit back to a web browser client.
> >
> > Hopefully this makes sense, it is early here, i am just getting into
> > work :(, and it made sense while i was typing it... but my coffee intake
> > has not had time to work it's wonderful magic with me yet, so my
> > thoughts may be scattered.
> >
> > Steve
> >
> >
> >
> > On Tue, 2010-10-05 at 12:57 +0100, Col Day wrote:
> >> LOL!
> >>
> >> This is WITH xammp!!
> >>
> >>
> >>
> >> "Gary" <php-general@garydjones.name> wrote in message
> >> news:i8f26m$j4r$2@dough.gmane.org...
> >> > Col Day wrote:
> >> >> ""Col Day"" <colinday3@aol.com> wrote in message
> >> >> news:23.81.45586.2820BAC4@pb1.pair.com...
> >> >>> <html>
> >> >>> <head>
> >> >>> <title>PHP Test</title>
> >> >>> </head>
> >> >>> <body>
> >> >>> <p>This is an HTML line
> >> > </p> <!-- close your tag, you evil man! :-) -->
> >> >>> <?php
> >> >>> echo "<p>This is a PHP line</p>";
> >> >>> phpinfo();
> >> >>> ?>
> >> >>> </body>
> >> >>> </html>
> >> >
> >> >> If I paste this into a webpage I only get the "HTML" line as before.
> >> >
> >> > What do you mean, "webpage"? foo.php, for example, or foo.html? If the
> >> > latter then I am guessing your Apache will serve the page purely as
> >> > html, and it will never be processed by php. If the former then check
> >> > that Apache is configured to run php files through php before serving
> >> > them (must admit, I'm not sure how to do that, it depends on your
> >> > Apache
> >> > and PHP). Or, really, just install xampp, it's by far the easiest way
> >> > and will avoid all the problems associated with configuring two rather
> >> > complex pieces of software.
> >> >
> >>
> >>
> >
> >
>
>


--

Steve Staples
Web Application Developer
519.258.2333 x8414


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this message