Php

Advertisement

File System Optimizations (ext3)

File System Optimizations (ext3)

I have a PHP application that for every request loads 1 ini file, and at least 10 PHP files. As these same files are loaded for every single request I thought about mounting them on a ram disk but I have been told that the linux filing system (ext3)
Why Cookie Not Getting Tracked

Why Cookie Not Getting Tracked

on one domain i use command as:: setcookie( "cookiename", "cookievalue", time()+86400, "/", "domain1.com" ); on other domain i used a pixel code as <img src="http://domain1.com/?action=trackcookie" widt
How Do I Keep From Reprocessing Forms?

How Do I Keep From Reprocessing Forms?

I want to submit a form to another page to process the data from said form. Then the person can go on to another part of the site or another site altogether. However If the person later clicks the <back button> enough times they will arrive back at
Which CSS File Is Slected In The Code?

Which CSS File Is Slected In The Code?

In the below snippet of php code how does the php know which #main to read ? Note at the top of the code I have added the css file from my zenphoto which contains a DIV main. However, for some reason when I go to my site it is apparent that the code
Insert Into One List Box

Insert Into One List Box

I have two tables data. After querying it I have two results. I should insert into one list box where data from table A i should color it in font black and another in red and disable it(from table B).
Identify Clusters Of Nodes In A Network?

Identify Clusters Of Nodes In A Network?

I have a table describing several sets of connected nodes: node origin_node REFERENCES node start_time end_time and I want to find out how many clusters the dataset contains, e.g. if the records were: A, B, 10:00, 11:00 B, C, 9:00, 9:15 D, E, 10:00,
Removing Angry Animal Variables From Array?

Removing Angry Animal Variables From Array?

I can see how we can remove specific variables within an array: <?php // Provides: Hll Wrld f PHP $vowels = array("a", "e", "i", "o", "u", "A", "E", "I", "O", &qu
Prohibiting &quot;refresh Posts&quot;..

Prohibiting &quot;refresh Posts&quot;..

I've got a script. sort of a pop quiz working nicely.. the problem is that it's very easy to, as it is, con by refreshing the page.. thus getting more points. What I'd like to do is empty the $_POST (or $HTTP_POST_VARS) variable so that when refreshi
Script Format Bytes Translation To JavaScript?

Script Format Bytes Translation To JavaScript?

I have this PHP function that I always use and now I need it in Javascript. function formatBytes($bytes, $precision = 0) { $units = array('b', 'KB', 'MB', 'GB', 'TB'); $bytes = max($bytes, 0); $pow = floor(($bytes ? log($bytes) : 0) / log(1024));....
Updating A Drop Down Box

Updating A Drop Down Box

I have an update form that displays all current selections to the user. Displaying text in edit boxes is easy but how do you show a previous selection in a select object ? Here is some code ... <select name = "allow">    <option value=&
Checking Contents Of A .txt Fles

Checking Contents Of A .txt Fles

My web application requires users to upload data in the form of comma-seperated values i.e. 11,3, 8,12,5 ,1,9, 13,5,7 I want to check that the user is only uploading numbers and commas What is the best way to check this? Regular expressions?
Search Without SQL Database

Search Without SQL Database

Anyone able to point me in the direction of a no database php search tutorial or throw up an example. Basically, I need to search for non HTML elements pages within a directory.
How To Search Without Database

How To Search Without Database

i am developing a site and everything on the site is static meaning no database. now, they wanted to add a search tool bar thats is only meant to search by keywords my problem is i dont know how to do it because i have done it before.
Using The Url To Search A Database?

Using The Url To Search A Database?

I have an android app that scans and item then goes to my webpage and searches a database for that item. However, I don't know how to search my database through my url. Something like, [URL]. How would I set up my url to search the database?
Database/coding Issue?

Database/coding Issue?

I have users table. with usernames and info on those users. The info that i have setup for this portion is userid_2 What i have planned for this is to call up that userid_2 from everyuser in a sequence. like this: user1: userid_2 = 1 user2: userid_2
Encrypted Hidden Value In A Hyperlink?

Encrypted Hidden Value In A Hyperlink?

i am working on a project, where when a user registers, he would be provided with a link which he can give to anyone and ask them to register. once this new user, uses that link to register, he will be automatically assigned certain points, that was
Pullout Date From Table

Pullout Date From Table

I have a table with more than 50 columns. I named the column with order, for example, sub1, sub2, ....sub54. When extracting data from table, to save time, I wanted to use a while loop as following: Code:
Convert HierarchicalCollectionView To Array Using Flex3?

Convert HierarchicalCollectionView To Array Using Flex3?

i used advance datagrid of dataProvider as HierarchicalData . it's an my array collection strature [Code].... It shows only country details but if i tried matches and isEnable not found in array . How can i found is isEnable and matches details ?
Txt Files And Variables

Txt Files And Variables

I'm making a script that will email my users upon registration.  For the email body, I want to use file_get_contents to shorten the mail function line.  If I use a txt file such as reg_email.txt, will variables such as $username still work?  I'm deve
Files Using The Variables

Files Using The Variables

The assignments here [eg. $first=mysql_result($result,$i,"first");] are influenced and other php files using the variables[eg. $first] ? eg. $first=mysql_result $result,$i,"first"); If not how to use the variables[eg. $first] in anothe
« Prev 1 ... 5 6 7 8 9 10 Next »