Programming :: Loading Multiple Page Versions With PHP And MySQL?
Jun 18, 2011
I have a page which is going to be internationalized, and available in more languages. It contains PHP scripts to load, let's say, current user's data from database and the internationalized content itself, like "Welcome user" message. The problem for me is the fact, that internationalized content is not continual, and it's all over the page mixed with php scripts.
I don't want to use eval(). I've got 2 , they are, however, not good enough. 1. One file per language version, with scripts included - there will be many languages, so there would have to be many files with redundant data. Also if I wanted to change structure of script, I would have to change it in all pages. 2. Load international data from db, while scripts are on the page - not sure about good database structure I mean, how would I get the right content from database? (content would be split into rows, columns, or something?)
View 8 Replies
ADVERTISEMENT
Dec 1, 2008
I am writing a script to mine data from my game server logs which are going to mysql. My first question is syslog-ng is sticking $msg into one colum it self, $msg tends to be a long string here are a few examples:
cn name team frag death flags role host.
0 Maik CLA 2 0 0 normal *.70.233.118.
1 lizardncd RVSF -1 3 0 normal
[*.22.247.40] lizardncd fragged Maik.
And they are not always in the same format, How could I parse this data to do something useful, like creating a user stats page with frag counts and flag counts. Should I create a script that runs in a cronjob that parses this data to a new table maybe once a day. Even then the $msg string value is random and I am thinking in terms of awk.
Second. I would like to keep track of what ip's are using what nicknames. Kinda in the sense of and ip associated to a array of names that have been used on that ip address so I can keep track of users. How would this work logically with a mysql db, could a column allow multiple values, then loadable into an array, which then can add, remove, and store to mysql.
View 1 Replies
View Related
Jan 23, 2010
Have a McFee Server; SuperMicro 370der, P3 Dual 1 ghz, 256 gig ram, 2 18.2 gig scsi(lvd) drives. Have tried loading 4 versions of ubuntu to my server and get hung on the agp chipset. don't know where to go to get it to work. Tried 6.0 to 9.10.
View 3 Replies
View Related
May 8, 2009
wanted to know if i can execute commands on linux console through a web page and redirect it back to my web page !For example :if i send a query "ls"it should execute this command on my linux console and also redirect the list of the files to the web page from which i give the command !
View 8 Replies
View Related
Aug 22, 2010
On my lenny+backports+debianmultimedia desktop I see two annoyances. 1st: There are multiple versions of same packages. But while attempting to remove the older versions I see apt-get is removing some essential packages. Is there any way to kill this duplicacy of packages? Here is a list of packages whose multiple instances are installed:
xulrunner-1.9.0.19-3
xulrunner-1.9.1.11-1~bpo50+1
cpp-4:4.3.2-2
cpp-4.3-4.3.4-6~bpo50+1
g++-4:4.3.2-2
g++-4.3-4.3.4-6~bpo50+1
[Code]...
Note: Just for sanity's sake I want to remove the extra versions and disable that error message, except that I don't see any problem.
View 6 Replies
View Related
Jun 6, 2011
For my work it is extremely useful to have multiple versions of gcc available. I've done this in the past under Ubuntu simply by enabling alternative or older repositories but in Fedora land I've not been able to find a standard automated way of doing this. Can anybody point me in the right direction?
View 13 Replies
View Related
Feb 1, 2011
I'm using latest Ubuntu version 10.10 and I want to try Firefox Beta, but don't want to replace the one I;m using now which is 3.6.13.
I have downloaded Firefox 4 Beta andd extacted file to a /Home Folder/(My username)/Firefox 4 (Beta)/
and I wen to that folder and clicked on the Firefox link bu version 3.6.13 came up. in another window. Do I have to close Firefox ad re open it or do I have to do something else?
View 1 Replies
View Related
Feb 25, 2011
I have installed GCC 4.5.1 using senaptic. But typing gcc in any terminal still calls the older version of gcc. I see that in /usr/bin gcc is a link to the older gcc. Would it be OK to replace that link with the new one poiting to the newer version of GCC?
View 3 Replies
View Related
Dec 13, 2010
As I mentioned on another thread, I have 2 Ubuntus - Jaunty and Meerkat - as separate drives on my secondary IDE channel. I am removing Jaunty. Meerkat blows it away. And is certainly my preferred OS. However I am looking for a replacement for Jaunty that is more flexible in certain key areas than Ubuntu appears to be.I dont want to be restricted to Debian versions of things like Perl, MySQL, PHP and others. I can run LAMPP, but I would prefer to compile and have the versions of my choice as part of a main test system (apart from Meerkat that is).
I have had enough nightmares in Jaunty with things getting broken and spiralling out of control. I want a distro that doesnt rely on the GUI and its attendant utilities, but can run them when called. Meerkat is stable and has resisted me breaking it so far, but I do not want to push my luck. I have too much time invested in it. I intend to use Meerkat as my primary system on the machine, but want an alternative to *PLAY* with.
View 9 Replies
View Related
Jan 1, 2010
Some times i need the older version of some packages in my system...side by side with the new one.i.e mostly i found older version openssl package for supporting dependency of some programs Can I keep the following libraries at the same time in my system by installing multiple versions of openssl?
[Code]...
View 3 Replies
View Related
Feb 24, 2010
I have a dual boot desktop with WinXP on C: and Ubuntu on D:. GRUB 2 handles the start-up. Having installed multiple updates to Ubuntu, my GRUB menu now lists:
2.5.31-19-generic
2.5.31-17-generic
2.5.31-16-generic
2.5.31-15-generic
2.5.31-14-generic
and (recovery mode) for each of the above, along with the mem test and WinXP.Is there any reason I need to list all these variants of Ubuntu? If not, can I simply edit them from the GRUB config file or must I do something else to actually uninstall them?
View 2 Replies
View Related
May 26, 2010
I am not sure if this is the right section to ask this question (sorry if it isnt). Anyway, I want to build and install 3 different softwares:OpenCV, Player, Stage. These are required for my school projects and research etc. Now, I need to install them in this manner:
Opencv-2.0.0, player-2.1.3 and stage-2.1.1 and Opencv-2.1.0, player-3.0.1 and stage-3.2.2
The reason for this is, these are the sets of versions that talk to each other without problems. And I need the older versions for a project that I'm currently working on and its always nice to have the newest version installed on the system. If its only a single version install, its pretty easy and I can do it.Since I want to install multiple versions of the same software I could use some help. I am not sure whether I can install all of the them in the default directory (/usr/local/). So, I can set up a separate directory on my home folder. But thats as far as I've gotten to. I am particularly concerned whether one version would break another. Is there anything that I can do to avoid this?
View 3 Replies
View Related
Sep 29, 2010
I do quite a bit of testing of a FOSS package, which I install from rpm. At any one time there may be 3 versions ( current release, new release candidate, and snapshot of trunk) that I wish to test. If I stick to normal naming conventions (i.e. current release fred-2010.0...rpm, release candidate fred-2010.2...rpm, and trunk fred-2010.3...rpm) it seems to me that I can only have one version installed at any one time. Is there a 'proper' way of managing this (using the package manager), so that I can have multiple versions installed at any one time?
View 10 Replies
View Related
Jan 20, 2010
I want to have 2 diffrent versions of a package installed at same time. This is the command i use "apt-get install myprogram=versionID" Problem is, that when i install the version i wanna add, it REPLACE it with the old I dont wanna replace, i wanna keep them both.
View 2 Replies
View Related
Apr 9, 2011
How to install multiple versions of GCC on Fedora 12? Using yum, I upgraded my g++ to 4.4.4-10. I want to install a second version 4.6.0 of GCC.
[Code]...
View 9 Replies
View Related
Nov 17, 2010
I have redmine 1.01 on Suse 10, some days back it was running fine. but now it's taking too much refresh to load a page properly. How will I go back to normal page loading ?
View 1 Replies
View Related
Feb 4, 2010
The main problem is that the software was developed about 15 years ago and is incompatible with the most current version of Java. I would like to know how to install an older version of Java so that I can use it with just this one application, without changing the version of Java that I use for everything else.
View 1 Replies
View Related
Mar 17, 2011
When I turn on my computer, because of frequent updates it will display several versions of Ubuntu 10.10 that I can choose from. I wonder if it is possible to delete some of the older versions and how. I think having several versions of Ubuntu uses up a lot of space in the hard drive.
View 4 Replies
View Related
Feb 11, 2011
I have matlab installed on a network (I am not the administrator) and we usually start the program by typing "matlab", then choosing one of the version options from the menu i.e. typing "n". So because of this, trying to run matlab programs or commands directly like this... matlab -r ProgramName
...does not work. I just get the menu as usual and everything else is ignored. I assume the admin has overridden the matlab command with their own custom script. So my question is can I start a specific version of the program by specifying the folder that the version is in? I thought it might be something like /opt/matlab/version -r programname
this might look foolish, but I am a bit of a linux noob. Let me know if I should just ask my administrator but I thought there might be something easy I am missing.
View 1 Replies
View Related
Jul 17, 2009
I'm missing a fundamental that I just cant seem to wrap my head around with setting up repositories with RepoSync. I set up a local repository when my system was running version 5.2. Everything ran like a top up until the release of 5.3 Upon release I ran the standard yum on my 5.2 server which upgraded it to 5.3 and thats where my mental block is catching me up.
When I run a reposync It seems that all I'm able to download is the 5.2 packages. I'm trying to figure out how I can manage both a 5.2 repo along side a 5.3 repo with reposync and figure out what needs to be done to properly make reposync pull down the latest updates for the newer version. My original thinking was that once my repo server was upgraded to 5.3 it would start pulling the 5.3 updates but obviously I'm way off base since that is not happening.
View 1 Replies
View Related
May 5, 2010
With the last several updates to Firefox, loading pages from several different sites slows down to (slower than) a crawl - taking sometimes minutes. Most of the time, this occurs loading ads.
I don't remember what release this started with, but I didn't have problems before, and I don't have any problems loading the same web pages on IE8 (running on XP). This is the same on F12 and F11.
I have tried changing some of the securty choices, even tried blocking certain sites, but no luck.
Also, several times after a download, firefox freezes, although the rest of the desktop is okay.
View 3 Replies
View Related
Apr 15, 2010
When I start firefox the home google page will load and all is well. When I go to any other page (ex. cnn.com, gmail, etc) the page will load graphically, but then continue to load forever. At this point I cannot click on anything in firefox including the drop-down menus.I must force quit at this point.
I updated last night even though I was already using firefox 3.6. I had a problem with flash last time I updated. I reinstalled firefox and went back to firefox 3.5 without any success.This makes me think that the problem is something other than firefox.I am on a Toshiba Satellite L505-S5965 running ubuntu 9.10. I'd give you more information but when I click on system and go down to "About Ubuntu" it loads forever - this is another problem I need to fix. Ugh. I should never have updated
View 3 Replies
View Related
May 23, 2010
Login page is not loading in Mozill Firefox 3.6.3 for some banks where I have online facility.I have Ubuntu 10.04.
View 2 Replies
View Related
Aug 1, 2011
I have a question about Open Suse and Mysql. Why is there no page on the MySQL 5.5 or an rpm for somewhere to open suse.
View 6 Replies
View Related
Mar 5, 2010
Why do I keep getting this error when I try to search something on google. It happens when my query has around five or more words. If a search for just one or two words I don't get the error. I know it's not google because it happens with bing, msn, and yahoo too. The connection was reset The connection to the server was reset while the page was loading.
* The site could be temporarily unavailable or too busy. Try again in a few moments.
* If you are unable to load any pages, check your computer's network connection.
* If your computer or network is protected by a firewall or proxy, make surethat Firefox is permitted to access the Web.
View 1 Replies
View Related
Mar 21, 2011
Problem with Jaunty (yes I know its old) on line. The thing is some web pages are fine and some just never seem to open up with Firefox.
I dont seem to have any problems when I attempt to ping for instance google.
ping -c 1 google.com
PING google.com (209.85.149.103) 56(84) bytes of data.
64 bytes from ber01s02-in-f103.1e100.net (209.85.149.103): icmp_seq=1 ttl=59
[Code]...
I also can open up for example, The Guardian (newspaper) home page, but when I try to open any page within the site it will try loading to no avail.
In general it seems to be almost 50% open and 50% will never open.
Network Connection type DSL
MAC address is blank
MTU automatic
IPv4 automatic (PPPoE)
View 8 Replies
View Related
Apr 29, 2011
In ubuntu however, page loading is Unnaturally slow and "[url]...." (or whatever), returns result every 4 seconds. Strange is that Skype and online games (read HoN) work fine, with only problem is store loading 10seconds and during logging time. I will post all the command output.
Code:
sudo iptables -L -v
Chain INPUT (policy DROP 5411 packets, 658K bytes)
pkts bytes target prot opt in out source destination[code]...........
View 1 Replies
View Related
Aug 3, 2010
i'm using fedora 13 OS and installed web invoice application in my server. whenever i open the site, the problem on "connection to the server was reset..." is persistent. i was advised to clear the cache which i did. it work for a while but with just a few page loaded the same problem occur and i need to clear the cache. again i found a suggestion in the internet to add post_max_size = 48M file_uploads = On upload_max_filesize = 192M to the php5.ini. i also did this in my server, but the same problem occurs.
View 6 Replies
View Related
Jul 6, 2009
When running Firefox, page loading is very slow (e.g. taking nearly a minute for a ..... video to start; even gmail is slow). This is in contrast with my performance when using, e.g. linuxdcpp (file sharing), where I get speeds over 300kbps. Here is some relevant information:
[root@cgwatson ~]$ uname -rmi
2.6.18-128.el5 x86_64 x86_64
[root@cgwatson ~]$ rpm -q centos-release
centos-release-5-3.el5.centos.1[code].....
View 8 Replies
View Related
Feb 8, 2010
but ive two problems. 1st: The first is how do i change the default page on load up of localhost.eg when i enter the http://localhost/ i get the usual it works symbol.this is because its loading the index.html file in my var/www/ folder.i dont want too create another index file, but how do i change the configuration too load up a different one like home.html2nd: i tried installing sudo apt-get install phpmyadmin and for the most part it worked.but nothign comes up when i go to http://localhost/phpmyadmin/
View 2 Replies
View Related