Pages: 12345678Next
Current Page: 1 of 8
php not working
Posted by: jariusjames (202.138.133.---)
Date: February 17, 2012 09:10AM

hi guys. i dont know if this is a problem with WAMP or the PHP installed inside wamp. i been writing codes in php when suddenly, it stops working. all my codes are being shown in the browser (IE and chrome) which was not suppose to happen especially with PHP, and a white blank page in mozilla. but dont get me wrong guys because what im testing was only a 'hello world' sort of stuff. im sure there's nothing wrong with my code or something. i've already reinstalled wamp but its still the same. im new to programming PHP but i used to run any of my practice websites with wamp so i can assure you that it run before this problem occurs. NEED HELP!

Options: ReplyQuote
Re: php not working
Posted by: stevenmartin99 (Moderator)
Date: February 17, 2012 11:14AM

use <?php instead of <?

or left click wamp > php > settings > short_open_tags

and make sure you are running your scripts through localhost and not just opening the php file in the browser

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 02/17/2012 11:15AM by stevenmartin99.

Options: ReplyQuote
Re: php not working
Posted by: jariusjames (---.204.61.22.pldt.net)
Date: February 18, 2012 09:09AM

ok so here's the thing...

this is the code:

<?php

echo 'test';
?>

my editor: notepad++

things i've already done:

1) save it to C://wamp/www/test.php
2) reinstalled wamp
3) reinstalled PHP
4) reinstall windows 7
5) tried xampp

the very first time i use PHP via wamp, it was really great. but it just suddenly stop working for no reason. im almost done with my 4th website then this thing happens. please help me. i dont know what to do.

Options: ReplyQuote
Re: php not working
Posted by: stevenmartin99 (Moderator)
Date: February 18, 2012 10:12AM

If you get Teamviewer I'll fix it for you at about 2pm
Gmt

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: php not working
Posted by: sixisall2001 (---.stx.res.rr.com)
Date: February 20, 2012 09:59PM

I also have a similar problem. Everything was working great on Monday and on Saturday it would no longer work. I found that in every saved .php file I had saved in C:\wamp\www\ I was missing the same closing bracket.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "[www.w3.org];
<html xmlns="[www.w3.org]; xml:lang="en"> <----------HERE the > was missing when I opened all my php files that are saved in wamp server. C:\wamp\www\

Even after I repair the missing bracket the php will not work. In the code it goes to text after it comes across the first > following the opening <?php even if the > is within an echo statement.
Last night I downloaded and installed WAMP 2.2C (32) and it still will not work. I have not reinstalled my Vista since I am an online student and do not have 3 days to reinstall all my programs. I do however need to get my php working for one of my classes. I have a few copies of PHP I downloaded from php.net but am confused on which version I need to install. CV9 or CV6? thread-safe or non-thread-safe?

Options: ReplyQuote
Unofficial New Versions >> WampServer2 and WampServer64
Posted by: stevenmartin99 (109.79.4.---)
Date: August 22, 2010 04:11PM

(WampServer 2.2a has been officially realeased as of 26-09-2011 in 32bit and 64bit so please use this)



I have decided to build the latest version of WampServer with the most up to date components available.

The current version 2.0i is over 1 year old now and the new versions of the components(apache mysql php) have a lot of bug fixes which users really should be using.

This is an up-to-date version of wampserver. This means that there may be different builds/specs of 2.0j and that it is the most up to date version possible at time of download. This being said- all of the original wampserver addons do work with Unofficial Wampserver 2.0j and all Unofficial Wampserver addons work with the original wampserver 2.0 ( versions a to i). Unofficial Wampserver is also maintained on Sourceforge.

Unofficial Update for WampServer 2.0
(Updated 06/11/2010)
Apache 2.2.17
MySQL 5.1.52
PHP 5.3.3
PHPMyAdmin 3.3.8
SQLiteManager 1.2.4


NOTE :- 32bit and 64bit Versions are now available of MySQL for WampServer2.0



This is NOT an official release of WAMPSERVER 2


The individual components are also available


------------------------------------------------------------------------------------------------

WampServer64

I have also compiled WampServer64. It contains full 64bit versions of
APACHE, MySQL and PHP. Due to compiling differences with 64bit versions of
Apache and PHP , all previous WampServer2 addons are NOT compatible with this version.
I will be maintaining addons for WampServer64 from this point forward.

New Features as follows:
SQLiteManager is back,
eAccelerator has been added,
Memcache and LDAP extensions are added to php,
MysqlDumper is added


WampServer64
(Updated 06/11/2010)
Apache 2.2.17
MySQL 5.1.52
PHP 5.3.3
PHPMyAdmin 3.3.8
SQLiteManager 1.2.4
MySQLDumper 1.2.4
eAccelerator 0.9.6.1


Note: Florian's WampServer Patch is NOT compatiable with this 64bit version




This is NOT an Official release of WampServer



Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 39 time(s). Last edit at 09/29/2011 10:49AM by stevenmartin99.

Options: ReplyQuote
Re: Unofficial update for WampServer 2.0
Posted by: yfastud (Moderator)
Date: August 23, 2010 03:22PM

Since it's unofficial, make sure to backup before update

To setup Backup, follow this
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Unofficial update for WampServer 2.0
Posted by: camelgrass (---.lns20.bne1.internode.on.net)
Date: August 24, 2010 05:15PM

Thanks for the package.

One problem I have is phpMyAdmin does not work with your package. It takes a long time to load then just shows a blank page.

Options: ReplyQuote
Re: Unofficial update for WampServer 2.0
Posted by: stevenmartin99 (---.251.255.12.threembb.ie)
Date: August 24, 2010 06:39PM

Check ur hosts file

C:/windows/system32/drivers/etc/hosts


Open this with notepad as an ADMINISTRATOR

the hosts file SHOULD have

127.0.0.1 localhost

and it SHOULD NOT have

::1 localhost

this is a bug in the new MySQL mysqlnd driver( for last 2 versions of mysql)

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 3 time(s). Last edit at 09/05/2010 11:49AM by stevenmartin99.

Options: ReplyQuote
Re: Unofficial update for WampServer 2.0
Posted by: yfastud (Moderator)
Date: August 24, 2010 07:59PM


Options: ReplyQuote
Re: Unofficial update for WampServer 2.0
Posted by: camelgrass (---.lns20.bne4.internode.on.net)
Date: August 25, 2010 12:08PM

Okay.

I had to add 127.0.0.1 localhost to hosts file to get it to work. Didn't need that with the previous version.


Thanks!

Options: ReplyQuote
Re: Unofficial update for WampServer 2.0
Posted by: stevenmartin99 (---.mobile.digiweb.ie)
Date: August 25, 2010 05:46PM

glad its working

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 2 time(s). Last edit at 09/05/2010 11:51AM by stevenmartin99.

Options: ReplyQuote
Re: Unofficial update for WampServer 2.0
Posted by: Steve121 (---.9-3.cable.virginmedia.com)
Date: August 28, 2010 02:12PM

Thanks - worked first time with no problems.

Options: ReplyQuote
Re: Unofficial update for WampServer 2.0
Posted by: GargantulaKon (---.phlapa.fios.verizon.net)
Date: August 29, 2010 01:02AM

I had the same problem with phpMyAdmin. I was also having the problem with the official WampServer release depending on what versions of PHP, Apache and phpMyAdmin I was using. Weird.

My default Windows 7 x64 hosts file has this:

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

I uncommented the first line and it now works. Why did the default hosts file work with the other WampServer release? If I remember correctly, Windows XP had the first line uncommented by default.

Thank you for updating WampServer. It has been a headache for me to get it to work with the latest version of PHP and now this works! You might as well take over the WampServer project since it has been dead for a while.

@yfastud
The backup guide mentions to change the default-storage-engine, but my my.ini file does not have that line at all. It says to add it, but in which group in the ini file? It looks like the default storage engine is MyISAM according to the variable in phpMyAdmin.



Edited 2 time(s). Last edit at 08/29/2010 01:26AM by GargantulaKon.

Options: ReplyQuote
Re: Unofficial update for WampServer 2.0
Posted by: yfastud (Moderator)
Date: August 29, 2010 02:15AM

Quote

It looks like the default storage engine is MyISAM according to the variable in phpMyAdmin
most free, even commercial, scripts set to use MyISAM for faster access compare to InnoDB but not mean that your default type is MyISAM unless you have that line in wampmysql section to make sure to set it as default engine winking smiley

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Unofficial update for WampServer 2.0
Posted by: stevenmartin99 (---.251.255.13.threembb.ie)
Date: August 29, 2010 08:20AM

I'm going to take a look at this phpmyadmin issue

But it has to do with ipv4 and ipv6 Addresses


127.0.0.1 is the ipv4
::1 localhost Is the ipv6

Phpmyadmin config file is having some issues with realising it's all the same. This is why u see the problem between xp(ipv4) and vista/7(ipv6)


As for talking over wampserver- I'd love to work on( I don't wanna just take over all his work!) but with no contact from Romain I can't even put a link on the proper download page for update.

Wampserver is downloaded 80,000 a week

My update will even out at about 500 a week
It's a pity. More cant have the updated version.

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 3 time(s). Last edit at 11/10/2010 09:23AM by stevenmartin99.

Options: ReplyQuote
Re: Unofficial update for WampServer 2.0
Posted by: stevenmartin99 (---.251.255.14.threembb.ie)
Date: August 31, 2010 05:21PM

I have Been talking to the developer of PHPMyAdmin and this is actually a fault with the mysqlnd driver. This can not be fixed due to compatability issues.

So the only solution for windows users is to use 127.0.0.1 or remove ::1. Localhost from the hosts file.

In future versions of PHPMyAdmin they will add an error screen to explain this

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 09/03/2010 07:13PM by stevenmartin99.

Options: ReplyQuote
Re: Unofficial update for WampServer 2.0
Posted by: GargantulaKon (---.thefirestore.com)
Date: August 31, 2010 07:32PM

Well since it works in Windows 7 x64 with using 127.0.0.1 localhost. Is there any downfall to using it this way?

Options: ReplyQuote
Re: Unofficial update for WampServer 2.0
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: August 31, 2010 08:22PM

No not at all. It's perfect in this way

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Unofficial update for WampServer 2.0
Posted by: toumimi (---.44.75-86.rev.gaoland.net)
Date: August 31, 2010 09:43PM

If I remember well, ::1 is not valid, but :::1 and seemed to work.
I can't test, but it can become another solution to allow ipv6 as well.

So try this content in hosts file :
127.0.0.1  localhost
:::1             localhost

We still need to update hosts file in order allow it to work, but it's another point of view if I'm true...

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Pages: 12345678Next
Current Page: 1 of 8


Sorry, only registered users may post in this forum.