-
Posts
3,584 -
Joined
-
Last visited
-
Days Won
3
Everything posted by JonnoTheDev
-
[SOLVED] show loading image before the whole page gets load
JonnoTheDev replied to deepson2's topic in Javascript Help
Have a look at this JS framework http://extjs.com/products/extjs/ Under the Misc Samples there is a page loader progress bar -
Can't seem to get mysql extensions working
JonnoTheDev replied to Tim356's topic in PHP Installation and Configuration
You need to update your yum conf http://sial.org/howto/yum/ -
Can't seem to get mysql extensions working
JonnoTheDev replied to Tim356's topic in PHP Installation and Configuration
yum install php-pgsql -
No, again that is a relative path (relative from the directory you are in) If my webservers document root for my domin abc.com is /var/www/html/abc.com/docs/ (remember a / at the beginning inclidates the root directory of the server. i.e in windows c:\) If I do set_include_path(get_include_path().PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']); The this will set the include path to: /var/www/html/abc.com/docs/ So if I have directories under docs/ called functions & classes even if I am within the classes directory I can still use include('functions/xyz.func.php'); This is because I have set the path where it should look from for includes so it will be looking for: /var/www/html/abc.com/docs/functions/xyz.func.php This is an absolute path. Don't use relative paths as if you move files/folders it makes it harder to fathom out. Look up the difference between relative & absolute paths.
-
Why not write a program that can generate a new crontab each day?
-
Or, set your include path in a config file // config.php set_include_path(get_include_path().PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']); Then you can easily include from this directory no matter where you are include('classes/xyz.class.php'); include('functions/xyz.func.php'); What you did here was to use a relative path The afformentioned above uses absolute paths
-
What do you mean, 'cannot call it wil include correctly'. You can include any file no matter what directory it is in // /docs/includes/config.php $id = 123; // /docs/files/index.php include($_SERVER['DOCUMENT_ROOT'].'docs/includes/config.php');
-
How can i open a word or excel file inside a browser
JonnoTheDev replied to sheikhmdirfan's topic in PHP Coding Help
You can if you have the newer versions of ms office -
I hear this news nearly brought down the web with sheer number of searches & updates i.e Google, Twitter. Crazy
-
How to make website like domaintools.com ?
JonnoTheDev replied to ankur0101's topic in PHP Coding Help
WTF would javascript do for you? If you know how to fetch the whois record for a domain and store in a variable then it is simple to extract the registration date and expiry date using regex or php's string functions. -
@ will just surpress the error
-
Has your php server got an outbound internet connection? Is DNS setup properly on it? Ping the domain isbndb.com from your server.
-
How to make website like domaintools.com ?
JonnoTheDev replied to ankur0101's topic in PHP Coding Help
You have no chance if you don't know PHP or perl -
Use md5() and /or sha1() hash functions with a salt / string to generate a key i.e. <?php $salt = 1234; $string = "foobar"; $key = sha1(sha1($salt.strtolower($string)); ?>
-
image manipulation issue
JonnoTheDev replied to senthilnathanns@yahoo.com's topic in PHP Coding Help
This is not a PHP issue. Convert is imagemagick. Should post in misc board. However to answer your question use the quality flag: -quality 100 -
1. User unfriendly i. I have no idea what I am looking at or navigating through ii. I have no idea what this company does iii. There is no call to action or at least unable to find i.e. telephone number / contact information 2. There is no standard to the layout. It chops and changes from the index page right through. 3. Search Engines i. There is no useful content for search engines to spider in order to index the pages ii. The site is made in a frameset, poor for SEO
-
I wouldn't go near your house if you had a bullmastiff. Brick shithouse scary bastard of a dog. Don't like them personally!
-
run the script from the command line on your mac (from the root directory /) and you will see if there are any errors php /path/to/spider.php
-
They will both serve the same page. Please elaborate. index.php should be the default if no filename is specified. I have a feeling you are talking about mod-rewritten urls. If so this is not php. Check out the mod rewrite forum
-
A good site should still function without javascript enabled. Javascript should be used sparingly unless essential to the functionality. I cannot see any functionality in your site that javascript is essential. Menus and things can be made with CSS.
-
Quite funky. I would say it was useful, however you must already know the name of the font to search in your text field. Would be nice if you had a select list so you could try out fonts without searching.
-
Can't get exec() to work in PHP
JonnoTheDev replied to PemiPop's topic in PHP Installation and Configuration
Some hosts disable the use for security reasons if you are on a shared server. What are you trying to execute? If a php script you must make sure that php-cli is available on the server. -
Sorry, but that background is awfully distracting and your choice of colours makes the content hard to view / navigate. There is a massive chunk of space above the content because of your logo in the top left meaning you need to scroll. The CSS doesn't work in IE. Your login layer overlaps the main content area.