-
Posts
15 -
Joined
-
Last visited
Posts posted by TuQuoQueBrute
-
-
-
search for url rewright
-
My help for this case is in the post above /|\
Something tells me that you used dream weaver , i dont know it , but probably you have some option like: right clik in the cell or table and "cell proprietis" "align" and try to fix that in that way, instead of guessing the right percentages,because "take a look":
A cell with 50% of widht is 50% in my resolution , in your resolution , in JenyferLopez resolution
Myself use a diferent resolution from the most of users and your website looks strange when i go there, some of the content dont even apear in the screen cause half of it is outsid of my screen
so...you have a lot of work there...
or try to wait for one other reply, with some css magic trick , either ways you have work to do
-
Well...everywere
this is some of your website code
<td height="52" valign="top" width="220">
<!-- Left Column -->
<table cellpadding="0" cellspacing="0" width="219">
<tr>
<td align="left" valign="top" width="209"></div>
To fit in the diferent resolutions is recomended that you specify the table size in percentage
-
tip:
<td width="100%" height="50%"></td>
percentages
-
oh i see, i dont know jquery , im such a noob, i was reading now about it, it seem achivable, i will learn it! thanks for the tip!!
-
to pratice i made this simple chat:
1 file -Save it as html with the name chat2.html
<?php $tt=file_get_contents('rec.html'); $hh=str_replace('div id="aaa"', 'div id="m"', $tt); $ri="$hh"; $fl='rec.html'; $a3=fopen($fl, 'w'); fwrite($a3, $ri); $a ='<div id="aaa"> <font face="Tahoma" size="2">'; $a .= "$_POST[tyPed]"; $a .='</font></div><p>'; $a1="rec.html"; $a2=fopen($a1, 'a'); fwrite($a2, $a); ?> <html> <head> </head> <body> <p align="center"><iframe src="rec.htm#aaa" width="680" height="300" scrolling="auto" ></iframe> <form method="post" action="chat2.html"> <p align="center"><input type="text" name="tyPed" size="60" maxlength="100" autofocus="autofocus" ><input type="submit" value="Submit" name="b1"><a href="chat2.html">Chek New Messages</a></p> </form> </body> </html>
2 file - Save it as html with the mame rec.html and mantain in the same folder as the first file
<?php echo '<html><head><body><meta http-equiv="refresh" content="10; url="></head></body></html>'; ?>
The thing is it only get new messages 10 in 10 seconds,
And in I.E it will make that anoying clik clik clik of rederections.
any idea how i can make it get new messagens when there is one new message? It can be only theory i code that theory if it works.
-
-
hey hi
im not shure if i get the question, the jw is a good solution
Why you dont make something like the client log in and a php script create a page with the jw code with the client advert path in the jw code
or the php echo the jw code like <?php echo '<html><body><div>JwCodeWithClientAd</div></body></html>';?>
I hop i helped with some idea
-
I would definitely go with the Meta tag approach rather than Javascript. It is a feature implemented in the core HTML and wouldn't have any problems due to Javascript being enabled or not.
However, this
Would definitely not work. A page is not delivered to the browser until processing is complete. Therefore, that sleep() command would simply cause the user to view a blank page for 10 second before ultimately being redirected to the second page - i.e. they would never see the first page with the message.
Yeah you are right and i prefer the meta tag too
but what if
<?php
echo You are watching the error;
sleep(5);
header("Location: http://blabla.com/");
?>
-
<?php
while( 1 == 1 );{
$word=blablabla;
$aa=get_file_contents('http://blablaurl.com/bla.bla')
if (strstr($aa, "$word") == True) { echo Word found ;
get_file_contents('http://blablablaSecondUrl');
exit();
}else{
}
}
?>
Hey this is air code i hope that this is not wrong im not shure if the loop (while()) will work .
set the $word var to the text that you want to find
set the http://blablaurl.com/bla.bla to the page that you want to find the text
set http://blablablaSeco...laSecondUrl to the second url
if the while loop dont work try other syntaxe or Do while
Or try to figure it out
-
Hi , is this good for you?
<?php
echo '<html><head><body><meta http-equiv="refresh" content="5; url=PUT_HERE_THE:PAGE_LINK"></head></body></html>';
?>
Just remove PUT_HERE_THE:PAGE_LINK and put the page link (http://blabla.com/page.html) or the page name (page.html)
or use the php redirect and a sleep
<?php
sleep(10);
header("Location: http://blabla.com/");
?>
i prefer the first method.
-
i see i see =)
thanks for your reply
-
Hi all,
Im realy new to php , but i already love it. Before writing more, sorry my english dont be mad plz.
So i write this script to prevent dos and ddos attacks and it looks like this
<?php $kk= $_SERVER['REMOTE_ADDR']; $aa="2.txt"; $bb=fopen($aa, "w"); $aa1="22.txt"; $bb1=fopen($aa1, "a"); $dd="$kk\n$kk\n$kk\n$kk\n$kk\n$kk\n$kk\n$kk\n$kk\n$kk\n$kk\n$kk\n$kk\n$kk\n$kk\n$kk\n$kk\n$kk\n$kk\n$kk\n"; $dd1="$kk\n"; fwrite($bb, $dd); fwrite($bb1, $dd1); fclose($bb); fclose($bb1); $zz= file_get_contents("2.txt"); $zz1= file_get_contents("22.txt"); if ($zz == $zz1) { echo '<html><body bgcolor="#FF000000" text="#FFFFFF" oncontextmenu="return false;"><center><font face="Verdana, Arial"><h1>ANTI DDOS!</h1><b>IP '.$kk.' Banned.<br /><p> <p />Have a bad day...!</b></font></center></body></html>'; $file="22.txt"; $linecount = 0; $handle = fopen($file, "r"); while(!feof($handle)){ $line = fgets($handle); $linecount++; } fclose($handle); if ($linecount > 20 ) unlink('22.txt'); $ht= fopen('.htaccess', "a"); $ht1= "deny from $kk\n"; fwrite($ht, $ht1); fclose($ht); exit(); }else{ $file="22.txt"; $linecount = 0; $handle = fopen($file, "r"); while(!feof($handle)){ $line = fgets($handle); $linecount++; } fclose($handle); if ($linecount > 20 ) unlink('22.txt'); } $aaa= $_SERVER['REQUEST_METHOD']; if ($aaa == POST) { $ht= fopen('.htaccess', "a"); $ht1= "deny from $kk\n"; fwrite($ht, $ht1); fclose($ht); echo '<html><body bgcolor="#FF000000" text="#FFFFFF" oncontextmenu="return false;"><center><font face="Verdana, Arial"><h1>ANTI DDOS!</h1><b>IP '.$kk.' Banned.<br /><p> <p />Have a bad day...!</b></font></center></body></html>'; exit(); }else{ } ?>
hmmm... what it does is: if the last 20 ips entering the website are the same, it ban the ip cause may be a dos attempt, to enter the website the browser or the client have to do a GET request, so if any one do a POST request it ban the ip.
So i have this php doubht is there any function that allow me to know the amount of data sent by the user to the server?
problem getting page content
in PHP Coding Help
Posted · Edited by TuQuoQueBrute
Hi all
With this code bellow:
i only get the response "HTTP/1.1 200 OK" i want to get all the response from the website , any clue how to do this?
Regards