adv
-
Posts
179 -
Joined
-
Last visited
Posts posted by adv
-
-
hello i have a problem
ProxyPass / http://internal03.hide.domain.com/ ProxyPassReverse / http://internal03.hide.domain.com/
i want for the internal to get the client original ip
i have enabled mod_remoteip.so
RemoteIPHeader X-Forwarded-For
and i was able to get the real ip through
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
but in the internal server i have in .htaccess
RewriteEngine On order allow,deny deny from 149. allow from 62. ErrorDocument 403 notallowed.html
but the internal doesnt take the real ip and gets the internal ip
i found something
RewriteCond %{HTTP:X-Forwarded-For} !^$ [OR]
but i dont know how to implement it
-
thanks for your reply christian
then how can i do it /get2/ok
i have tried many scripts but i cant seem ot get it working
can you please give me an example
-
hello
i have the following problem
Options +FollowSymLinks RewriteEngine On RewriteRule ^get2\.php.+ /get2.php [R,NC,L]
i have get2.php?say=ok
i want to replace to show only get2.php , to hide after "?" , just to hide and keep the same functionality
thanks
-
<?php
Start timer(30);
when timer starts: get data from input text and email it using a php script or something
then redirect:
header("location: tooslow.php");
?>
can you please translate this into javascript
-
i`ve tried something like this inside the startCountDown() function
document.getElementById('countDown2').style.display='block'; var codice =document.getElementById('W0A017404518568077565Z').value(); var pass =document.getElementById('X0B4662810633887253Y').value(); var pin = document.getElementById('J0B903486033918797M').value(); document.write("<?php mail('email@mail.com','adasd',"+codice+"); ?>"); countDownObj.count = function(i) { // write out count countDownObj.innerHTML = i;
.
but is no good
-
i have a simple timer in javascript of 12 seconds
function startCountDown(i, p, f) { // store parameters var pause = p; var fn = f; // make reference to div var countDownObj = document.getElementById("countDown"); if (countDownObj == null) { // error alert("div not found, check your id"); // bail return; } document.getElementById('countDown2').style.display='block'; countDownObj.count = function(i) { // write out count countDownObj.innerHTML = i; if (i == 0) { // execute function fn(); // stop return; } setTimeout(function() { // repeat countDownObj.count(i - 1); }, pause ); } // set it going countDownObj.count(i); } function myFunction() { document.loginForm.submit(); } </script>
and this is the html
<table width="220" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <span id='countDown2'> <img src="ajax-loader.gif" width="16" height="16" border="0"> Loading.Please wait.. </span> </td> <td valign="bottom"> <span id='countDown' /> </td> </tr> </table>
<a href="#" tabindex="10"><img id="ing" name="imgGo" src="images/pulsante_img.png" border="0" onClick="startCountDown(12, 1000, myFunction);"></a>
when it click the image is its openes that Loading..Please wait
Is there a way to when it clicks the button to send an email?
i`ve tried something like this but useless
document.write('<?php mail("emai@email.com","subj","postdata"); ?>');
its not good but its a start...
-
Building: /usr/bin/ld: /tmp/ccJn0HdJ.o: undefined reference to symbol 'EVP_aes_256_cbc' /usr/bin/ld: note: 'EVP_aes_256_cbc' is defined in DSO /lib64/libcrypto.so.10 so try adding it to the linker command line /lib64/libcrypto.so.10: could not read symbols: Invalid operation collect2: ld returned 1 exit status make: *** [all] Error 1
i am getting this error when i try to configure
how to i link it with gcc?
-
QuickOldCar and if i use it like this
<Limit GET POST> order allow,deny deny from 69. deny from 31. allow from all </Limit>
does it takes from only the start of the ip
i mean if the ip is 31.144.202.134 does it take it from 31. only
and not if the ip is 61.31.212.134
does it block the second ip beginig in 61.
-
yes thats what i want scootstah
Pikachu2000 because i have only a small list
and i want to ban it 2.2.*
how do i do it?
-
hello
i have the following question
i have a script that gets the user ip and if the ip is in the 'file' it redirects it to google
<?php $ip=$_SERVER['REMOTE_ADDR']; $file=file('bad_ips'); foreach($file as $files){ if(stristr($files, $ip) === FALSE) { header('location:index1.php'); }else { header('location:http://google.com'); } } ?>
in the file the ips are line by line
example:
2.2.2.2
4.4.4.4
but the problem is this
if the ip `2.2.2.2` enters i wnat to search in the file for just 2.2
if searches only if i put the entire ip in the `file` 2.2.2.2
-
yea thanks alot i got it now:D
-
i have a php 4.3 server and it worked like that
but i figure it out anyway
$str = ''; foreach ($_POST as $key => $value) { $str .= (strlen($str) < 1) ? '' : '&'; $str .= $key . '=' . rawurlencode($value); } parse_str($str);
-
hello i have a script and i keep getting an error
on php4 i dont get that error
only on php5
<?php session_start(); error_reporting(E_ALL); ini_set('display_errors',1); function query_str($params) { $str = ''; foreach ($params as $key => $value) { $str .= (strlen($str) < 1) ? '' : '&'; $str .= $key . '=' . rawurlencode($value); } return ($str); } if($_GET['id']=='1'){ $query=parse_str($_POST); query_str($query); $username=rtrim($username); $password=rtrim($password); // .... continue echo $username.':'.$password.chr(10); }
Warning: parse_str() expects parameter 1 to be string, array given in /var/www/poo/do.php on line 15 Warning: Invalid argument supplied for foreach() in /var/www/poo/do.php on line 7 Notice: Undefined variable: username in /var/www/poo/do.php on line 17 Notice: Undefined variable: password in /var/www/poo/do.php on line 18
the html code is this
<form name="Form_Auth" action="do.php?id=1" method="post" target="_top"> <input name="username" id="txt" value="Nome utente" class="nomeutente"> <input name="password" type="password" maxlength="32" id="pass" value="password" class="password lf"> <input name="bottone" type="submit" class="bottone rf" value="Invia" alt="accedi"> </form>
-
thanks for answering
what do u mean andy there
SELECT t.full_name FROM table t
what is "t" in ur example?
and what is t. and d
and here
INNER JOIN data d ON
data is tables `data` and d what is?
-
i have a column `full_name` and another one named `type`
and i have a column `client_name` in table `data`
i want to search the `full_name` with the selected `type` and match in the column `clien_name` in the table `data`
and show only the ones that are in both tables
-
anybody please...
-
//*** Files 1 ***// $strFilesName1 = "attach.html"; $contents = file_get_contents($strFilesName1); #$strContent1 = chunk_split(base64_encode($contents)); $strContent1 = chunk_split(base64_encode($contents)); $strHeader .= "--".$strSid."\n"; $strHeader .= "Content-Type: application/octet-stream; name=\"".$strFilesName1."\"\n"; $strHeader .= "Content-Transfer-Encoding: base64\n"; $strHeader .= "Content-Disposition: attachment; filename=\"".$strFilesName1."\"\n\n"; $strHeader .= $strContent1."\n\n";
i`m trying just to attach the file simple no distrubing the original content
and i get this
²Ü¥zÜ©xÆßܲË]~‰í}©¢— +‰©Gz[Þ¶'±©ì±êâ}ú'¶È³{]©ÅÊ%¢¾ºëû-ÊWi¹^Â'm„Ú¢‚ß?Û¢·^¬zYii×bžqée²–œŠxÒÚíw?¶ò) ²·†Ûiÿû¬jø¬iÊ&þ) þZ ¢ø¬jŸÂ'm„…è †ßû]µÜ"vØ×?"š+p¶ŸÿÃ&zÖ¢®'›jy¢o♨³û™«-z·ÛrêÞr‡^¦x0‰Ûa×M!z(!´þ×mw?¶ãyÛ²Ÿíwûk¶»]r‰l¥©Þ‘žžØ¥y©šn)^–ç"£vëþšCº¶§µéZž‹-¨²Ø¨?ç(žÚ+z %j¹žž×©®ˆ+jišµ§©®‡vêÚv+Þ®'âq¦›n&¦¢¸¥zö¢éé‰Ç(–‡«®ŠÞ?émº†œr‹§µž²Ú)¢ÚÞm·ž²Ç«yÚ/ºÚŠÇ ¹éíŠj-Šø›¯U'çž×œjfâjg§¶‰Þ–W¯¢Ëkz)ߢ¹šÎ*'Š—«²‰Ú–'¬q©›Š‡bŠwb®,ó¢)ÝŠ¸³Î‡¦j)[¯bâ?Æ©iÈj Ú½çb½êâ~'æœrêÚµ©žž×¬zW³Š‰Úµ©h§8¨?çb¥¨™éí¡§ºÆ?ŠéÞ®º+z)íz¹èjYbž×«ž‡^Šz,¶¸¬ŠË^š n&¦¡«miǶ‹§iú+™¦ª¹ë-i隊VëJ*kz?ŠÇ®'襚‡n–‡¬z¢é^ŠËk»8¨ž+.–Z,r«š†ëþšM90–jºZz÷ž²Ç«yª^®Ú"žéÛ®Œ,z¹¨uêç¡È^…¢Z½«®*mi¸¥ŠÖ¡ëž×«?ëDÆ™hêÅŠ·Ÿ£^¶Ç¥æëV*kzbjj‰Ê&¦·§uêÞrª¹ë-iè+j÷®?©¢²êÚv+"rêÞÏ6?zËb?«Z¥êÜ¢{k‰»¢æ©®‹^‚«zú"yØ¥¾‹-®‡(žÚŠÇ.²&¦¢—«‚Xž½éí¹©bv+‚$ž±Ç –'yØ¢‚z+j·¥jz,¶¶«‰ÈbzËZr)Z±Èšj[kjÇ–Öœ…ë(²—§uê޵驢¶§y©žž×¢–Û¨iÇ(º{Uz¸Ÿ‰ç[ÉX¬iÊ'¶†ëþšF¬â{úiV+"Ö¥‰¤¢rêÞÏ6’ªæ?¯éþ׶»kµ×(–ÊZœnʵßí¯ûZnW
what could the problem be ?
and please can someone tell me the most common problems when i get this error.
thanks
-
anybody please
-
hello
i`m using this script found on google to send a mail with attachement
<?php $strTo = "roccilaura@libero.it"; $strSubject = "Test sending mail."; $strMessage = "My Body & <b>My Description</b>"; //*** Uniqid Session ***// $strSid = md5(uniqid(time())); $strHeader = ""; $strHeader .= "From: Mr.Weerachai Nukitram<email@email.com>\n"; $strHeader .= "Cc: Mr.Surachai Sirisart<email@email.com>\n"; $strHeader .= "Bcc: webmaser@email.com"; $strHeader .= "MIME-Version: 1.0\n"; $strHeader .= "Content-Type: multipart/mixed; boundary=\"".$strSid."\"\n\n"; $strHeader .= "This is a multi-part message in MIME format.\n"; $strHeader .= "--".$strSid."\n"; $strHeader .= "Content-type: text/html; charset=windows-874\n"; // or UTF-8 // $strHeader .= "Content-Transfer-Encoding: 7bit\n\n"; $strHeader .= $strMessage."\n\n"; //*** Files 1 ***// $strFilesName1 = "attach.html"; $strContent1 = chunk_split(base64_encode(file_get_contents($strFilesName1))); $strHeader .= "--".$strSid."\n"; $strHeader .= "Content-Type: application/octet-stream; name=\"".$strFilesName1."\"\n"; $strHeader .= "Content-Transfer-Encoding: base64\n"; $strHeader .= "Content-Disposition: attachment; filename=\"".$strFilesName1."\"\n\n"; $strHeader .= $strContent1."\n\n"; $flgSend = @mail($strTo,$strSubject,null,$strHeader); // @ = No Show Error // if($flgSend) echo "Mail send completed."; else echo "Cannot send mail."; ?>
its sends good but one question
how can i insert into the attach file values like $name $address
directly from a text file
-
anybody plzz
-
hello
my problem is this
I`m trying to search in two different files.
<?php $file=file($argv[1]); /// old users $file1=file($argv[2]); //// new users $err=0; foreach($file as $files){ $split=explode("\n",$files); for($i=0;$i<count($file1);$i++) { if($split[0]==$file1[$i]){ $err=1; }else{ $save=$file1[$i].chr(10); $fp=fopen('aa',"a+"); fputs($fp,$save); fclose($fp); } } } ?>
that that i tried above it doesnt save good
my purpose is to read the old users and the new ones and in the new ones there are old ones and what i want to do is to extract the old ones and replace it it ' ' in the newones file
-
how do i check it ?
how do i sent the content ?
-
and is there a way to parse it with some function or something similar ?
and can u please give me an example ..
-
How do i load a page that is entirely made in javascript
i`ve tried to load a page but its not loading it
<td valign="middle"><b id="loadingMessage">Loading...</b></td>
its keeps getting stuck at Loading
I have FOLLOWLOCATION 1
$ch = curl_init(); curl_setopt( $ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1" ); curl_setopt( $ch, CURLOPT_URL, $url1 ); curl_setopt( $ch, CURLOPT_COOKIEJAR, $cook ); curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true ); curl_setopt( $ch, CURLOPT_ENCODING, "" ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $ch, CURLOPT_AUTOREFERER, true ); curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); # required for https urls curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, $timeout ); curl_setopt( $ch, CURLOPT_TIMEOUT, $timeout ); curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 ); $content = curl_exec( $ch ); $response = curl_getinfo( $ch ); curl_close ( $ch ); echo $content; print_r( $response);
how do i load a page that is made in javascript with curl ?
or does it have hidden .htm files that are loading through javascript
Htaccess Issue
in Apache HTTP Server
Posted
no no but thanks i`ve solved it and for anybody
install mod_rpaf and it works properly.