| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
Comments:
<0> :) <1> n/p <1> i'd rely on the email form idea, or the user inputting their email address to recieve the list of e-mails that way <0> hm, graphics or pdf, or maybe have javascript write to the htmlarea of a div <1> cause all the spider is really looking for is the anchor tag with the mailto: <0> <html><link rel="javscript/txt" href="./addresses.js"/><body onLoad="write_addr()">My address is <div id='emailaddr'></div> if you wish to mail me.</body></html> ||| js page||| function write_addr(){document.getelementbyid('emailaddr').innerText='name@domain.com';} <1> worth a shot :o <2> is E_NONE a valid error reporting thing? <2> *constant rather <3> after using an image with gd, is there any chance to save that image to disk ? cant fing the right function :s <1> kaydara: http://www.php.net/manual/en/function.imagejpeg.php <1> it will either output it to a browser or a file <1> make sure the folder path has the correct chmod <1> Narada: yes <3> thanks <1> Narada: http://ro2.php.net/manual/en/function.error-reporting.php and http://ro2.php.net/security.errors
<4> please suggest me a good php album/gallery application, thanks <1> DavidHKMrPowers: http://www.google.com/search?q=php+album+gallery <1> check out the 2nd and 3rd result <1> they're not bad <1> SPGM is pretty nice <5> aidan i need a name for my next project <4> dschreck: thanks, I think the Gallery is difficult to use.. <6> its easy <1> DavidHKMrPowers: there's also coppermine <1> a little 'prettier' <7> What is the option in httpd.conf that allows for a 'full file listing in a directory' to show up, if there is no index.html ? i.e. so that it allows someone to see the contents of a directory? <4> dschreck : :) <6> CarlH : DirectoryIndex index.html index.php main.php <6> <IfModule dir_module> <6> DirectoryIndex index.html index.php main.php <6> </IfModule> <1> CarlH: check out: Options, also, DocumentRoot options should be set to Indexes, Indexes permits the server to generate a directory listing <1> http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-apache-config.html <-- Check out 10.5.25. Options <8> Macca`: what does it involve? <5> aidan it's basically a replacement for ms access <5> well it is... but using firebird or mssql 2005 express <5> and better <5> and using C# instead of vba :D <5> need a name before i start anything <8> maccasoft? :P <8> I still have a copy of your editor <5> phpeditor? <5> haha <5> does it still keep crashing? :) <8> I don't think it's crashed on me ever <5> you use it? <5> so what do i call it? <5> eh? <9> is there anyway to redirect a "domain alias" <9> ;/ <1> complexity: from apache? <9> nah <9> .htaccess or a phpscript <9> redirect to a domain alias for example www.php.com to www.php.com/forum/ <5> put a file index.php into the root directory with the line: <?php header('http://www.php.com/forum/'); ?> <1> http://www.webforumz.com/php-forum/4352-domain-alias-redirection-with-php.htm <1> complexity: solution is in the 2nd post <4> my web hosting does not allow me to upload .htaccess ! what can I do to replace some functions of it!? <10> DavidHKMrPowers: Rewrite the logic, how the PHP sites are accessed (or change hosts) <11> how do i get a form element declard with id instead of name? (xhtml) <4> Stormchaser: some php applications contain .htaccess to prevent public to access in content folders, actually, would it be the same if I just chmod the folders as, say, 770? <1> with javascript: var obj = document.getElementById('elementIDorNAME'); <10> DavidHKMrPowers: That depends on the .htaccess, because .htaccess isn't just 'allow, deny' <7> Re: My last question concerning indexes in Apache, does XP not allow indexes? <11> DavidHKMrPowers: in php <10> #apache <11> dschreck, i mean <1> GrayShade: not sure why you'd want the id instead of the name of a form for PHP... perhaps you could explain what you're trying to accomplish? <11> future xhtml compatibility :/ <9> dschreck, well, thanks, i guess i'm to much of a newb to figure it out <4> GrayShade: what did you mean by "in php" ? <1> GrayShade: for xhtml compatiable you need name="specialName" id="specialName" for the input. (they should be the same) <1> GrayShade: So you'd handle them as normal with PHP, $_POST['specialName']
<1> or $_GET <1> complexity: what do you mean? <9> i have no clue what part of that tiny file, i need to edit, it doesn't add up to me <12> Is there a PHP equivalent to Python's "if itemFoo in ListBar:"? <9> i put it in my htaccess file, and it just showed the code on the webpage <8> deitarion: in_array <12> aidan: thanks. <8> deitarion: not it's a function not an operator <8> deitarion: note* <12> yeah. That's not a big deal. <12> ...and I did notice that <8> good :) just making sure I didn't confuse you with if itemFoo in_array ListBar: :) <1> complexity: PM me, i'll walk you through it <12> I've been programming for years and I've yet to see an operator longer than 4 characters or containing an underscore. <5> aidan... ? <8> Macca`: oh I'm in chadstone, ashburton <5> wasn't asking that <5> was asking what to name it! <12> Also, is there a cleaner alternative to this? --> if ($_POST['foo'] == 'bar' || $_GET['foo'] == 'bar') <8> oh <5> :) <8> you want macca in it? <8> macaccess <5> no <5> the name for the app <5> maccasoft blah blah blah <5> (replace 'blah blah blah' with the name) <8> well, it's providing access to data via a programable gui <8> let us call it, access-to-data-via ... :P <5> right <5> haha <12> It's for a mode variable which can be set by both forms and links. (although it will always trigger a login box if the user isn't logged in) <5> if i do this right... it could be the next best thing since sliced bread! <13> Nothing beats me being sliced ;) <8> I've got nothign :( <12> "What's so great about sliced bread? You've got a knife, you've got a loaf of bread, slice the ****in' thing! ...and get on with your life." -- George Carlin <5> aidan, me too. <5> it ****s <5> i really want to start it <5> but hate starting apps name-less <8> yeh me too. <8> accessi <5> gotta worry about copyright laws <1> deitarion: not really... if you're allowing both ways of setting the variable. Btw, if you have E_NOTICE on PHP will be barking at your that you're trying to check an undeclared variable. or something like that... <14> hello <12> dschreck: I guess I'll just implement a trio of checking functions then which call isset and then either one of them, or both, depending on the function. <15> is there a way to break out of an IF statement? <8> blah <8> bed for me <8> night Macca` <5> nn aidan <12> somethiong like check_opt_get, check_opt_post, and check_opt_both (check optional _____ [var]) <12> My main complaint about PHP has been it's lack of Python-like design decisions which would ease code readability/understandability (eg. namespaces) <1> WildPikachu: you mean to stop going through it, or to break out of the program? PHP offers the function : exit; and die; you can use a break; in a switch case <12> Whenever I read someone else' code, I have do dive through their entire tree to find where a function is defined. <15> well, i'm trying to cleanup some code ... but there is nasty embedded IF's like 58deep <15> grr 8 deep <1> deitarion: i've always favored the approach that my variables can only be set one way. if it's gonna be in a link, it stays there. if it's gonna be from a form, it stays that way <15> if (!$error) { if (!$err2) { if (!$err3) { <15> basically like there <16> deitarion, in reality, its a limitation of the people whose code you read, as if you write right, PHP will be just as neat and organized as a python script <15> s/there/that/ <10> WildPikachu: Ew. <15> yea <16> however, PHP doesn't force document neatness upon you, so its up to you to create a set of coding standards and conventions to do the right thing <12> masquerade: Obviously. Whenever I take over someone else' Python project, the first thing I have to do is translate from that idiotic "from foo import ..." syntax. (or if they come from Java, the even worse "from foo import *". <12> ) <12> It's useful, but it gets abused far too much. <17> good morning all - looking for a function to remove a query param from a $_GET string. Before I write one - does anyone have one to share? <1> zbq: http://pastebin.com/535215 <17> dschreck: Thanks very much - looks like exactly what I need! <2> does the trans id only apppend PHPSESSID to url if cookies can't be set? <2> or does it do it all the time
Return to
#php or Go to some related
logs:
#web #math #python linux firefox already running grub loading error 22 ubuntu #fluxbox type='images/x-icon' openmotif printproto emerge yum install ndiswrapper-kmdl XTest library xubuntu
|
|