wildteen88
Staff Alumni-
Posts
10,480 -
Joined
-
Last visited
Never
Everything posted by wildteen88
-
If you want the presentation to be browser friendly, meaning allow it to run on all/most browsers, then use flash. There may be free software that can convert an existing presentation, such as power point, to an swf file for you. However you cannot embed a powerpoint presentation into a webpage and expect it to work on all browsers. The only browser it will work on is Internet Explorer If you allow for the ppt file to be downloaded then it wont run on the users computer unless they have Powe rpoint installed, if they don't then in order for them run that file on there computer they will have to install Powerpoint Viewer (can't remember the exact name) which they can download freely from Microsoft's website.
-
Enabling mcrypt in PHP on Windows Server 2003
wildteen88 replied to iissmart's topic in PHP Installation and Configuration
To add the php folder to the path read this post of mine here -
no you have set each site its own virtual host. I am not experienced on this so I would recommend you to read the Apache documentation on virtual hosts.
-
You will want to use virtual hosts if you have more than one document root. However if G: driver only holds your websites then you should be able to set DocumentRoot to just "G:/" Then when you go to your website you will get a directory listing of all files and folders in the G: drive. However setting up a virtual host for each site would be better.
-
Enabling mcrypt in PHP on Windows Server 2003
wildteen88 replied to iissmart's topic in PHP Installation and Configuration
Have you added your php folder to the windows path? I would recommend you to add php to the path. This will then allow PHP to access itself, as well as removing the requirement of moving files from the PHP folder around the file system. PHP should come with the necessary libraries for mcrypt. Did you use the PHP installer when installing PHP? If you did then download the zipped binaries instead. The zipped binaries has more extensions/libraries. -
prehaps use a frame set instead
-
Please post segments of your code that has the issue. Make sure you are using $_SESSION and not the old $HTTP_SESSION_VARS variable.
-
Please read this sticky You haven't enabled the the mysqli extension. That sticky will point to an FAQ which will tell you how to enable that extension. Note where it says php_mysql.dll use php_mysqli.dll That is nonsense. It all to do with PHP's configuration. Nothing else.
-
all done, steel not parsing php part of code..
wildteen88 replied to clown's topic in PHP Installation and Configuration
Huh! I do not understand what you just said. Are you not adding those line in? If you dont add those lines in then your php scripts will not run. Attach your httpd.conf file here - Do not post the contents of the file. Attach it. To attach it click the reply button and then expand the addition options link to attach a file. -
Enabling mcrypt in PHP on Windows Server 2003
wildteen88 replied to iissmart's topic in PHP Installation and Configuration
check that php is using the php.ini you are modifying. Simply run the phpinfo() function and then load it in your site or localhost and look for the line that starts with Configuration File (php.ini) Path To the right of that it will state the full path to the php.ini PHP is using. Is that correct? If it has this C:/WINDOWS then php cannot find a php.ini file so it is using the default settings. Either move the php.ini to the WINDOWS folder or add your php folder to the windows path (recommended). As a side note, make sure you have setup the extension_dir directive correctly to point to your PHP extension folder. -
Apache2.2.x is not compatible with the Apache 2.0.x PHP5 module (php5apache2.dll). You must use the Apache2.2.x PHP5 module (php5apache2_2.dll) instead. This is due to a change in the way Apache2.2.x now handles modules.
-
It doesnt matter what version of PHP you have. PHP5 is the same as PHP4. It just that its got more functionality added to it like OOP. However what you will want to concentrate on is PHP's configuration close to that off Yahoo. Just run phpinfo on yahoo to see what they have PHP settings set to, look at the Core Options. Then set your php.ini to or close to those settings on your dev pc.
-
You use nl2br as AndyB advised. How are using that function. Post the code you use to output the data from the database.
-
You are doing a comparision rather than an assignment operation: $sub0 == 1; change that to: $sub0 = 1; and your code will work how you want it to.
-
all done, steel not parsing php part of code..
wildteen88 replied to clown's topic in PHP Installation and Configuration
How have configured Apache. Adding the following lines to the httpd.conf should be sufficient: LoadModule php5_module "C:/php/php5apache.dll" AddType application/x-httpd-php .php Make sure you save the httpd.conf and restart the Apache server for the changes to take effect. Also make sure you have added the php folder to the windows path too. -
NO you can use it for the whole site. However you will want to use a bit of regex. If all your files on contain characters from a-z then use this: RewriteRule ^([A-Za-z]+).html$ $1.php If you use file1.html then it will call file1.php if you use somethingelse.html it will call somethingelse.php
-
It could cause a session hijack. However the person that hijacks your session has to be in the same room as you. Also the session id is already encrypted. I believe by default it uses a random md5 hash for the session name.
-
Does $gp['gp_payc'] even exist? What sort of data does $gp['gp_pay'] hold?
-
If its just test.php to test.html then do this: RewriteRule ^test.html$ test.php So now when type in say http://mysite.com/test.html Apache will call test.php
-
Yeah i meant to have http:// before localhost/phpmyadmin in the $cfg['PmaAbsoluteUri'] variable. So the line should be: $cfg['PmaAbsoluteUri'] = 'http://localhost/phpmyadmin/'; Also could you tell me what OS you are running. I noticed on WAMP Servers forum that WAMP5 1.7.0 is having problems on Windows 2000/2003. Try downgrading WAMP and see if it fixes it If you want to use the versions of software used in WAM5 1.7.0 then go for a manual install instead. I always recommend a manual install rather than an all-in-one package.
-
I believe the word you are looking for is comment out not rem out. To comment out lines in html use the comment tags (<!-- This is an html comment -->) as shown by AndyB above. HTML comments can span multiple lines so make sure you close of your comment tags correctly.
-
I dont think ereg is outdated. Its just ereg and preg use two different regular expressions. ereg uses POSIX-extended and preg uses PCRE (Perl-compatible regular expressions). PCRE has much more power behind it than POSIX. PCRE allows for non-greedy matching, assertions, conditional subpatterns, and a number of other features not supported by the POSIX-extended regular expression syntax. if you want your code to work with PCRE then do this: $user_check = $_POST['name']; $strip_username = preg_replace("/[^A-Za-z0-9]/", "", $user_check ); The only changes needed was to change ereg_replace to preg_replace and added in delimiters at the start and end of the regex pattern. A delimiter can be a non-alphanumeric character to mark the start and end of the pattern, I normally use slashes - /. Note if you use the same character in your pattern as your delimiter you must escape them by placing a backslash in front of it, example: \/
-
By WAMP i assume you installed the package from www.wampserver.com However please read this thread for enabling the mysql extension. WAMP should have this extension already enabled.
-
Yes. You it like this: $var = "this has 'quotes' in!"; // OR $var = 'this has \'quotes\' in!';