redbullmarky
Staff Alumni-
Posts
2,863 -
Joined
-
Last visited
Never
Everything posted by redbullmarky
-
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.
-
mysql_real_escape_string breaking \n
redbullmarky replied to Nolongerused3921's topic in PHP Coding Help
try [url=http://www.php.net/str_replace]str_replace[/url] -
wont CSS do? border:1px solid #000
-
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
-
mysql_real_escape_string breaking \n
redbullmarky replied to Nolongerused3921's topic in PHP Coding Help
was this: $data = nl2br($date) a typo in your post, or a typo in your code? [code] $data = nl2br($data); [/code] -
mysql_real_escape_string breaking \n
redbullmarky replied to Nolongerused3921's topic in PHP Coding Help
yes but you're not capturing its return. you need [code] $data = nl2br($data); [/code] -
mysql_real_escape_string breaking \n
redbullmarky replied to Nolongerused3921's topic in PHP Coding Help
[url=http://www.php.net/nl2br]nl2br[/url]?? [b]edit[/b]: pipped again ;) -
mysql_real_escape_string breaking \n
redbullmarky replied to Nolongerused3921's topic in PHP Coding Help
[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. -
have you double checked that you've got a 'session_start()' in the script in question?
-
mysql_real_escape_string breaking \n
redbullmarky replied to Nolongerused3921's topic in PHP Coding Help
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? -
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?
-
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?
-
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.
-
if it's free, then surely worth a go... if it's rubbish after all, then eBay is your friend ;)
-
erm...look over some tutorials and get the basics down?
-
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...?
-
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.
-
no. content would be your fully parsed HTML for the sub-page - so effectively just a string.
-
then post the result of your attempt and we can go from there....
-
[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
-
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.
-
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.
-
[SOLVED] getting a string replace to ignore HTML
redbullmarky replied to coalduststar's topic in PHP Coding Help
take a look at [url=http://www.php.net/preg_replace]preg_replace[/url] -
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]
-
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