|
You could play around the host area on your site. I know mine displays "comcast.net" in it with some other things before it (IP address, location, etc.). You could do some figuring that way.
modified on Sunday, September 4, 2011 1:41 AM
|
|
|
|
|
|
Hi all
Iam A Php Developer I Wish To Develop a website for live video streaming and video uploading and downloading just like www.freeonsmash.com[^]
I Want to know which kind of server i purchase what are the server requirements
Please Help me to know this
Thank you
Arunkumar.T
Life is too short to be spent in nursing animosity or registering wrongs.
|
|
|
|
|
A linux server would be best. Install ffmpeg on the box and have a cron job run every few minutes to convert any video uploads to flv format for displaying.
As for a player, I would recommend Flowplayer (http://flowplayer.org[^]) It is very easy to operate and a commercial license isn't all that expensive.
|
|
|
|
|
|
Use date-default-timezone-set()[^] early in your PHP. That will set PHP time correctly. I don't know how you would set the SQL server time - maybe it has a similar function.
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
|
Thanks. I was pretty sure that it should exist, but didn't know the details (and, to be honest, didn't have the energy to google it). I'm familiar with the PHP one because I work with Apache servers running on 3 different timezones that should all appear to be local.
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
You can use php timestamp
|
|
|
|
|
Hi,
You can set the default time zone by using
date_default_timezone_set()
or by
string date ( string $format [, int $timestamp = time() ] )
for more details please see
http://php.net/manual/en/function.date.php[^]
Thanks & Regards
Arya1685
"You are not only responsible for what you say, but also for what you do not say"
|
|
|
|
|
Hello!
I am using Mystique 3.0.7 theme. I just want to ask that how could I make Parent page link not clickable that whenever I place a mouse over that it just show me the sub pages (child pages) under it.
Parent Page: MU|T|MED|A
site : http://www.bani-hafiz.com/mutmeda/[^]
Thank you!
|
|
|
|
|
Hello frndz,
I am trying to connect with web service using SOAP via CURL. I successfully connect with the web service but i am getting following error.
Does any one knows about such kind of error?
Length Required
HTTP Error 411. The request must be chunked or have a content length.
|
|
|
|
|
Basically, the server is telling you that it cannot determine where your input is going to end. You must either
1. use chunked encoding (which has delimiters so the server can parse the incoming stream and detect the logical end of this message) or
2. send a content-length header up front so it can count bytes to detect the end of the message.
It's in the nature of TCP/IP that the application must have a way of delimiting messages - the protocols don't.
Peter
ps At Code Project, we are not 'frndz', whatever else we might be.
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
Hi peter,
Thnx for quick response.
I checked my code, I am already passing the Content-length
following is the code.
$header = array(
"POST /XXXX.asmx HTTP/1.1\r\n",
"Host: demo.XXXX.in\r\n",
"Content-Type: text/xml; charset=utf-8\r\n",
"Content-length: ".strlen($soap_request)."\r\n",
"SOAPAction: \"http://tempuri.org/VerifyLogin\"\r\n",
);
But still i am getting the same error.
i found that i am gettin above error in Chrome and Mozilla but in IE6 am getting something like
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
Invalid at the top level of the document. Error processing resource
Do You have any idea about these?..
Thanx in advance.
|
|
|
|
|
I don't understand what browsers have to do with it, if you're running PHP code to access SOAP.
I can only come back with my "standard" reply to all "What's happening over a network?" questions. Get Wireshark on the job. Record successful (if any) and unsuccessful exchanges and compare the traces.
Good hunting!
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
I was told this would work, but it is not. I do not know the value in a particular column, but I want to decrease it by a number.
In other words, Dude buys 2 widgets, the inventory of said widget gets reduced by two.
$u_sql='UPDATE sale_inventory SET invqty = invqty - '.$boughtqty.' WHERE invProdID='.$row['ProdID'];
This yields an SQL Statement like:
UPDATE sale_inventory SET invqty = invqty - 1 WHERE invProdID=1234567
I cannot tell why this is not working.
Thanks in advance.
*****************
"We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW
|
|
|
|
|
The SQL looks fine. Could you show the PHP code that executes the SQL?
|
|
|
|
|
do you have an error message, can you use something like..
$rst = mysql_query($u_sql) or die(mysql_error());
this will print the message coming from the mysql db.
Chris J
www.redash.org
|
|
|
|
|
Thanks for the replys...
I have error checking
$u_result = @mysql_query($u_sql, $link_b);
if (!$u_result) { exit('<p>Error reducing inventory: ' . mysql_error() . '</p>');}
There is no error thrown, just that value is not reduced.
Like an idiot, when scrubbing my data, I probably should have left it... My invProdID has - marks in them, so I needed quotes around them.
Total newb error.
Thank you both anyway. You assurances that it seemed right made me think down the typo path.
*****************
"We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW
|
|
|
|
|
Actually I want to create a dynamic page using PHP & MYSQL like PMWIKI....iF ANYONE HAVE ANY SUGGESION,PLEASE provide me the details. One more thing I dont want to use PMWIKI, I want to create my own dynamic page.
|
|
|
|
|
I would suggest reading the source code of that or a similar project to get an idea of the scope of this project, how to lay it out and ball park the time you will need to devote to it.
Chris J
www.redash.org
|
|
|
|
|
My first suggestion would be that you DO NOT YELL! For many people there will be a perceived inference that they are not intelligent enough to identify important parts of the question..
My second suggestion would be to do as one always does when programming, and break the problem up into a number of smaller steps/chunks. In essence, the concept is really quite simple:
1) Implement access control system - i.e password=correct, pass=true. password=incorrect, pass=false
2) Devise a way of storing page data in a database
3) Implement a way of adding user-entered text into the database tables used in step 2
None of these 3 steps necessarily need to be complicated in order to provide basic functionality.
I'd expect to be able to bash out some code that would allow me to dynamically add page content if my password was correct in a few hours.
The polishing, refining and adding of other expected features are what I expect to take the absolute bulk of the time.
It's only 1/2 a Mb, why not download the code and take a look at it? You do get all the source code after all.
I've gleaned dozens of tips from the old game engines wolf3d, doom, quake, etc. Yet I've not copy/pasted a single line of code from any of them. Humans 'progress' because we are able to build-upon and extend the work of others..
|
|
|
|
|
Is it possible to have voice recording feature in a php based website.
|
|
|
|
|
|
Is there any free solution for voice recording in php?
|
|
|
|