Forum: PHP Aug 2nd, 2009 |
| Replies: 6 Views: 7,294 try this one
<?php
$allowed_age = 19;
$bdate = strtotime($_REQUEST['y'].'-'.$_REQUEST['m']."-".$_REQUEST['d']);
$age = (time()-$bdate)/31536000;
if($age >= $allowed_age) {
header('Location:... |
Forum: PHP Sep 13th, 2008 |
| Replies: 1 Views: 476 http://php.net/curl
is a good place to start |
Forum: PHP Aug 13th, 2008 |
| Replies: 3 Views: 751 try using
system ( string command [, int return_var]) |
Forum: PHP Apr 23rd, 2008 |
| Replies: 4 Views: 2,529 you can use a php file in the url instead of the real pdf name.
this file should check the owner of the file then
prints the contents of the file (echo)
with the apropriate... |
Forum: PHP Mar 31st, 2008 |
| Replies: 9 Views: 812 try printing the sql statement before executing it
that could help u |
Forum: PHP Mar 31st, 2008 |
| Replies: 2 Views: 450 |
Forum: PHP Mar 31st, 2008 |
| Replies: 3 Views: 1,236 |
Forum: PHP Dec 10th, 2007 |
| Replies: 4 Views: 10,299 you could change the encoding of the page from utf-8 to windows-1256
i guess that would work better |
Forum: PHP Dec 10th, 2007 |
| Replies: 1 Views: 684 there is special programs offers status about the websites
you need to install one like this
i guess one of them called awstat |
Forum: PHP Dec 6th, 2007 |
| Replies: 3 Views: 662 if im getting this right you are trying to insert some value from php into the js
if so you could do it like this
<?php echo "<script>some-js-code-with-$varableName</script>"; ?> |
Forum: PHP Dec 6th, 2007 |
| Replies: 3 Views: 4,139 so i guess you need to calculate days (mon-friday)
and to exclude sat & sun
is that it? |
Forum: PHP Nov 21st, 2007 |
| Replies: 6 Views: 1,449 u can put a page on the local server
which takes the request and prints out the result
the from your code u can call that page
through CURL request
and handle the output |
Forum: PHP Oct 20th, 2007 |
| Replies: 6 Views: 4,215 i have something like this
i insert data into db
in the db the data is not readable
but when select it on a php page
everything goes well
so the application is running anyway |
Forum: PHP Sep 23rd, 2007 |
| Replies: 0 Views: 1,777 how to force a page to some character set?
im not talking about the meta thing
what i need is something like yahoo mail beta
when u change the character set the page rechange it to the one... |
Forum: PHP Aug 27th, 2007 |
| Replies: 1 Views: 1,088 i guess u should do it on each file |
Forum: PHP Aug 27th, 2007 |
| Replies: 4 Views: 1,425 |
Forum: PHP Aug 27th, 2007 |
| Replies: 4 Views: 1,425 looks like the script is trying to access files outside the website scope (the folder it is allowed to access files in)
and also trying to change the permissions of some file
u should check the... |
Forum: PHP Aug 27th, 2007 |
| Replies: 4 Views: 4,237 could u explain more
and in a little detail |
Forum: PHP Aug 27th, 2007 |
| Replies: 29 Views: 4,206 the only thing that could be wrong is u have something u are not seing
so u could rewrite the code again
maybe..........
;P |
Forum: PHP Jul 19th, 2007 |
| Replies: 12 Views: 4,277 i dont think so..!
it is widely known when validating the input that allowing only the accepted characters is more better than preventing the non-acceptable ones , if the user enters data in another... |
Forum: PHP Jul 18th, 2007 |
| Replies: 12 Views: 4,277 well what u did was the black list thing
and what i did is white one
it may look the same
but it is not! |
Forum: PHP Jul 18th, 2007 |
| Replies: 14 Views: 1,364 this code is so fine
are u sure the code u r trying is the same u posted !!!!! |
Forum: PHP Jul 18th, 2007 |
| Replies: 12 Views: 4,277 preg_replace( "/[^a-zA-Z0-9_]/", "", $stringToFilter );
i guess this could work for your case
replacing everything that is not char. or digit with whitespace |
Forum: PHP Jul 11th, 2007 |
| Replies: 18 Views: 3,997 if u want a way to tell thats a page is submitted or just loaded
u could use a hidden input in the form
then check if the name of this var is in the $_POST
then it is submitted else it is just... |
Forum: PHP Jul 11th, 2007 |
| Replies: 1 Views: 1,096 hey
i have this problem giving me a painful headache and sleeplessness
ive got these .prn files which should converted into DB
and these files contain numbers along with arabic characters the... |
Forum: PHP Jul 10th, 2007 |
| Replies: 8 Views: 6,197 why not use xml
it is easier to handle |
Forum: PHP Jun 27th, 2007 |
| Replies: 5 Views: 831 ok man thanks alot
but i dont think it worth it i could did it using get
i knew i could before
but i just wanted to know if it is possible
thnx again |
Forum: PHP Jun 27th, 2007 |
| Replies: 5 Views: 831 thnx man for ur reply ...
but are u sure cuz i guess it worked one time with me !!!
just i lost the code and it didnt work again |
Forum: PHP Jun 26th, 2007 |
| Replies: 5 Views: 831 hey guys
my question is .......
can the session be used to send data from an asp page to a php
and vice-versa ???????????
anyone have an idea about that.
thnx anyway |
Forum: PHP Jun 25th, 2007 |
| Replies: 7 Views: 3,353 if u just want an editor with keywords highlighting i suggest Notepad++ (http://notepad-plus.sourceforge.net/uk/site.htm) a very lightweight editor
if u want code completion i guess the best is... |
Forum: PHP Jun 25th, 2007 |
| Replies: 2 Views: 755 |
Forum: PHP Jun 25th, 2007 |
| Replies: 7 Views: 1,740 anytime man
and thanks for sharing this class with us |
Forum: PHP Jun 20th, 2007 |
| Replies: 10 Views: 2,869 what is the web server u r using ??? |
Forum: PHP Jun 20th, 2007 |
| Replies: 7 Views: 1,740 this could be done on the server
u set the access to the folder to be windows authentication
i guess u r using iis as a web server ??
if so it is easy to be done on iis |
Forum: PHP Jun 19th, 2007 |
| Replies: 10 Views: 2,869 the pdfLib should not be installed in the htdocs
i geuss it should be installed in the /usr/local
u should refer to the pdflib website and see the installation guide |
Forum: PHP Jun 18th, 2007 |
| Replies: 7 Views: 1,740 why dont u use windows authentication
so when the user log's in the website it asks him about his username and password of windows!
then he can open only permitted folders
just like he is logging... |
Forum: PHP Jun 17th, 2007 |
| Replies: 4 Views: 1,052 man echo the sql syntax to have a clearer view |
Forum: PHP Jun 17th, 2007 |
| Replies: 10 Views: 2,869 it looks like u didn't configure php to handle pdf files....
u need to install the pdflib and enable in php.ini
in-case u want to use these functions |
Forum: PHP Jun 17th, 2007 |
| Replies: 7 Views: 1,740 file group on windows ....?
it doesnt make a sense |