| |
thread by: Bint |
last post Dec 10 '07 by: Bint
Hello,
I am trying to decompress some data in a file, from PHP. It's data that
has been zlib-compressed on a handheld device and sent wirelessly to the PHP
server.
I can open the file and read some regular data from it. When I get to the
position where my zlib compressed information starts, I make these calls:
$zlib_filter =...
|
thread by: barrypalmer |
last post Dec 10 '07 by: barrypalmer
Hi
I'm running with PHP5 on WAMP & have come across a problem. I use the following php script to respond to an <image src="this.php?source=xxx">
// get $source & $res
$command = "convert -geometry $res $source gim29.gif";
exec($command);
if (file_exists("gim29.gif")) {
if($img = @file_get_contents("gim29.gif")) {
...
|
thread by: farukcse |
last post Dec 10 '07 by: code green
Dear Sir,
Can anyone tell me how to export data from MySQL database to a csv file using php code i.e without using phpmyadmin?
Regards,
Fauk Chowdhury.
|
thread by: smartic |
last post Dec 10 '07 by: smartic
i'm having problem with session_start() to force the browser to download file with this function:
session_start();
function force_download($file){
if ((isset($file))&&(file_exists($file))) {
header("Content-type: application/force-download");
header('Content-Disposition: inline; filename="' . $file . '"');
...
|
thread by: adam.timberlake |
last post Dec 10 '07 by: Jerry Stuckle
I was following an article on a website earlier, and although it
outputted the pie chart for me perfectly, I want to make it anti-
aliased somehow. I have linked to the specific article below just in
case you wish to replicate for testing the anti-aliasing. I found the
GD function, imageantialias() but I've tried setting it to true at the
top...
|
thread by: lazukars |
last post Dec 10 '07 by: clai83
I have done a good amount of research on prepared statements in php. The problem is that I have found various examples on how to select and insert information into a Mysql database. I want to make sure that I am doing this correctly.
Could anyone please show post a correct example of how to SELECT data from mysql via prepared statements via...
|
thread by: pdhb_1 |
last post Dec 10 '07 by: Jerry Stuckle
I'm trying to run Apache2.2.6 with php. However, I keep getting a long
list of error messages in the log file indicating that includes are
failing. For example,
"PHP Warning: PHP Startup: Unable to load dynamic library './ext/
php_sybase_ct.dll' - The specified module could not be found.\r\n in
Unknown on line 0"
I have changed the...
|
| |
thread by: Grouchy.Oldgit |
last post Dec 10 '07 by: AnrDaemon
Hi
any recommendations for a good lightweight php bbs. I don't need the
power/extensibiltiy of PHP-BB, just the basics.
|
thread by: John |
last post Dec 10 '07 by: AnrDaemon
Hi,
I'm trying to connect to a SQLite3 database for days now but I'm stuck. PHP
returns an error that I made a "call to undefined function sqlite_open(). In
the php.ini the extension=php_pdo.dll and extension=php_sqlite.dll are set.
What am I doing wrong???
Thank you in advance,
John
|
thread by: rathour |
last post Dec 10 '07 by: nitinpatel1117
<?php
session_start();
require_once('db.php');
include('functions.php');
$user = get_username ( $_SESSION );
//if ( $_SESSION ):
checkLogin ( '1 2' );
?>
|
thread by: gareth.slaven |
last post Dec 10 '07 by: gareth.slaven
Hi there ...
We are currently looking for a few freelance/companies who specialist
in PHP development to assist us with various internal and external
projects within South Africa. You need will be able to dedicate a
minimum of 40 hours per month, and will be required to quote for
projects upfront and work on a per project bases.Your skill...
|
thread by: pradeepjain |
last post Dec 10 '07 by: ak1dnar
script>
// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully
// =======================================
// set the following variables
// =======================================
|
thread by: ParthaPhp |
last post Dec 10 '07 by: MarkoKlacar
how can I load image in a foder and load its name in data base
|
thread by: pradeepjain |
last post Dec 10 '07 by: pradeepjain
<?php
mysql_connect("localhost", "XXX", "xxx") OR DIE (mysql_error());
mysql_select_db ("XXX") OR DIE ("Unable to select db".mysql_error());
// our sql query
$str_sql1="select Tnumber from Tenders where Tnumber = '".$_POST."'";
$res_id1=mysql_query($str_sql1);
$rec_row=mysql_fetch_row($res_id1);
...
|
thread by: adam.timberlake |
last post Dec 10 '07 by: Jerry Stuckle
Me again! I am trying to create a currency converter function for my
eCommerce that still pet treats. I am a little short on money recently
and so cannot afford a programmer. Can somebody tell me why my script
tells me that I have a syntax error on the "CONST" line. I am trying
to follow the article below.
Article:...
|
| |
thread by: Acrobatic |
last post Dec 10 '07 by: Jerry Stuckle
Hello,
I know this will be an easy fix--but as of now I'm banging my head
against the wall. I need a fresh perspective from the group to see
what my problem is:
This is a simple accounting application, and the code below is
checking to see if a user's withdraw request is greater than their
available balance:
|
thread by: ajauctionpro |
last post Dec 10 '07 by: Jerry Stuckle
AJ Forum is a professional, powerful, scalable and fully customizable
forums package. It has unlimited categories and forums, read only
forums, Smilies, very friendly bulletin board program and most
important easy set-up.
Sources: http://www.ajsquare.com/demo/forum_demo/index.php
|
thread by: ErhanBaris |
last post Dec 9 '07 by: ErhanBaris
Hello,
i have got every simple and important problem.
i am getting web site contents.
but than it is giving error.
thing like this. you get maybe 3000 page and you stop server, 1 hour
later you try again doing same things but this time you get only 1
page or 2 page.
is it hp cache problem or remote server is banning ip?
|
thread by: _q_u_a_m_i_s's |
last post Dec 9 '07 by: allain
Hy,
i have a problem with PHP 5.1.6
I have a script containing something like this:
$f=fsockopen("www.site01.com",80,$errNo,$errStr);
var_dump($f);
When accessing this from apache, i get this error:
php_network_getaddresses: getaddrinfo failed.
When running the same scipt from the CLI (php ./dns.php), i get no
|
thread by: txguy |
last post Dec 9 '07 by: clai83
as a novice I can't get this one figured out and would appreciate any advice or help you could offer.
am trying to pass a php derived total to a html form that passes the info to paypal. our form variable with the php looks like this ...
<input type="hidden" name="amount" value="<?php if(isset($_GET)) echo ($_GET + 25.99 + rTXSTax) ; ?>">
|
thread by: kidkurious |
last post Dec 9 '07 by: pbmods
I have a script that will read web file, extract the hyperlinks and sort them in alphabetical order.
It works fine, but not the way I want.
I want to change the script so that it will extract the text link as well.
//sortlinks.php
<?php
$matches= array();
|
thread by: ktsirig |
last post Dec 9 '07 by: pbmods
Hi all!
I am confused as to how an old-good UNIX command, like
cat text.txt > new_tex.txt
can be used in PHP.
I tried
system (" cat text.txt > new_text.txt");
but it didn't work, the file new_text.txt was left blank.
|
thread by: ktsirig |
last post Dec 9 '07 by: pbmods
Hi all!
I have a question: I am constructing a form where the user can upload a file.
I need however to verify that the file uploaded is a TEXT file.
Is $_FILE what I need? I am asking this because no matter if I upload a .txt or a .gif file, PHP says they are both $_FILE='text' and so, they are both uploaded on the server, whereas there...
|
| |
thread by: ktsirig |
last post Dec 9 '07 by: pbmods
Hi all,
I need to execute a command-line program through PHP.
I have a form which includes a textarea, where the user writes his data.
These data will be used as input for the command-line program.
Will I go something like:
$data = $_GET;
Which function shall I use? System, exec, shell_exec, passthru?
I can't choose which one is the...
|
thread by: servo |
last post Dec 9 '07 by: pbmods
I am using the following code. Why it does not insert record in the MySQL Table through php script:
<?php
$dbhost='localhost';
$dbuser='root';
$dbpass='newpass';
$mysqldb='mysql';
if(isset($_POST)){
|