-
Posts
334 -
Joined
-
Last visited
Everything posted by inversesoft123
-
Hello trim it and check it is blank or no. if(trim($_POST["haddy") != "") {
-
SSL enabled mod_rewrite Stopped
inversesoft123 replied to inversesoft123's topic in Apache HTTP Server
Fixed I just enabled mod_rewrite for SSL by editing vhost.conf or (ssl.conf may be in your case) <Directory /home/wwwdir/public_html/> AllowOverride All </Directory> Finally Resolved -
Hello All, I have mod_rewrited working properly but when I enabled SSL it stopped working. Please help me its really frusterating now RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L] RewriteRule ^shorter/(.*)$ shorter.php?longurl=$1 [L] RewriteRule ^([0-9a-zA-Z]{1,6})$ redirect.php?url=$1 [L] RewriteRule (.*)playlist.xml$ playlist.php [L] # Playlist RewriteRule ^(.*)/$ /index.php?page=$1 [L] RewriteRule ^(.*)/(.*)/$ /index.php?page=$1&id=$2 [L] RewriteRule ^(.*)/(.*)/(.*)/$ /index.php?page=$1&id=$2&no=$3 [L] RewriteRule ^(.*)/(.*)/(.*)/(.*)/$ /index.php?page=$1&id=$2&no=$3&trkid=$4 [L] RewriteRule ^(.*)/(.*)/(.*)/$ /index.php?page=my_profile&code=$2&state=$3 [L] In this site redirects properly to https but it do not work with permalinks http://www.domain.com/music/ << was working fine https://www.domain.com/music/ << Now stopped I Tried RewriteRule (.*)playlist.xml$ https://%{SERVER_NAME}/playlist.php [L] # Playlist #AND Optionally RewriteRule (.*)playlist.xml$ https://www.domain.com/playlist.php [L] # Playlist But no success Please help
-
The 'like' query can have the possibility of returning more matches, especially if the argument it is given has the proper wildcards in it. '%PHP%', for instance, will match 'PHPFREAKS' and 'PHP', but as a literal it will not match anything that doesn't have the percent signs in those specific spots. In else part you may have records in DB with exact match.
-
Read instructions carefully. Also check file permissions for specific folders as per joomla instructions. This may help you http://docs.joomla.org/Verifying_permissions
-
I tried many ways but unable to pass sessions to virtual subdomains on my site.. I edited ihi.ini file and included session.cookie_domain = .mydomain.com I like to add that session is active on my main domain for www.mydomain.com only.. So how do I pass sessions for WWW to other subdomains ? Thanks n Advance
-
what value is assigned to variable $dyn_www ????
-
Working with the email servers can be handled in multiple ways. It can't be done with single page of code. You need to use php or apache handlers in a such ways that they can work as a mail server. However there is a more easy approach to do this by reading mails using POP server and sending mails with SMTP with few lines of code. you you need to be sure which method you have to follow and start developing it in a systematic way. this google search string will help you more regarding this "using php to read pop emails". I found tons of results using this.
-
$_SERVER['DOCUMENT_ROOT'] wont go back levels
inversesoft123 replied to xc0n's topic in PHP Coding Help
okay i got it now, use php or htaccess or ini file to set default include path.. on single page by using php you can do somthing lke this. http://www.geeksengine.com/article/php-include-path.html -
OOPHP is an approach of "include and reuse". Objects simplify web development by eliminating the need of cut, paste and adopt existing code. So as far as principle of programing languages is considered OOPHP will provide us some advanced features of php like reusability inheritance etc etc. Speaking Specifically, One of the new classes included in OOPHP like SimpleXMLElement class. With this class you can incorporate RSS feeds into a web page using very few lines of code. Additionally without a minimal understanding of the masics of OOPHP, you can use full use of the capabilities of PHP5. For instance, If you want to create SOAP client, there is a no other way to do it than by using the SOAPClient class. There is a no need that once you start programming using OO approach you need to always code in this way. OOPHP approach can be used when you want because we can use FULL functional PHP5 by this approach.
-
$_SERVER['DOCUMENT_ROOT'] wont go back levels
inversesoft123 replied to xc0n's topic in PHP Coding Help
include($_SERVER['DOCUMENT_ROOT'].'/hidden_files/config.php'); or use "require" -
having math problem.. please help $timeoutdd = 1500; // timeout $timeondd = time()-$timeoutdd; // current time minus timeout $noiddwww = mysql_query("DELETE FROM wf_actv WHERE date <'".$timeondd."'"); ^^^^ Above query works properly now my problem is when i compare with timestamp it fails WHY ??? if($selectalbum3[tweet] == "0" && $selectalbum3[lasttw] >= '$timeondd') { // this query fails to select time before 15 mins ( ^^^^^^ this fails Note: lasttw is updated into database when tweet updates from 0 to 1 for recently updated status.
-
It seems that error is in CSS try removing CSS and execute code.
-
Thanks xyph, Let me know if killing of process with SGKILL or core dump used in that code is safe for server environment.?. Is there any alternative to do this with any other way rather than PHP or this is hypothetical concept ? Thanks again
-
Hello PHP freaks.. Can anybody tell me how to terminate shell script after specific interval time while calling it from php using exec() ? In other words suppose i wanna run $ ngrep -lqi -p -W none ^get\|^post tcp dst port 80 as <?php $records = exec("ngrep -lqi -p -W none ^get\|^post tcp dst port 80"); ?> How can I set timer to expire this code after 4-5 seconds ? I might be thinking or going to wrong way,, But I am planning to create online protocol analyzer / url sniffer. This code monitors incoming and outgoing GET or POST requests.. I am creating code to sniff video URL from video link. any Idea "? Thanks in Advance..
-
File uploading, says it works but doesnt
inversesoft123 replied to mike12255's topic in PHP Coding Help
I uploaded file named 19.jpg successfully on your site.. But this uploading script is highly unsafe for open use. any one can upload malware on your site. -
No one here will code for you but we will try to help you correcting your code. paste here if you tried any.
-
orrr $result = @mysql_query("SELECT id, month, day, event FROM homecalendar WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY) <= day");
-
$currdate = CURDATE(); $now = NOW(); mysql_query("INSERT INTO M1QuizResults (Email, Q1Choice, Q2Choice, Q3Choice, Score, Pass, Date_Taken, Time_Taken) VALUES(' " . $_SESSION['Email'] . " ', '$QChoice_1', '$QChoice_2', '$QChoice_3', '$Score', '$Pass', $currdate, $now)") or die(mysql_error()); $selectlastid=mysql_fetch_array(mysql_query("SELECT id from M1QuizResults WHERE Date_Taken = '$currdate' AND Time_Taken='$now'")); echo $selectlastid[0];
-
I always use http://lastrss.oslab.net/ LastRSS for that.. its awesome
-
"Invalid username or password" message in the same page
inversesoft123 replied to heshan's topic in PHP Coding Help
Hope this will help to newbies.. http://www.itshacked.com/103/php-function-to-prevent-cross-site-scripting-xss-attacks.html -
"Invalid username or password" message in the same page
inversesoft123 replied to heshan's topic in PHP Coding Help
why are you redirecting ? -
It will help us to understand your problem if you give detailed information about this with code. nobody knows how you are refreshing page with cron , popup or in iframe. even we dont know which map you are using API or something else.