|
can you post your form code?
|
|
|
|
|
my criteria is an user will paste the URL (an web page which got video) (eg: http://www.youtube.com/watch?v=hTgnDLWeeaM&feature=topvideos[^]) to a textbox and click on submit button, it will redirect to the other page to show the movie.
Normally when i want to embedd a video to my own webpage, i will just copy the embedded code and just paste it to my web page.
But I wonder, what are those steps to SEARCH and GET the embedded code by just submit an URL but not "embedded code" itself.
Or am I got an blind spot here, it is not necessary to get the embedded code in order to embed a video?
How am i going to embed video to my own page by an URL?
|
|
|
|
|
I wanted to implement payment gateway in which a user can accept all credit card and debiot card details for payment.
|
|
|
|
|
And you want us to wish you luck????
Ok here goes, good luck with it.
But seriously, what do you want to know. We need some information as to what you are getting stuck with. And keep in mind that you will have to partner up with a payment provider to be able to charge using credit card or debit card (like PayPal, GlobalCollect, Bibit, etc...)
Once you are approved by one of them I guess you can start implementing their API to process payments.
|
|
|
|
|
I want to convert php script to .exe have you any idea.Like simple script hello brother
<?php
echo "Hello Brother \r\n";
sleep(10);
?>
now convert it to exe
|
|
|
|
|
I think facebook has a php to exe coverter called Hip-Hop that is free to use. try a google search. I have read a few articles and it is supppose to have a large impact on the execution speed.
-- Chris J
|
|
|
|
|
I think you cant do this with php
you can use another language
|
|
|
|
|
|
|
Is there a way to send FILE post data through PHP code.
I found a code which send common POST data:
fputs($fp, "POST $path HTTP/1.1\r\n");
fputs($fp, "Host: $host\r\n");
fputs($fp, "Referer: $referer\r\n");
fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n");
fputs($fp, "Content-length: ". strlen($data) ."\r\n");
fputs($fp, "Connection: close\r\n\r\n");
fputs($fp, $data);
How do I send $_FILES data through POST. Is that posible?
|
|
|
|
|
they are referenced in a different variable...$_FILES.
But you need to have an input element of the type files in your post form first. So someething like
<form action='' method='post' enctype='application/x-www-form-urlencoded'>
Name: <input type='text' name='user'>
Img: <input type='file' name='pict'>
<input type='submit' name='action' value='Upload'>
</form>
You would access the form elements with...
$_POST['action'] for the submit button
$_POST['user'] for the user field
$_FILES['pict'] for the pict field. Keep in mind this is an array and has a number addition values. You can read more about that here http://www.php.net/manual/en/features.file-upload.php[^]
|
|
|
|
|
|
I've tried putting
header('Location: http://www.google.com/');
at the end of one of my scripts, but it won't redirect. If It's just
< ?php
header('Location: http://www.google.com/');
?>
it works fine. I need to be able to run some stuff before it redirects the page.
|
|
|
|
|
In the PHP documentation[^] it actually quotes:
php.net wrote: Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP.
Two solutions:
- Have it (the header) at the top of the page before you output anything to the browser.
- Use Output Buffering[^] to hold the output before it is sent to the browser.
If at first you don't succeed, you're not Chuck Norris.
|
|
|
|
|
One other option is to echo a document.write to add a javascript redirect..its a bit of a hack, but works....provided someone does not turn off js in their browser.
|
|
|
|
|
You can run stuffs before that but make sure you dont echo anything else before giving this redirect. For e.g. validation of usernames, or anything which should be done before any HTML tags or echo is done..
- Jay.
|
|
|
|
|
Hello !
I want to hire a coder for my site. I am making a site of family trees for everyone. For that I need a coder. Anyone interested in please leave a message.
Thank you!
|
|
|
|
|
Don't give up do you?
Re-read what you have previously been told in other threads in this forum and the Collaboration forum. And stop asking the same question as the answer will not change.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
I know what I got ; no one will make it for you better to hire.
RIGHT ?
And I am paying for that not getting free .....
modified on Sunday, November 7, 2010 6:05 PM
|
|
|
|
|
Try Freelancer websites please.
The best I know is vworker.com. You will surely find many coders looking for such opportunities. Its not that we dont welcome being paid, but just this website is not meant for that.
Thanks.
- Jay.
|
|
|
|
|
what's your budget mate ?
|
|
|
|
|
I'm trying to create a php file that always returns a json as response. The problem is, it looks like it's returning a valid JSON, but jquery.ajax always says "invalid json." I copied and pasted the response and stuck it in jsonlint.com and it says it's valid json.
Can anyone point out what I'm doing wrong here? Why can't jquery (and other json parser) parse this even it's a valid json?
header('Content-type: application/json');
include("database.php");
require_once "../lib/JSON.php";
$json = new Services_JSON();
$method = strtolower($_SERVER['REQUEST_METHOD']);
$value = array();
$DB = new DBConnect();
$DB->NewConnection("localhost", "db_name", "db_role", "db_pw" );
if ($method == "get"){
$value = getEmployees();
}
else if ($method == "post"){
}
else if ($method == "put"){
}
else {
echo "Error - unknown http request method";
}
echo $_GET['callback'] . '(' . $json->encode($value) . ');';
|
|
|
|
|
It seems that everything is fine. Probably, the code segment is going on the last else statement, and so, it prints an invalid Json line there.
Try debugging that particular location, and you probably would be able to find it.
|
|
|
|
|
what is the response?
what does firebug say?
|
|
|
|
|
Hi all,
Is there any script for converting a PDF file to HTML in php ?
Thanks in advance.
|
|
|
|