Search Results

Showing results 1 to 40 of 101
Search took 0.01 seconds.
Search: Posts Made By: w_3rabi ; Forum: PHP and child forums
Forum: PHP Aug 2nd, 2009
Replies: 6
Views: 7,294
Posted By w_3rabi
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
Posted By w_3rabi
http://php.net/curl
is a good place to start
Forum: PHP Aug 13th, 2008
Replies: 3
Views: 751
Posted By w_3rabi
try using
system ( string command [, int return_var])
Forum: PHP Apr 23rd, 2008
Replies: 4
Views: 2,529
Posted By w_3rabi
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 Apr 2nd, 2008
Replies: 4
Views: 774
Posted By w_3rabi
Forum: PHP Mar 31st, 2008
Replies: 9
Views: 812
Posted By w_3rabi
try printing the sql statement before executing it
that could help u
Forum: PHP Mar 31st, 2008
Replies: 2
Views: 450
Posted By w_3rabi
windows is ok
Forum: PHP Mar 31st, 2008
Replies: 3
Views: 1,236
Posted By w_3rabi
Forum: PHP Dec 10th, 2007
Replies: 4
Views: 10,299
Posted By w_3rabi
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
Posted By w_3rabi
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
Posted By w_3rabi
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
Posted By w_3rabi
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
Posted By w_3rabi
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
Posted By w_3rabi
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
Posted By w_3rabi
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
Posted By w_3rabi
i guess u should do it on each file
Forum: PHP Aug 27th, 2007
Replies: 4
Views: 1,425
Posted By w_3rabi
i guess it should be 755
Forum: PHP Aug 27th, 2007
Replies: 4
Views: 1,425
Posted By w_3rabi
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
Posted By w_3rabi
could u explain more
and in a little detail
Forum: PHP Aug 27th, 2007
Replies: 29
Views: 4,206
Posted By w_3rabi
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
Posted By w_3rabi
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
Posted By w_3rabi
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
Posted By w_3rabi
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
Posted By w_3rabi
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
Posted By w_3rabi
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
Posted By w_3rabi
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
Posted By w_3rabi
why not use xml
it is easier to handle
Forum: PHP Jun 27th, 2007
Replies: 5
Views: 831
Posted By w_3rabi
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
Posted By w_3rabi
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
Posted By w_3rabi
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
Posted By w_3rabi
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
Solved: search engine
Views: 755
Posted By w_3rabi
could u explain more
plz
Forum: PHP Jun 25th, 2007
Replies: 7
Views: 1,740
Posted By w_3rabi
anytime man
and thanks for sharing this class with us
Forum: PHP Jun 20th, 2007
Replies: 10
Views: 2,869
Posted By w_3rabi
what is the web server u r using ???
Forum: PHP Jun 20th, 2007
Replies: 7
Views: 1,740
Posted By w_3rabi
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
Posted By w_3rabi
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
Posted By w_3rabi
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
Posted By w_3rabi
man echo the sql syntax to have a clearer view
Forum: PHP Jun 17th, 2007
Replies: 10
Views: 2,869
Posted By w_3rabi
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
Posted By w_3rabi
file group on windows ....?
it doesnt make a sense
Showing results 1 to 40 of 101

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC