Hello,
I am using PHP to parse the numeric portion of the HTTP status code response. Given a standard "HTTP/1.1 200 OK" response, I'd use:
$data = explode(' ', "HTTP/1.1 200 OK");
$code = $data[1];
I'm not an expert on HTTP. Would I ever encounter a response where the code is not at the position of $data[1] as in the above example?...
hello everyone, my first time posting here.
My question is as follow:
I need to build a horizontal scroller like the one in Itunes or like the one that the macs uses in the finder window.
http://www.flashcomponents.net/upload/samples/4250/index.html?full=true
The client, however wants this to be fed from an xml file and to display html...
I'm trying to set authentication headers and call a .Net 2.0 web service method, but it appears that the .Net web service is having an issue interpreting the Authentication Headers. Has anyone come across this issue?
I'm using the PHP SoapClient class.
...
I am new to the Zend Framework. I read the Zend Framework document. Here I saw to work Zend Framework must include the path in my php.ini, I believe that this is done because in my php info I saw include path is C:\www\zend_frame\library
Also in document it says that to create a project I must run:
C:\> zf.bat create project quickstar...
Want to send in State, City, County variables from Flash to PHP page:
function retrieve() {
var scriptRequest:URLRequest = new URLRequest("http://localhost:8080/GSM/KJVold.php");
var scriptLoader:URLLoader = new URLLoader();
var scriptVars:URLVariables = new URLVariables();
scriptLoader.addEventListener(Event.COMPLETE, handleLoad...
I'm new to PHP and MySQL. For my project I want to make a site for lyrics.
How to design the database and the relationships?
Here is what I have so far:
Artist
Artist_id
Artist_name
Artist_bio
Artist_thumb
Albums
Album_id
Artist_id
Genre_id
Album_title
Release_year
Genre
genre_id
genre_name
Tracks
track_id
track_title
alb...
I have a dropdown box which lists a set of logos,like flower,butterfly etc.
<p class="title1">Logo</p>
<select name="logoMenu" class="select" size="7">
<?php foreach($logos as $logo):?>
<option id="<?php echo $logo['Subproperty']['id'];?>" value="<?php echo $logo['Subproperty']['values'];?>"><?php echo $logo['Subproperty']['values...
Please help me in coding for controller and support for URL Routing for PHP MVC framework.
...
Can anyone suggest a creative database structure + fetching algorithm for a threaded comments system, that would output x amount of threads per page (with unlimited replies for each)?
I can run a query to get the threads, and in each instance of a loop, run another query to echo out the replies.... but that's a bad idea.
...
Hi,
I'm currently using vs.php on a development client. (vs.php is a php dev IDE that uses the visual studio shell).
The problem is connecting to our remote sql 2005 database. The connectionattempt fails in less than 1 seconds. I can connect to the database with telnet without problem from the same client.
The database is set to allow...
HI All,
I want to create a web site in MVC architecture, with out using any frameworks.
What would be the Files/Folder structure (Module/Views/Models).
EDIT: I know the Zend, CakePHP. but my Question is how can we structure in Simple PHP.
I dont want to use any of the frameworks, because i need the maximum performance/speed.
I heard t...
Hi there,
I want to convert bytes to GB.
value= 8587321344
So it should be 8587321344/1024/1024/1024
But whenever I go to divide, the value is wrong...
If I cast it into integer, it will be limited to 2147....
Can't find any type cast to long data type...
Funny enough...
How to perform this calculation to show correct output...
Th...
Background
We are currently working on a strategy web-browser game based on php, html and javascript.
The plan is to have 10,000+ users playing within the same world.
Currently we are using memcached to:
store json static data, language files
store changeable serialized php class objects
(such as armies, inventorys,
unit-containers,...
I have a program that I use on several sites. It uses require('config.php'); to set any site dependant variables like mysql connect info, paths, etc.
Let's say that I use one of these site-dependant variables in a function, like $backup_path.
This variable was initially declared in config.php, and does not appear in the main program fi...
Hi,
just a short question, is it save to create an back link with :
$backLink = htmlentities($_SERVER['HTTP_REFERER']);
or is there an better solution ?
...
Hi, guys!
I'm trying to create an online dictionary (some rare languages) and need you suggestions.
My php, mysql and javascript knowledge though is far from excellent, but is enough to understand the code and make some changes to it. I've done some projects with Drupal before and now thinking about trying a php framework for this proje...
Hay, how would i go about 'zero filling' an integer?
ie
1 becomes 0001
40 becomes 0040
174 becomes 0174
Thanks
...
I am having trouble trying to pass an array of data to a Nusoap client request to a WSDL server. The spec is a mixture of attribute values and simpleContent values.
The WDSL spec looks something like this:
<s:complexType name="RequestMessage">
<s:sequence>
<s:element minOccurs="0" name="Address" type="s0:MessageAddress"/>
<s:...
Hiya All,
I've always used the method of checking a table to see if a row exists, and then update it with my new data or insert it if it doesn't exist, but it's got me thinking what would be wrong with simply doing an update, if no rows are effected, then do an insert statment, that could potentially speed up my script and put less load...
I'm in the process of starting a new web site that is something like stackoverflow but a little bit more different along with making the members profiles highly more customizable I was thinking of building it from scratch using PHP, but was thinking of using CakePHP, but then I thought WordPress sounded better but I remember working with...