Jump to content

megetron

Members
  • Posts

    53
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

megetron's Achievements

Member

Member (2/5)

0

Reputation

  1. I found this : Mail_Queue - Pear - PHP exactly like I needed. Thanks,
  2. I am using shared host, is it possible to use this classes?
  3. Hello, I have some troubles to send mass email. I am using mail() function and the script is timed out. also there is a restriction in which you allowed to send 20 mails per minute. so I use sleep(5) to delay 5 seconds between every mail, but the script is exceeded timeout. Adding this: set_time_limit(0); will still not work. maybe can I set a background thread? if so please tell me how to. Also, if there is a built in script that can help me with that, I would like to hear about it. Thanks =]
  4. Hi, is there a good tool to backup database/files on a daily/hourly manner? seems like this is not supported with phpmyadmin...si i guess a cron job application is needed. Thanks,
  5. hello, I am trying to read logs of PHPIDS logs: "27.116.15.205",2012-04-27T15:48:40-04:00,142,"xss csrf id rfe lfi sqli","REQUEST.S1%3D%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%253C%2521--%2520START%2520sd%2520-%2520%25D7%25AA%25D7%2595%25D7%259B%25D7%25A0%25D7%2599%25D7%25AA%2520%25D7%25A9%25D7%2595%25D7%25AA%25D7%25A4%25D7%2599%25D7%259D%2520CODE%2520--%253E%250D%250A%253Cscript%2520language%253D%255C%2527javascript%255C%2527%2520%2520type%253D%255C%2527text%252Fjavascript%255C%2527%253E%250D%250Avar%2520r%253Ddocument.referrer%253B%250D%250A%2520var%2520counter%2520%253D%2520new%2520Object%2528%2529%253B%250D%250Acounter.src%2520%253D%2520%255C%2527http%253A%252F%252Fdf.co.il%252Ft.php%253Faid%253D99%2526linkid%253DB74%2526r%253D%255C%2527%252Br%253B%250D%250A%253C%252Fscript%253E%253Cscript%2520src%253Dhttp%253A%252F%252Faf.co.il%252Ft.php%253Faid%253D99%2526linkid%253DB74%253E%250D%250A%253C%252Fscript%253E%250D%250A%253C%2521--%2520END%2520dsf%2520-%2520%25D7%25AA%25D7%2595%25D7%259B%25D7%25A0%25D7%2599%25D7%25AA%2520%25D7%25A9%25D7%2595%25D7%25AA%25D7%25A4%25D7%2599%25D7%259D%2520CODE%2520--%253E%250D%250A%250D%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520+POST.S1%3D%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%253C%2521--%2520START%2520af%2520-%2520%25D7%25AA%25D7%2595%25D7%259B%25D7%25A0%25D7%2599%25D7%25AA%2520%25D7%25A9%25D7%2595%25D7%25AA%25D7%25A4%25D7%2599%25D7%259D%2520CODE%2520--%253E%250D%250A%253Cscript%2520language%253D%255C%2527javascript%255C%2527%2520%2520type%253D%255C%2527text%252Fjavascript%255C%2527%253E%250D%250Avar%2520r%253Ddocument.referrer%253B%250D%250A%2520var%2520counter%2520%253D%2520new%2520Object%2528%2529%253B%250D%250Acounter.src%2520%253D%2520%255C%2527http%253A%252F%252Fdf.co.il%252Ft.php%253Faid%253D99%2526linkid%253DB74%2526r%253D%255C%2527%252Br%253B%250D%250A%253C%252Fscript%253E%253Cscript%2520src%253Dhttp%253A%252F%252Fdf.co.il%252Ft.php%253Faid%253D99%2526linkid%253DB74%253E%250D%250A%253C%252Fscript%253E%250D%250A%253C%2521--%2520END%2520df%2520-%2520%25D7%25AA%25D7%2595%25D7%259B%25D7%25A0%25D7%2599%25D7%25AA%2520%25D7%25A9%25D7%2595%25D7%25AA%25D7%25A4%25D7%2599%25D7%259D%2520CODE%2520--%253E%250D%250A%250D%250A%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520","%2Fa%2Findex.php%3FAct%3Dgetbanner","232.1.201.16" "293.21.209.2",2012-04-27T16:25:08-04:00,22,"xss csrf id rfe lfi","REQUEST.__utmz%3D69327680.1335558235.1.1.utmcsr%253Da.com%257Cutmccn%253D%2528referral%2529%257Cutmcmd%253Dreferral%257Cutmcct%253D%252FCategory.aspx+COOKIE.__utmz%3D69327680.1335558235.1.1.utmcsr%253Da.com%257Cutmccn%253D%2528referral%2529%257Cutmcmd%253Dreferral%257Cutmcct%253D%252FCategory.aspx","%2Fa%2Frcode.php%3Fid%3D135%26af1d%3D55%26width%3D180%26height%3D150","212.1.218.1" how can I do this?
  6. hi all, I have an issue that happens for my website users. but it happens only for few and I cannot reproduce the problem. There is the following code that opens a new box with details: <a href="#displayBox" onclick="javascript:ShowCommissionDetails('1','2');">Commision</a> <script> function ShowCommissionDetails(pId, aId) { if(pId){ document.getElementById('div_faded').style.display='block'; document.getElementById('div_ViewCommission').style.display='block'; document.getElementById('div_faded').className="showProgramCommissionFadeDiv"; var url = "CommissionDetails.php?pId="+pId+'&aid='+aId; ajaxpage(url,'div_ViewCommission'); } } function CloseCommissionDetails() { document.getElementById('div_faded').style.display='none'; document.getElementById('div_ViewCommission').style.display='none'; } </script> some of my users says that it doesnt work...but I just cannot reproduce, can you have a guess what might be wrong with that code? Thanks,
  7. hi, I would like to convert a php string like "that's all folks!" to javascript string "that\'s all folks", so I can write something like: diocument.write('<?$myString?>'); so of course i can replace ' with \' with replace function but is there a php function that do this for the specific charachter and for other special charchters too? what is the best way do this? Thanks guys,
  8. I would like to provide a script for webmasters. the webmaster calls my php page (with javascript call) and gets html advertisment...
  9. here is how I call the script above: <body> <script language="javascript" type="text/javascript" src="http://domain.com/r.php?id=154"></script> </body> but it doesn't work. when I change the code to that: <body> <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'></script> <script language="javascript" type="text/javascript" src="http://domain.com/r.php?id=154"></script> </body> the script works fine....
  10. Hi, I need to wait for a javascript file to be loaded by the client browser before executing rest of the script. (I dont have access to the HEAD tag, because the script I develop is being called from other users page). Here is what I am trying to do without success: echo "document.write(\"<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'></script>" ."<link rel='stylesheet' href='http://domain.com/css/style.css' type='text/css' media='screen'/>\");"; echo "document.write(\"<script>var newScript; newScript = document.createElement('script'); " ."newScript.type = 'text/javascript'; " ."newScript.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'; " ."document.getElementsByTagName('head')[0].appendChild(newScript);</script> \");"; sleep(5); $list = "<link rel='stylesheet' href='http://domain.com/style.css' type='text/css' media='screen'/><p id='last'></p><div id='slidebox'>" ."<a class='close'></a>" ."<p>TITLE</p>" ."<h2>DESC</h2>" ."</div>" ."<script type='text/javascript'>" ."$(function() {" ."$(window).scroll(function(){" ."var distanceTop = $('#last').offset().top - $(window).height();" ."if ($(window).scrollTop() > distanceTop)" ."$('#slidebox').animate({'right':'0px'},300);" ."else " ."$('#slidebox').stop(true).animate({'right':'-430px'},100); " ."});" ."$('#slidebox .close').bind('click',function(){" ."$(this).parent().remove();" ."});" ."});</script>"; echo "document.write(\"$list\");"; exit;
  11. Thats exactly how I am doing this. Also, I have try to include this code inside the php page itself and still it won't work. please help,
  12. Hi, There is a page in my site that echo varible $msg. so when i goto http://mydomain.com/page.php?msg=<script>alert("HELLO")</script> the page will prompt the alert HELLO....(echo $msg;) what i wish to do is to create 1 file that will be included in all of my pages to prevent such behaviour. so I created a new file likw this to prevent: <? reset ($_GET); foreach ($_GET as $key => $value)//to stripslash all get variables { $value=strip_tags($value); $value=stripslashes(trim($value)); $$key=$value; //echo "$key=>$value <br/>"; //echo ("<script>alert('sad')</script>"); } reset ($_POST); foreach ($_POST as $key => $value)//to stripslash all posted variables { $value=stripslashes(trim($value)); $value=strip_tags(trim($value)); $$key=$value; //echo "$key=>$value <br/>"; } reset ($_GET); reset ($_POST); ?> but for some reason it doesn't work but when I dont include anything and change the page code for this: echo strip_tags($msg); the alert will not be displayed.... Can you please help me build a secured page to include in my pages, so there will not be hacking in my GET/POST/COOKIES/SESSION objects? even if there is something that you are using or some class/function ready to use that being tested will be great solution for me to strength security. Thank you guys.
  13. hi, I need to save array of elements form INPUT html element to a database, and on other page I need to display it again, so I need to SET the INPUT element again. here is th input array: <input type='hidden' name='elements[]' value='$categories' />" how do I do that? Thank you.
  14. Hello, I have php application, it is hosted on a shared server. How can I view the errors in my application with the details of the error for my website users? Thanks,
  15. Hi, I am looking for componnent of a rich media, so I can show my ads on my website in a very interactive way. I found this: http://www.checkm8.com/products/advantage-richmedia/gallery but this is very expensive one. is there any other solutions you know? Thanks,
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.