Jump to content

redbullmarky

Staff Alumni
  • Posts

    2,863
  • Joined

  • Last visited

    Never

Everything posted by redbullmarky

  1. for simple stuff (ie, just updating, no fancy tricks), I just use a bit of my own code for AJAX. When it gets a bit more complex or I'm looking for something special, then [url=http://script.aculo.us/]script.aculo.us[/url] is great. having said that, i've also been looking at [url=http://mootools.net/]mootools[/url] too.
  2. try [url=http://www.php.net/str_replace]str_replace[/url]
  3. wont CSS do? border:1px solid #000
  4. take a look at [url=http://www.php.net/preg_replace]preg_replace[/url] in the manual. just kidding. what are you trying to match exactly? can you be a little more specific of what you're trying to do? cheers
  5. was this: $data = nl2br($date) a typo in your post, or a typo in your code? [code] $data = nl2br($data); [/code]
  6. yes but you're not capturing its return. you need [code] $data = nl2br($data); [/code]
  7. [url=http://www.php.net/nl2br]nl2br[/url]?? [b]edit[/b]: pipped again ;)
  8. [quote] Why was my post edited...? [/quote] because i put [ code] [ /code] tags which makes things about 4,000,000 times easier to read. otherwise, nothing was changed.
  9. have you double checked that you've got a 'session_start()' in the script in question?
  10. you say "breaks" - but you dont give an example mentioning who/how/why/what/when etc. "Breaks" is quite a general term here - can you be more specific, especially with the results you're getting?
  11. UNLESS you mean (when you refer to running a network) the login page that you'd get if you set a password on Windows itself, not just a general web-based login screen or HTTP auth? If that's the case, I'm really not sure it's possible due to permissions looking at/reading the local filesystem. am i missing the point totally?
  12. i'm still lost. at which point in your process do you collect the username/password from the user to sign in in the first place?
  13. you missed one: [quote] 3. should i learn to walk before i run? [/quote] yep. There are plenty of places you can find via Google. You need a host (to store the files), a domain name, and some knowledge of the HTML/PHP. Don't expect to just be able to throw these scripts together and all will be fine and dandy - you'll need to do your homework first.
  14. if it's free, then surely worth a go... if it's rubbish after all, then eBay is your friend ;)
  15. erm...look over some tutorials and get the basics down?
  16. if, in the case of the page being called directly (ie, no HTTP_REFERER set) then you're gonna end up with <a href="" title="Return">Return</a>. Some browsers I believe can mask the REFERER anyway. which i do believe will cause a click of the link to actually load the current page. Right click/View Source and you'll see what I mean. To be honest, it's a pretty poor way of implementing this type of thing, so not exactly sure why you see fit to try it this way...?
  17. maybe at this stage it'd be better to follow obsidians advice and look through Smarty (as well as templates such as bTemplate, phpSavant, etc) to see how they work.
  18. no. content would be your fully parsed HTML for the sub-page - so effectively just a string.
  19. then post the result of your attempt and we can go from there....
  20. [quote author=bigshwa05 link=topic=123511.msg510541#msg510541 date=1169479563] The field type is PRIMARY [/quote] ;D i think jesi means the datatype itself, eg INT, VARCHAR, etc
  21. yeah. check that there are write permissions on the directory you are saving to, and if not you'll need to chmod it to allow write access.
  22. any errors? try changing the last imagejpeg line to just: imagejpeg($tn); just to see if the image is being created in the first place and being output.
  23. take a look at [url=http://www.php.net/preg_replace]preg_replace[/url]
  24. as far as i know, the original and suggested methods are not going to work due to the different headers required to send both an image and a picture. you cant send two content headers from the same script (the other being the default - text/html) move all your PHP from before your DOCTYPE into a new file, called (for example) image.php. then where you want the image, you need: [code] <img src="/image.php" alt="" /> [/code]
  25. JJohnsen, as the $fullpath var is enclosed by double quotes, it should work fine - although unnecessary. taking a guess, you might not have sufficient priveliges set up in your php.ini file that allows running of command line tools: [code]         passthru("ls -l -F $dirstr 2>&1 "); [/code] it maybe worth looking at some of PHP's directory/file handling functions to put together a suitable replacement, or changing the setting (the safe_mode ones i think - take a look at [url=http://uk2.php.net/passthru]the manual for passthru[/url]) in your php.ini file to allow access to command line tools like 'ls' cheers
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.