
betterphp
Members-
Posts
122 -
Joined
-
Last visited
Never
Everything posted by betterphp
-
unexpected T_OBJECT_OPERATOR error - DOM Parser
betterphp replied to Marvin0410's topic in PHP Coding Help
what php version is your host using ? -
Using PHP to encrypt/decrypt data to and from the database
betterphp replied to Hobbyist_PHPer's topic in PHP Coding Help
Are we ever going to get an answer ? I'm curious now . -
How to run mailserver from localhost?
betterphp replied to n3xtgen's topic in PHP Installation and Configuration
That is assuming the ISP provides open SMTP server access. -
php not reading/loading extension
betterphp replied to haku's topic in PHP Installation and Configuration
you would run php -r "echo 'test';" at a terminal prompt. Sorry for not getting back to you for so long -
Using PHP to encrypt/decrypt data to and from the database
betterphp replied to Hobbyist_PHPer's topic in PHP Coding Help
what do you mean exactly. encrypting data between mysql and php or php and the browser ? or just things like password in the database ? -
Performace problem in export excel from data base entries..
betterphp replied to redfort's topic in PHP Coding Help
you can increase the performance of your script by tidying up the code and removing necessary bits and by using built in functions where possible instead of your own code. Concentrating on the loops will get you the most gain. You could also have the script run every hour say and generate a static file, which would allow quicker downloads of the file at the cost of a bit of dynamic-ness. And for the download time, get a faster connection or make the file smaller. -
keyboard-interactive ... doe that just mean typed in the shell ? If so you probably want the third one in that list. I may have completely misunderstood :-\
-
Displaying current date on an image
betterphp replied to SecretBeggining's topic in Application Design
Well if you are a beginner you have jumped in with somethign is a bit of a pain really. what you need to do is create an image resource form the file using somethign like imagecreatefrompng() then write on that image using either imagestring() or imagettftext(). Finally you need to output the image to either the screen or a file using somethign like imagejpeg() there are examples of all of those functions on their php.net pages. -
php not reading/loading extension
betterphp replied to haku's topic in PHP Installation and Configuration
what about trying php from the shell ? That is most likely to tell you why the module cannot be loaded. -
$_POST = array_map('strip_tags', $_POST); no need for this line as your filter function does it anyway. and its in that filter function that you want to do the preg_replace. The problem is http://www.spam.com can also be just spam.com which looks a lot like words. But if you google "url matching regex" you will get loads of expressions that match urls then you just use preg_replace $data = preg_replace(EXPR, '', $data); after the trim line in the filter() function.
-
php not reading/loading extension
betterphp replied to haku's topic in PHP Installation and Configuration
I think it should be extension = "memcached.so" but if you are not getting start-up errors that its obviously fine the way you have it. Everything looks right as you say, does the -k you pass to apache2ctl mean graceful reload ? if so you need to not do that. I usually call the init.d script directly to restart /etc/init.d/apache2 restart although if you are restarting the server then it should be fine. If you try somethign from the command line like php phpinfo.php where phpinfo.php is just a file that does phpinfo() you might get an explanation as to why its not loading. -
How to run mailserver from localhost?
betterphp replied to n3xtgen's topic in PHP Installation and Configuration
I'm not sure about WampServer but I know XAMPP comes with Mercury for email, do you have anything similar ? -
the unread posts link actually shows unread topics :-\
-
Please some one help on ftp_login() error
betterphp replied to vapanchamukhi1's topic in PHP Coding Help
Are you using some kind of Microsoft FTP server, according to this http://www.net2ftp.org/forums/viewtopic.php?id=3759 that could be the problem. -
That's close enough, thanks for the tip
-
in what order ? You may be creating a security issue. The method you described would work, although the regexp would be a tricky one to write
-
I don't really understand the question here... You can add an element like this $shop[] = array(1, 2, 3);
-
That's a pain, ah well thanks for answering
-
include("http://www.tugtracker.co.uk/menu/extras/php_sitemap/mm_dataminer.php"); this stands out to me, do you have url_includes enabled ?
-
Working HTML code gets f**ked up in PHP with IE in Compatibility Mode
betterphp replied to AntoLeNice's topic in HTML Help
Display thing shave nothing to do with php at all. The best thing you can do is validate the page. -
hey, Is there a way (on this forum) that I can see all of the posts that have been posted since my last visit that have 0 replies ? I can seem to see anything like that anywhere and it would be pretty useful as I don’t have 23 hours of my day free to watch the millions of posts that appear
-
<? is the short version of <?php you may need to output those directly with php to avoid this <?php echo '<?'; ?> bit untidy.
-
can you not wait more than 2 hours !! Unknown column 'Violinrocker' in 'field list' means you have the wrong column name, simple as that.
-
You will only be able to store data, not an active resource like a connection or a file pointer. I don’t see why you would want to store the connection like this :?