-
Posts
3,584 -
Joined
-
Last visited
-
Days Won
3
Everything posted by JonnoTheDev
-
Uploading files wit ftp_put but times out
JonnoTheDev replied to gazfocus's topic in PHP Coding Help
Try uber uploader. Perl CGI, kind of like ajax uploader. Used this for you-tube style video uploading http://uber-uploader.sourceforge.net/ -
You are using CURL to post to the login form and then using file_get_contents() to retrieve your account page. Why? If your session is stored in cookie.txt then only CURL can use it. You must use CURL to retrieve the pages you wish to access. Think of it as a web browser. To get your page you will need to change your options curl_setopt($ch, CURLOPT_HTTPGET, TRUE); curl_setopt($ch, CURLOPT_POST, FALSE); I would write a function for CURL so you can use in both POST and GET modes.
-
Uploading files wit ftp_put but times out
JonnoTheDev replied to gazfocus's topic in PHP Coding Help
Can you not use an .htaccess file to override the php.ini/httpd.conf directives? -
[SOLVED] how can i disable pdf download outside a secure area
JonnoTheDev replied to SXGuy's topic in PHP Coding Help
Use a download prompt to download the pdf after a user clicks instead of a direct a href link -
wrong parameter for fopen() should be: fopen("chat.txt", "a"); fopen parameters: http://uk3.php.net/manual/en/function.fopen.php
-
They could do either but the latter seems the most feasible. Only the facebook developers could tell you this.
-
You are not implementing it then as your site www.inpedigree.com has only 1 backlink. This is the most important part of SEO.
-
I can see why its taken 2 years (no offense) Lets say we post an article somewhere. The copy may read: Web design is a subject that requires.... balh, blah, blah. Next sentence. If your require web design services in London you may want to take a look at My Comapny Services, etc, etc, etc Now the phrase 'web design services in London' should link to your web design page. The My Comapny Services should link to your home page. You may even have an authors section on whatever article website that you could add more links using even more search terms. You could post hundreds of articles, blogs that all contain different keywords in the anchor text links that you include. The articles, blogs can be written about bloody anything, i.e. Microsoft Internet Explorer Security Flaw. You could even get a link using "secure web development services" in an article like that. It doesnt matter if its slightly off topic. Google is not human in the way it reads content.
-
You are talking about on-site optimisation, basically writing the copy for your website pages. This is a miniscule part of SEO. The web design page on your website should obviously contain information about the web design services they provide. What you need to look into is off-site optimisation. This is what gets you up the Google rankings. Do you know how to use the link: command on Google? This displays the number of backlinks. You should be writing copy to go into article directories, blog sites, pligg sites, social bookmarking sites, etc that contain links using your keywords as anchor text and pointing them at the pages on your site that you want to promote. Some reading for you http://www.jdswebsitedesign.co.uk/blog/onsite-optimisation-offsite-optimisation/
-
i mean who the hell searches for "web design scarborough" ?? A company in scarborough looking for web design services.
-
It doesnt matter where the company is based! If that company can provide services for anywhere in the UK then use UK placenames within your keywords. More phrases: Low cost web design Profession web development services, UK etc.. I could go on for days These phrases should be used as link anchor text to gain backlinks to you target site. I though you said you have 2 years exp of SEO.
-
This is the Timeout directive in your httpd.conf file. It is defaulted to 5 minutes. On another note you should not be running scripts that take 5 hours to complete through your web browser. They should be sent to the command line for execution via a button click in the website as a background process or alternatively run directly fom the command line.
-
web design is not a good search term to promote for a company's services. You should target niche phrases such as Web Design Services London, Flash Development London, Low cost web design, etc You have no chance using generic phrases and the probability that a user is looking for web design services from a generic search term is low.
-
No, no, no You are calling the function, not inserting the entire function into your script. Functions get used in the following manor: function xyz() { print "Hello"; } // function call - will print Hello xyz(); Firt you need to save the function code int a file, lets say email-functions.php. You then include that file into your contact page file: include('email-functions.php'); Now wherever the standard PHP mail() function is called, and it is used more than once in your script you need to replace with the new function. So instead of mail($email, "[Contact] ".$onderwerp, $bericht, $headers); you would use authSendEmail($from, $namefrom, $to, $nameto, $subject, $message) Now the function parameters that your authSendEmail() function uses are different to the php mail() function so you must make sure the correct data goes into the function. i.e authSendEmail("from@somebody.com", "Joe Bloggs", "to@somebody.com", "Jim Smith", "Email subject", "Email message") If you are new to php then I would recommend reading up on functions as a noob may struggle modifying a script like the one you have posted
-
Have you tried to print the query to the screen rather than returning results to check if it is valid. Run through mysql to check that results do get returned.
-
Your script is still using the mail() function to send mail rather than your 3rd party function mail($email, "[Contact] ".$onderwerp, $bericht, $headers); Your new function authSendEmail($from, $namefrom, $to, $nameto, $subject, $message) Use the correct function parameters from your script
-
$target = "upload/"; $target = $target . basename( $_FILES['uploaded']['name']) ; $ok=1; if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { header("Location:success.php"); exit(); } else { echo "Sorry, there was a problem uploading your file."; } Make sure you are not printing any data to the screen including HTML prior to using the header() function
-
You should have backlinks with that keyphrase in pointing at your index page to enhance your rankings. Adding keywords and description tags won't do this for you. You have about 7 backlinks from poor sources. Your index page is sparse on text content, mainly graphics so there is nothing for Google to understand what is on the document. I would recommend an SEO book for you to understand the main SEO concepts.
-
[SOLVED] InnoDB vs MyISAM for a Social Networking Website
JonnoTheDev replied to sergeidave's topic in MySQL Help
You use the JOIN syntax within your queries to relate fields. i.e. SELECT x,y,x FROM tableA a LEFT JOIN tableB b ON (a.id = b.fid) The relational fields should be given indexes. MyISAM is faster than INNODB so is used for most small/medium websites/applications. It really depends on what your database requirements are to decide what engine to use. I have only needed to use INNODB tables on large projects where tables may become corrupt due to a vast number of simultanious queries which would need repairing using MYISAM. -
You should write the code. Dreamweaver produces garbage.
-
for($x = 0; $x < count($options['values']); $x++) { echo "Values: ".$options['values'][$x].", Text: ".$options['text'][$x]."<br />"; }
-
Better. This is incorrect Adam $str = file_get_contents("http://".$server."/".$server."/pbsvss.htm"); $str = str_replace("<a href=","<a href=http://".$server."/".$server."/", include("http://".$server."/".$server."/pbsvss.htm")); Include within function will not work Should be $str = file_get_contents("http://".$server."/".$server."/pbsvss.htm"); $str = str_replace("<a href=","<a href=http://".$server."/".$server."/", $str);
-
[SOLVED] Searching within an array element
JonnoTheDev replied to eludlow's topic in PHP Coding Help
explode the array value into separate elements i.e $x = array('5,10'); $parts = explode(",",$x[0]); if($parts[0] == 5) { // the first number is 5 } -
[SOLVED] $data =implode("','",$dbquery); ???
JonnoTheDev replied to djdellux's topic in PHP Coding Help
implode() takes an array and converts to a string. Is your variable an array? foreach ($dbinfo as $dbquery) { $data =implode("','",$dbquery); print_r($dbquery); Also lose the ' in the implode separator $data = implode(",",$dbquery); -
yes $x = 11; switch($x) { case ($x >= 10 && $x <= 15) { // code } case ($x >= 16 && $x <= 21) { // code } }