s1yman
Members-
Posts
132 -
Joined
-
Last visited
Never
Everything posted by s1yman
-
Hi, I am looking to have multiple RSS feeds coming populating into one list sorted by latest. Does anyone know or have any codes they are willing to share, even if it is just to get me started? Any help is much appreciated. This is for a charitable website so your time, help & expertise are much appreciated.
-
That works .. thanks! the reason for the critera was I need the full url .. and as it's searching the embed link, I couldn't put "http" because that would pull the play url .. maybe i wanted it to cover youporn as well lol cheers for your help bro ..
-
"learning" is always problem if you don't follow structured courses ...
-
Hi all, I've got a code that searches a string (an embed script) and strips it down to the youtube video link. $encoded = strchr("$encoded","http://www.you"); $encoded = strrev($encoded); $encoded = strrchr("$encoded","&"); $encoded = strrev($encoded); $encoded = str_replace("-nocookie","","$encoded"); $encoded = str_replace("&","",$encoded); Might be a bit "busy" .. but I'm a rookie, still that works well enough. My problem is that it searches for http://www.you - but if it is not a youtube video it will returns blank (obviously). So my question is, how do I go about stopping it from making my string nothing when it's not a youtube vid? I have tried to play around with if statements, but I'm bit clueless .. any help really appreciated!! Thanks in anticipation
-
not this program i am using it extends the other boxes to match the biggest one. . . software glitch I guess. Thanks for your help - appreciated
-
Thanks for your help. Reason I'm using tables is because it's xml code, so that would also explain why the colspan isn't working
-
Hi, Hope you are all well!! I'm having a bit of trouble creating an HTML table with some abnormal formatting. I've attached a print screen of the kind of thing I want. I'm not asking anyone to format it for me, but if you could offer any advice on a way to do it, it would be greatly appreciated! Many Thanks, -Simon [attachment deleted by admin]
-
doesn't make a difference
-
Hi, I got bit of problem with some div tags, http://mkcitycomputers.co.uk/test/partners.html I want them to be lined up in threes, something like the picture. the css reads; {width:33%; color:#003366; text-align:justify; position:relative; overflow:hidden; clear:both;} bit confused, sure I had this working before. any one got any ideas?? Thanks in advance. [attachment deleted by admin]
-
does anyone know? Or I am just being stupid? ..does anyone know of an alternative method?
-
Random question, I was wondering if the .htaccess file is able to forward your variable values from the URL? E.g. if I request a page "/nothing.php?id=7" (but nothing.php doesn't exist) gets forwarded to "/404.php?id=7" Is this possible?
-
Incase any ever wants to know in future ... my original script didn't work because Opera is labelled as "Presto" no Opera like you'd expect
-
[SOLVED] PHP Security Testing - Advice needed (please)
s1yman replied to s1yman's topic in PHP Coding Help
kool - thanks for your help mate! -
[SOLVED] PHP Security Testing - Advice needed (please)
s1yman replied to s1yman's topic in PHP Coding Help
These are looking for forms, is it only scripts that process forms I need to worry about. Or is it all my scripts? Yeah, I know someone didn't just turn around one day and go "let's pick on PHP!!!" As I said, I don't know much about PHP Security, so don't understand what would make a script secure or insecure? -
[SOLVED] PHP Security Testing - Advice needed (please)
s1yman replied to s1yman's topic in PHP Coding Help
I'll give it a try, thanks for the quick reply! -
Hi all, hope you are well. I've heard a lot about php script in web pages being "vulnerable" and since I haven't learnt anything about php security I was wondering if anyone knows any free software or websites where I can scan my pages for potential holes and/or vulnerabilities? Thanks in advance, -Simon
-
Yeah, that's the right sort of script but where you have $_POST['name'] and $_POST['email'] you'd change it to $_POST['one'] and $_POST['two'] ... etc. (same names as your drop boxes) e.g.; <?php $firstbox=mysql_real_escape_string($_POST['one']); /*This value has to match the value in the HTML form file*/ $secondbox=mysql_real_escape_string($_POST['two']); /*This value has to match the value in the HTML form file*/ $sql="INSERT INTO form_data (first,second) VALUES ('$firstbox','$secondbox')"; /*with the brackets should match the relevant table fields in your DB and the $'s should match the varibles created above. make sure the values within the brackets are in the same order as each other, otherwise you'll end up with the data in the wrong fields*/ ?> Hope that helps
-
sorry, just realised how blunt that was lol. What are you needing help with when you say "How do I get what is submitted to go to a database?" The script looks alright at a glance, everyone has there own way of coding which is what makes it more complicated
-
http://www.w3schools.com/php/php_mysql_intro.asp
-
kool, i'll try that. thanks
-
Hi, I made a simple script to check what browser some one is using, at the moment it just displays what browser it is on the page, but I'm having problems with opera. My code is; <?php $browserinfo=$_SERVER['HTTP_USER_AGENT'] ; print $browserinfo; echo "<br />"; /*make lowercase*/ $browserstr=strtolower($browserinfo); echo $browserstr; echo "<br />"; /*If string contains "firefox" set type to firefox, if not check for other browsers*/ if (strpos($browserstr,"firefox")) $browsertype="firefox"; elseif (strpos($browserstr,"opera")) $browsertype="opera"; elseif (strpos($browserstr,"msie")) $browsertype="msie"; elseif (strpos($browserstr,"safari")) $browsertype="safari"; /*If none of the above set type to other*/ else $browsertype="other"; echo $browsertype; ?> browserstr displays "opera/9.63 (windows nt 5.1; u; en) presto/2.1.1" however, browsertype displays "other" it works fine for firefox, explorer and safari. Probably did something simple wrong. Thanks in advance for any help.
-
Let's try again ... See in another window - http://computersmk.co.uk/site.jpg
-
Hey all, I lack a bit of a graphical mind, so any suggestions or recommendations would be much appreciated!! I attached the image of the design. Thanks. -Simon [attachment deleted by admin]
-
Anyone got any ideas? Thanks.