I have a problem retrieving some data from the $_SESSION using php and mysql. I've commented out the line in php.ini that tells the server to use the "file" to store the session info so my database will be used. I have a class that I use to write the information to the database and its working fine. When the user passes their credenti...
The scenario:
Big system (~200 tables).
60,000 users.
Complex reports that will require me to do multiple queries for each report and even those will be complex queries with inner queries all over the place + some processing in PHP.
The approach:
I have seen an approach, which I am not sure about:
Having one centralized, de-normali...
Hello guys, I want to put an IRC client in my webpage. I know there are many clients but not opensource ones (I didn't find any). So, do you know some free and open source projects to implement an irc client on a webpage?
And what do you suggests in term of implementation? I mean is it a good idea to have one made in flash?, one made i...
So I run some code like this:
$quote = simplexml_load_string($xml);
$quote = $quote->Stock;
echo 'Name: ';
echo $quote->Name;
echo '<br>';
echo 'Sybmol: ';
echo $quote->Symbol;
echo '<br>';
echo 'Last Price: ';
echo $quote->Last;
echo '<br>';
echo 'Earnings To Price Ratio: ';
echo $quote->P-E;
echo '<br>';
I know that the second to la...
I created a function in my controller called addToPlaylist($songName). I wanted to add these song names to an array and then a session variable using an Ajax call. The first time i did this i got an error saying i do not have a template file to display in the chosen div ("add_to_playlist.ctp was missing"). I created this file and everyth...
I have two quantities Cat A , CatB
Now the items in Cat A can belong to many items in CatB.
and CatB will also have many Items from Cat A.
I thinking of having Table1 for Cat A , Table2 for CatB and Table C for relation ship.
with
PK-A , PK-B
Is that correct.
How should i make my form in html so that user can select multiple val...
I have developed a simple site that fetches tweets from the Twitter public timeline, caches them for 60 seconds and so on. I have recently moved hosts from Hostgator to Mediatemple and my site was previously working fine on Hostgator.
My application doesn't use a database connection, nor does it use any form of flat-file database either...
Hi,
I switched from Lighttpd server to WAMP and then found sockets in php are not working. But php is configured and working. (phpinfo() works) I removed the comment for the php_sockets.dll in php.ini @ C:\wamp\bin\php\php5.2.5.but still gives the error "Fatal error: Call to undefined function socket_create()". Any more configurations t...
Hi,
I'm working on a regular expression that will only return true when a date string is in a format something like 'ddd, dd mmm yy'.
Valid matches would be values like "Sun, 20 Jun 10" or "Mon, 21 Jun 10" but not "Sunday, 20 Jun 10" or "20 Jun 10".
This will be used with mb_ereg in PHP.
My attempts so far have only got me half way t...
im on a mac using mamp/mamp pro.
when i open apc scripts i keep getting this warning
“apc-6.php” is a script application downloaded from the Internet.
Are you sure you want to open it?
ive downloaded and setup one of these scripts to test if apc works for me
http://pecl.php.net/package/APC
and when i click around a message box wit...
Hi all ,
I have a problem here, I have two files form.php and index.php , my form.php has an ajax to fetch data from index.php , also my index.php has a mail function which is running perfectly when we run index.php directly, but when i form.php to fetch data from index.php this mail function is not running .....
can any body tell me wh...
Hi all,
I am developing one site in Indian language (Gujarati).
My problem is as below:
My client wants that they able to copy Gujarati text from word document and paste into the Text area.
But when i copy text from word doc and paste into text area the its get converted to the English letters.
http://www.chanakyanipothi.com/gujchan...
Hi,
I have seen all the upload progress bar plugins, widgets, etc. – they all suck. They're either too bulky with too much useless code or they don't work.
What I want to know is where I can read up on how to display an easy upload progress indicator. Most browsers have a status progress bar on them below, but it isn't very professiona...
I have a classifieds website, and on each classified there is a tip-form where users may tip a friend about the classified.
The tip-forms' action is set to a php-page, which mails the email after sanitizing etc...
I have to filter away spam etc so that my email-server don't get blacklisted or anything...
I have my own server (VPS, Linu...
Because windows xp renders certain fonts so poorly, i would like to detect whether the user is using that OS and add a class to the body accordingly.
I'm looking ideally for an html conditional statement or php $_SERVER var to do this
However failing that a piece of javscript along the lines of below would do
if(users_os === 'xp'){
...
I am using an image instead of a submit button for search option and use onclick events to load the results using ajax in php.Now I need to load results by hit enter also.Is their any ways to update my application without changing the image.
Thanks
...
i am new to OAuth
i want to know how to use "Twitter OAuth library from Abraham Wiliam" to get user's credential information.such as screen_name.
...
I want to load an extension within a Php file as I don't have access to the php.ini file.
I tried:
ini_set('extension','php_gd2.dll');
With the file in the same directory as the Php page but it did not work.
Must it always be done with in php.ini or can it be done like the above?
...
Hi, I would like to know how I can improve my development environment.
At the moment:
I'm using Netbeans as my IDE.
My local Dev server runs on a RHEL5 VirtualMachine similar to my production server.
My Netbeans project is editing the VM files via ssh (I have mounted the server as a local drive)
But:
It's slow
Files can disapear (...
I've been asked to create a stand-alone webapp using "straight" HTML and Javascript that does user authentication against an existing PHP app (backend is MySQL). Unfortunately, I really don't have a firm grasp on how PHP authentication works, and I'd rather not invest a lot of time in learning PHP just for this particular case.
I can se...