Hello. I wrote a high-performance HTTP event server in C++ and I want to make it work flawlessly with nginx and PHP-FPM (fastcgi). This is a snippet of my nginx configuration.
location ~ \.eve$ {
gzip off;
proxy_redirect off;
proxy_buffering off;
proxy_pass http://127.0.0.1:9001;
proxy_interce...
I am looking to create alternating designs for the content of each post returned in my loop. In short I want the first post to display left align, next right align, and so on. I have not been able to find a way to do this. Any ideas?
...
I cannot figure out why my array is not working, I have $carrier coming from a text document.The user selects thier carrier, and it is stored in registry.txt. I open it back up, and mail "$number" followed by each carrier's specific address, for example verizon's would be "vtext.com" I would like the array to look at $carrier, and then a...
I wanted to know what would be a good way for storing the information required by a something like a hit counter. I was wondering if this was possible using some session-like technique, but available to everyone. I am concerned about speed/performance, and not memory usage since the data to be store is minimal.
...
In PHP using GD or imagemagick how can I uplaod a photo from a URL, I want to build a function that I can pass in a few parameters and uplaod the image, I can currentyl uplaod a big image, resize it smaller, then resize some more thumbnails off it and save all into there locations from 1 image but I would like to add the ability to get a...
I have a lot of files which are named poorly
videoofmegoingtoschool.avi
is there a library or some algorithm out there that will separate it properly ?
video of me going to school.avi
...
Hi all,
I want to create Upload Progress bar Using simple and pure PHP
Thanks in Advance
NewBie
...
Hi
In my php project i have a value containg special charectors like ",' etc ( " 5 " inches , '3.5' inches etc) . But it's not appear in a text field . How i display this
is it possible to display this value in a text box ? Does any one help me ...
...
I am working on a ecommerce based on MagentoCommerce. I use 3 environments: dev (on my local machine), staging and production (both on my dedicated server).
The problem is that when I want to switch from local to staging, I have to edit my hosts file to point the domain used by Magento to my server's IP. However, this is time consuming...
I have a program which presents a single random selection from the database each time it is run. What I would like to do is have the selections sorted by activity level and then have the selection title shown in a color which represents how active the random selection is.
For example: Item 1 is 45 days old, Item 2 is 61 days old and Ite...
The following outputs double quotes. How can I get it to output single quotes?
<?php
$xml_output = "<?xml version=\"1.0\"?>\n";
$xml_output .= "<I song='song'>";
echo $xml_output;
The output is <I song="song" />
Output should be <I song='song' />
...
In our HR system, we want to calculate the number of years the employee has served the company.
What we have is the joining date in TIMESTAMP column.
What I am doing is:
$timeNow = time(); // current time
$joinDate = strtotime($users->fields['date_of_joining']); // from database
$servicePeriod = $timeNow - $joinDate; // in seconds
$se...
Hi,
I am a inserting a content in FCKEDITOR.
EXAMPLE Content : TEST ~!@#$%^&*()_+| TEST
But i get the output like this: TEST ~!@')
what should i do to get the exact output.
i am using ajax to do this.
thanks
Fero
...
I was thinking of implementing a thumbs system, but mine would require a registration thus ruling out the possibility of people voting more than once unless they create a new account to do so. So I was wondering about Urban Dictionary's thumb system. How does it work? I would imagine that my IP would be stored in a database, so people wo...
I have a div which is being populated through curl from another html page .Now the data is populating correctly but i want to use jquery or javascript on the ids or classess of the fetched data.
I tried using livequery ,binding but of no use.
Can you please help me .
...
I want to show some images from other sites but i want my own servers url without storing at my end.
in code i write like this
<img src="http://image.com/ab.gif"/>
but on bowser source display as
<img src="http://mysite.com/ab.gif"/>
...
I'm trying to display the average rate and how many votes have been casted but I really don't know how to do it.
I need help on how to display something like this Rating. 4.83/5 (6725 vote cast) under the star rating? But I really don't know how to do this or what to add or change?
Here is the JavaScript below.
// JavaScript Documen...
The case :
<form id='frm' name ='frm' action='test.php'>
<div style='display:none'>
<input type='text' name='name' value ='' />
</div>
<input type='submit' value='Submit' />
</form>
For example , How can i submit the from given above with its inputs ?
Issue : The "name" input wont be passed !
...
Hi when I post something on my site and use quotations in it I get something like this
\"
What do I need to do to my code to fix this?
...
I am trying to use a function from SOAP, which will fetch details about a specific news item. The problem is that I don't get the expected results, just a a strange error. I am using the built-in SOAP client in PHP5.
My error is:
Fatal error: Uncaught SoapFault
exception: [Client] SOAP-ERROR:
Encoding: External reference
'ht...