Forum: PHP Aug 2nd, 2009 |
| Replies: 6 Views: 7,224 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: 473 http://php.net/curl
is a good place to start |
Forum: PHP Aug 13th, 2008 |
| Replies: 3 Views: 736 try using
system ( string command [, int return_var]) |
Forum: PHP Apr 23rd, 2008 |
| Replies: 4 Views: 2,485 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: 805 try printing the sql statement before executing it
that could help u |
Forum: PHP Mar 31st, 2008 |
| Replies: 2 Views: 444 |
Forum: PHP Mar 31st, 2008 |
| Replies: 3 Views: 1,232 |
Forum: PHP Dec 10th, 2007 |
| Replies: 4 Views: 10,188 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: 683 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: 654 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,104 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,440 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: *nix Software Oct 20th, 2007 |
| Replies: 3 Views: 2,004 |
Forum: *nix Software Oct 20th, 2007 |
| Replies: 3 Views: 2,004 what i need to do is to enable the frontpage on the hosting server im administering
(what i mean is editing pages from the client using frontpage , i never tried to use this way and i dont know why... |
Forum: PHP Oct 20th, 2007 |
| Replies: 6 Views: 4,173 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,751 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: *nix Software Sep 20th, 2007 |
| Replies: 1 Views: 930 i had s system crash and then my gnome gone crazy
how could i reinstall it or fix?
anyway i could check it for missing files or something ........?
BTW : i have ubuntu 7.04 |
Forum: Window and Desktop Managers Sep 20th, 2007 |
| Replies: 5 Views: 1,608 well
i did an
apt-get remove nautilus
apt-get install nautilus
but still nothing changed
i guess there is a problem in gnome |
Forum: Window and Desktop Managers Sep 19th, 2007 |
| Replies: 5 Views: 1,608 :|
anything else..........
i dont think im gonna take that risk |
Forum: Window and Desktop Managers Sep 19th, 2007 |
| Replies: 5 Views: 1,608 |
Forum: Window and Desktop Managers Sep 19th, 2007 |
| Replies: 5 Views: 1,608 hi
once upon the time there was a gnome just working so nicely and quitley when a crash happened the system admin rebooted the and then "fsck" came out and asked him to do another fsck manually... |
Forum: *nix Hardware Configuration Sep 8th, 2007 |
| Replies: 8 Views: 6,689 thnx alot for anyone helped here
i figured out that there is something in the
system->prefs.->screen resoltion
"make default ..."
i just checked it and it turned everythin ok
thnx alot again... |
Forum: *nix Hardware Configuration Sep 8th, 2007 |
| Replies: 8 Views: 6,689 sorry man
still not working
i did just exactly as u said |
Forum: *nix Hardware Configuration Sep 8th, 2007 |
| Replies: 8 Views: 6,689 |
Forum: *nix Hardware Configuration Sep 8th, 2007 |
| Replies: 8 Views: 6,689 # nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildmeister@builder3) Thu Nov 9 17:56:12 PST 2006
Section "ServerLayout"
Identifier ... |
Forum: *nix Hardware Configuration Sep 8th, 2007 |
| Replies: 8 Views: 6,689 hi
i have an ubuntu 7.04 and nvidia card
i use nvidia-settings to change the resolution and then i save the conf to the file and it is so cool
the problem is whenever i restart my window manager... |
Forum: PHP Aug 27th, 2007 |
| Replies: 1 Views: 1,076 i guess u should do it on each file |
Forum: PHP Aug 27th, 2007 |
| Replies: 4 Views: 1,411 |
Forum: PHP Aug 27th, 2007 |
| Replies: 4 Views: 1,411 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,178 could u explain more
and in a little detail |
Forum: PHP Aug 27th, 2007 |
| Replies: 29 Views: 4,186 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: IT Professionals' Lounge Aug 23rd, 2007 |
| Replies: 18 Views: 3,723 if u want to install ubuntu
after booting from the cd normally
you shold find some icon on the desktop says "install" it is gonna launch a wizard wich includes a partitioning tool
it is not that... |
Forum: Windows Software Aug 23rd, 2007 |
| Replies: 11 Views: 1,770 i would say NOD32 it is effective and it si light on the PC resourses
i had too many probels with antivirus software but i solved'em all
know how.....?
i installed Linux :P |
Forum: Windows Software Aug 21st, 2007 |
| Replies: 0 Views: 801 hey
anyone have an idea how to create a cert on iis
or where to buy one |
Forum: PHP Jul 19th, 2007 |
| Replies: 12 Views: 4,244 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,244 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,354 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,244 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,972 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... |