Hi,
I want to display NSE/BSE quote in my PHP website. please let me know what I have to do, if I get the webservices for this then how to use it in PHP.
Please help
Hi,
I want my web server to notify me through a php page when an event occurs at a another TCP server, to which the php page has successfully connected via a socket. The event is like the TCP server want to send a message to the web server, etc. Is there any way to accomplish this and/or any references on how to do it???
Thank You!!
Hi, I've run into a problem on a server running php 5.1.6 - the code i use to detect ajax requests isn't working as the $_SERVER['HTTP_X_REQUESTED_WITH'] variable is missing from the $_SERVER array. The same code works fine on php 5.2 and in firebug i can see the headers include X-Requested-With XMLHttpRequest. Anyone know any more about this issue and how I can get round it? Thanks in advance.
The Twitter Search api returns results in ATOM/XML format which look like this:
<author>
<name>username (Friendly Name)</name>
<uri>http://twitter.com/username</uri>
</author>
In my PHP I can get the name field as a variable, so it would look like this:
$names = "username (Friendly Name)"
But I want to use PHP to extract them as seperate variables, like this:
$username = "username"
$friendlyName = "Friendly Name" (without parantheses)
TIA!
Hello,
I think this script is of big interest to any noob around here :) including me :)
What I want to create is a little code that I can use in any file and will generate a breadcrumb like this:
If the file is called "website.com/templates/index.php" the breadcrumb should show:
Website.com Templates
^^ link ^^plain text
If the file is called "website.com/templates/template_some_name.php" the breadcrumb should show:
Website.com Templates Template Some Name
^^ link ^^link ^^plain text
I am grateful for any reply, thanks!
I got this code
/* Popup for hot news */
$(document).ready(function() {
var $dialog = $('<div></div>')
.html('text to be shown')
.dialog({
autoOpen: false,
title: 'Tablica nowosci'
});
This code is in my js files included by header.php.
How to pass php output to this function ?
Inputing in .html('') above doesnt solve anything.
Please help.
Does anyone know do there have any way that I can encrypt the array in php??
for example:
$arr_value = array("1","2","3","4");
any way that I can encrypt $arr_value, also decrypt it later ini php?
Recently I switched hosting from one provider to the other and I have problems displaying Cyrillic characters. The characters which are read from the database are displayed correctly, but characters which are hardcoded in the php file aren't (they are displayed as question marks).
The files which contain the php source code are saved in utf-8 form. Help anybody?
In .NET
The Process class contains several useful properties/methods that allow developers to access process relative information.
Have you any equivalent method or class in php.
Have any equivalent method in php like c# method "Process.Start()".
I'm trying to connect to a RESTful web service, but I'm having some troubles, especially when sending data over PUT and DELETE. With cURL, PUT requires a file to send, and DELETE is just weird. I'm perfectly capable of writing a client using PHP's socket support and writing the HTTP headers myself, but I wanted to know whether you guys have ever used or seen a REST client for PHP?
I'm trying the following command in PHP 5.2.12 :
print (date('Y-m-d', strtotime('2009-12 last day')));
Regarding to the php.net manual :
date('m/d/y', strtotime('2009-03 last day')); # 03/31/09
it should display the last day of march 2009 (2009-03-31) !
Mine returns the last day of the previous month ? why ? :
2009-11-30
How do I correct the following error that is listed below. I'm using PHP & MySQL.
I get the following error.
Not Found
The requested URL /fckeditor/editor/fckeditor.html was not found on this server.
I followed the directions on http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Integration/PHP
Hey Guys,
How to decode the url in php where url is encoded with encodeURIComponent()?
I have tried the urldecode() but then also..i don't the url which i have encoded...
I have to do this in php..
What's the easiest way to merge the contents of several MP3 files into one using PHP 5.2 on Linux Debian system? I found some scripts that are supposed to do in PHP only, but they seem to be buggy. Perhaps there is a way to accomplish this task using command line programs, that I could install on my Linux Debian machine?
Is it possible to disable the use of SSI.php in SMF forums?
Or do you just have to remove the SSI.php file from the server?
(the reason I ask is I want to know how many SMF forums will have it disabled.
Hi all,
Is there any PHP script to convert XML file to DTD.
I tried a lot. I can able to find tools but can't PHP script.
Is there any?
any help will be thankful...
Fero
In my php application i have a folder in which all the photos are kept.
The images are in different sizes.So i want to select photos from the folder and applying some image functions and upload to a different folder through php code.
This is same as image uploading but the difference is that the source file is in server
That is i want to select photos from server applying some image functions and upload again on the server
Pls help me
I have coded a PHP script that takes $text and $font and creates an image, it even caches the image.
Is it possible to create a vertical gradient on the text using GD in PHP, I am trying to create the effect below!
Many thanks,
This is confusing as hell, here's the php I'm using:
<?php echo date('H:i D j, F',$j->date); ?>
This is what it gives me:
01:33 Thu 1, January
Which seems fine, until you look at the actual time that is being given ($j-date provides):
2010-06-12 21:12:23
Why is it giving me a January and what am I doing wrong?
I am having trouble making this seemingly simple MySql query work. Can anyone spot the problem?
<?php
include "config.php";
$offerid = $_POST["offerid"];
$ip = $_SERVER["REMOTE_ADDR"];
mysql_query("INSERT INTO voted (offerid,ip) VALUES (".$offerid.",".$ip.")");
?>
hi,
I am running a php based web application and within that application I am using bbclone to count visitors and site activity.
Unfortunately it doesn't work that nice as expected because bbclone counts a lot of robots and therefor my statistic is not that accurate as it should be.
So do you know any good php based web application counter?
It would be nice to have the following overviews in it:
- user agents
- timeline
Thanks a lot.
Scenario: Server is glassfish with jax-ws web services and clients is php based
What type of authentication for web services is more computable with php based clients ?
HTTP Basic Authentication
HTTPS Client Authentication
Mutual Authentication (is it supported ?)
Digest Authentication (is it supported ?)
Description :
Specifying an Authentication Mechanism
Thank you!
I am trying to write a program in PHP which I had already written in Java.
I had used the following statements to setup proxy in Java
System.setProperty("http.proxyHost",proxyhost);
System.setProperty("http.proxyPort",proxyport);
How do I do the same for PHP?
Hi,
We were given an assignment to develop a prototype for a customer community. It was suggested PHP as the programming language. (but we're not supposed to actually code it, just a prototype with documentation is required)
I'm wondering what are the best practices/ tools used in Unit testing, Integration Testing and System testing for such a php app
Thanks
Hi All mates!
This time ask you this question:
Assuming we have this img ( generated by php ) linked in clients sites
<img src="http://mysite.com/genimg.php?id=2" alt=""/>
Is Possible to get back from the client location some infos!? ( es. client url )
PS:
don't need something that open
the entire client page and search for link!
don't need something that work just if the link image is
clicked!