Jump to content

jamesxg1

Members
  • Posts

    1,133
  • Joined

  • Last visited

Everything posted by jamesxg1

  1. 1 ) In order to achieve everything above I can use a reseller package or I need to have my own servers ? 1A) I would advice dedicated server, but it will work on reseller. 2 ) How do I let the user point into my IP address and display his content ? 2A) Domain re-direct, can be done via the domain control panel. 3 ) How do I set the limits of disk space and bandwidth ? 3A) Maybe have a db row per user that will add the amount of space used and dis allow more content if they have reached your set space. if($row['usedspace'] == 16000) { echo 'you have no space left.'; } else { echo 'do action'; } James.
  2. $js = "$('#" . $id . "').tipsy({gravity: 'n'});"; $query = "INSERT INTO `uses` (`js`) VALUES ('$js') WHERE `id` = '$id'"; if (mysql_query ($query)) { $_SESSION['message'] = "<font color=green><li>Your idea was added below</li><br /></font>"; header('Location: index.php'); } else { exit(print(mysql_error())); $_SESSION['message'] = "<font color=red><li>Couldnt Add 2</li><br /></font>"; header('Location: add.php'); } Post what the error is. James.
  3. Look at this taken from php.net. <?php $Name = "Da Duder"; //senders name $email = "email@adress.com"; //senders e-mail adress $recipient = "PersonWhoGetsIt@emailadress.com"; //recipient $mail_body = "The text for the mail..."; //mail body $subject = "Subject for reviever"; //subject $header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields ini_set('sendmail_from', 'me@domain.com'); //Suggested by "Some Guy" mail($recipient, $subject, $mail_body, $header); //mail command ?> James.
  4. Try this. $js = "$('#" . $id . "').tipsy({gravity: 'n'});"; James.
  5. $js = "$('#" . $id . "').tipsy({gravity: 'n'});"; $query = "INSERT INTO `uses` (`js`) VALUES ('$js') WHERE `id` = '$id'"; James.
  6. Ah right I see, well I'm trying to make it so that I can provide my customers with a script on their own website without actually have to script, the script will be held on my server and I'm looking for a way for them to include it on their site. Many thanks James.
  7. Hiya! I know XSS is un-secure but I was wondering how I would code a XSS code, I have tried to Google it but there is nothing, all I am finding is XSS preventation. I was wondering if someone knows a tutorial or maybe if someone can show me an example of how to make an XSS script. Many thanks James.
  8. WOW! you blow my mind LOL, you are very intelligent. Thank you very much this is very much appreciated mate, I will not forget to return the favour . Many thanks James.
  9. Sorry for the extra post, I need to find a solution that will make it execute as if the script was on their server, so every company that has access has their own copy of the 'script' as such, while running it all from the one script. Many thanks James.
  10. It depends on what your script does. If you own a domain you can allow other companies to link to your script using: script.company.com IN CNAME your-script-domain.com monkeytooth's solution is preferred and a SOA (Service-Oriented Architecture) is what you are looking for. Where your clients would connect to your website using HTTP request headers and receive an XML (, JSON, ..) response from your server. Hmmmm, interesting I have never heard of this option would you provide me with some more information please ? Many thanks James
  11. Hiya! Thanks for the reply. This is very true and researching it zend is more than likely my best hope. But the problem I have is the people I am supplying it to are very savy with web based applications and the script will be running on a goverment server so they will have access to it if I hand the script over to them, and there are long and painful but working ways of reversing the code encryption (so I have been told) so my main goal is to maybe accomplish the first idea you had for an XSS, but the only problem I have is I have never ever done something like this and I am literally stumped on where to start I open my IDE and go blank LOL! Would it be possible for you or someone out there to maybe point me in the right direction? Many many thanks, James
  12. Is there any other points that may help? Maybe one that includes not having to give them the script in any way? If this is possible? Many thanks, James.
  13. Holy christ, why didn't I think of that, thanks very much mate very much appreciated. James.
  14. Hiya! I am in dir need of some advice, basically I cannot find a strategy to do the following. I am building a website and basically I need to make it so that I can provide other companies my script without actually providing it to them, weird one I know LOL! Basically let say I provide my script to 100 companies I need to make it so that they never actually get the script in hand, I need to make it so that they have a small script that they upload to their server and it will communicate with the script on my server, but I need to so that it is as if it where on their own server so all the data they input is theirs and when entering the site via their site/server it only displays their data. I was thinking about providing them with the whole script except the main class file and making it so that they have to include it from my server for the script to work, but that turned out complicated and didnt work! Does anyone here have any advice, tips or pointers that may help? Much appreciated, many thanks, James.
  15. Hiya peeps, Here's what I'm doing. <?php session_start(); class profileDetails { $error = '<style> .error { background-color:#edf1f3; border-style:solid; border-width:1px; border-color:#9aaab4; padding:4pt; text-align:left; margin-left:10px; margin-right:6px; } .errortext { color:#009999; font-style: normal; font-family: monospace; font-weight:bold; } </style> <div class="error"><span class="errortext"><center>Sorry for inconvenience but our system has located an error.</center></span></div>'; private $memberID; If I remove $error the error goes, the thing that baffling me is I am doing this in all of my other classes, does anyone know why this is happening? Many thanks James
  16. Hiya bud, Thanks for the reply, I would but its pretty complicated LOL! But that parse_str() worked a charm thanks mate! Many thanks James
  17. Hiya peeps! I was wondering how I would strip $_SERVER['QUERY_STRING'] for the value of the parameter, forumid Does anyone know a way? It would be much appreciated. Many thanks, James.
  18. Hiya peeps! Here's what I've got. <option value="-">--- England ---</option> <option value="ASH">Ashford</option> <option value="AYL">Aylesbury</option> <option value="BASI">Basildon</option> <option value="BAS">Basingstoke</option> <option value="BATH">Bath</option> <option value="BED">Bedford</option> <option value="Birm">Birmingham</option> <option value="BBUR">Blackburn</option> <option value="BPOO">Blackpool</option> <option value="BOLT">Bolton</option> <option value="BSTO">Boston</option> <option value="BOUR">Bournemouth</option> <option value="BRAD">Bradford</option> <option value="BAIN">Braintree</option> <option value="BRGH">Brighouse</option> <option value="Brig">Brighton</option> <option value="BRI">Bristol</option> <option value="BURY">Bury</option> <option value="CAM">Cambridge</option> <option value="CAN">Canterbury</option> <option value="CARL">Carlisle</option> <option value="CHE">Chelmsford</option> <option value="CLTH">Cheltenham</option> <option value="CHES">Chester</option> <option value="CSTF">Chesterfield</option> <option value="CHIP">Chippenham</option> <option value="CHOR">Chorley</option> <option value="CLOS">Clacton on Sea</option> <option value="CLC">Colchester</option> <option value="cov">Coventry</option> <option value="CUBB">Cubbington</option> <option value="DARL">Darlington</option> <option value="DRBY">Derby</option> <option value="DEW">Dewsbury</option> <option value="DCST">Doncaster</option> <option value="DOU">Dover</option> <option value="DUD">Dudley</option> <option value="EAST">Eastbourne</option> <option value="EXE">Exeter</option> <option value="FOLK">Folkestone</option> <option value="GSBR">Gainsborough</option> <option value="GLOU">Gloucester</option> <option value="GRTH">Grantham</option> <option value="GYMO">Great Yarmouth</option> <option value="GRSB">Grimsby</option> <option value="GFOR">Guildford</option> <option value="HLSW">Halesowen</option> <option value="HARL">Harlow</option> <option value="HARR">Harrogate</option> <option value="HART">Hartlepool</option> <option value="HRWH">Harwich</option> <option value="HAS1">Hastings</option> <option value="HAT">Hatfield</option> <option value="HH">Hemel Hempstead</option> <option value="HWY">High Wycombe</option> <option value="HCKL">Hinckley</option> <option value="HOR">Horsham</option> <option value="HUD">Huddersfield</option> <option value="HNTG">Huntington</option> <option value="ILK">Ilkley</option> <option value="INVE">Inverness</option> <option value="IPS">Ipswich</option> <option value="KENT">Kent</option> <option value="KTTG">Kettering</option> <option value="KGLY">King's Lynn</option> <option value="KIN">Kingston upon Hull</option> <option value="LAN">Lancaster</option> <option value="Lee">Leeds</option> <option value="LSTR">Leicester</option> <option value="LCHW">Letchworth</option> <option value="LCHF">Lichfield</option> <option value="LNCL">Lincoln</option> <option value="LIV">Liverpool</option> <option value="LON">London</option> <option value="loug">Loughborough</option> <option value="lowe">Lowestoft</option> <option value="LUT">Luton</option> <option value="MACC">Macclesfield</option> <option value="MAID">Maidstone</option> <option value="MAN">Manchester</option> <option value="MSFD">Mansfield</option> <option value="MMWB">Melton Mowbray</option> <option value="MID">Middlesbrough</option> <option value="Mdsx">Middlesex</option> <option value="MILT">Milton Keynes</option> <option value="NWOT">Newark on Trent</option> <option value="NBRY">Newbury</option> <option value="NEW">Newcastle</option> <option value="NORT">Northampton</option> <option value="NORW">Norwich</option> <option value="NOTT">Nottingham</option> <option value="NUNE">Nuneaton</option> <option value="OLDH">Oldham</option> <option value="OXF">Oxford</option> <option value="PTRG">Peterborough</option> <option value="Ply">Plymouth</option> <option value="PTCT">Pontefract</option> <option value="pool">Poole</option> <option value="PMTH">Portsmouth</option> <option value="PRES">Preston</option> <option value="READ">Reading</option> <option value="RDD">Redditch</option> <option value="ERTF">Retford</option> <option value="roch">Rochdale</option> <option value="RYLS">Royal Leamington Spa</option> <option value="RGBY">Rugby</option> <option value="sale">Sale</option> <option value="SALI">Salisbury</option> <option value="SCA">Scarborough</option> <option value="SCRP">Scunthorpe</option> <option value="SHEF">Sheffield</option> <option value="SKGN">Skegness</option> <option value="SOUT">Southampton</option> <option value="SEOS">Southend On Sea</option> <option value="soup">Southport</option> <option value="SPLD">Spalding</option> <option value="STAF">Stafford</option> <option value="STFD">Stamford</option> <option value="stev">Stevenage</option> <option value="STCK">Stockport</option> <option value="stoc">Stockton on Tees</option> <option value="STOK">Stoke on Trent</option> <option value="STR">Stratford on Avon</option> <option value="SUN">Sunderland</option> <option value="SUR">Surrey County</option> <option value="SWLD">Swaldingcote</option> <option value="SWAN">Swansea</option> <option value="SWIN">Swindon</option> <option value="TAUN">Taunton</option> <option value="THA">Thanet</option> <option value="THTF">Thetford</option> <option value="torq">Torquay</option> <option value="TURN">Tunbridge Wells</option> <option value="wak">Wakefield</option> <option value="wals">Walsall</option> <option value="WARW">Warwick</option> <option value="watf">Watford</option> <option value="WLGB">Wellingborough</option> <option value="wwgc">Welwyn Garden City</option> <option value="WESB">West Bromwich</option> <option value="WSMA">Weston-Super-Mare</option> <option value="weym">Weymouth</option> <option value="wiga">Wigan</option> <option value="WINC">Winchester</option> <option value="WLVP">Wolverhampton</option> <option value="Wrc">Worcester</option> <option value="YORK">York</option> <option value="-">-- Scotland --</option> <option value="ABDN">Aberdeen</option> <option value="DUND">Dundee</option> <option value="EDIN">Edinburgh</option> <option value="GLA">Glasgow</option> <option value="-">-- Wales --</option> <option value="arys">Aberystwyth</option> <option value="BARR">Barry</option> <option value="CARD">Cardiff</option> <option value="SWAN">Swansea</option> I was wondering how I would put all the value names in an array with a match & replace? Is this possible? EG. The array will start like this, array('Ashford', 'Aylesbury', 'Basildon'). Many thanks James.
  19. Hiya bud, Cheers for the reply mate, it didnt work :S. Many many thanks James
  20. Hiya peeps, I'm totally lost here I just cant figure it out. This is what I need to do. $input = 'hiya how are you doing today'; $match = array('how are you'); // foreach check if 'how are you' is in $input. // if it is remove it from the string a send the rest to $this->output('THE REST OF THE STRING'); // if it doesnt match then call $this->conversate_word($input); Many thanks James.
  21. Hiya bud, Cheers for the reply, I already strip the text of special characters, but cheers for the help bud, and it didnt work unfortunatly :S. Many thanks James.
  22. Hiya peeps! $input= 'hiya, how are you?'; $match = array('how are you') $output = array(); foreach($match as $sentence_split): $sentence_split_slash = '/' . $sentence_split . '/'; if(preg_match($sentence_split_slash, $input)): $output[] = $sentence_split; else: $this->conversate_word($sentence_split); endif; endforeach; how do I make it so that the 'hiya' is actually sent to $this->conversate_word(); Many thanks James.
×
×
  • 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.