473,544 Members | 1,944 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Forum

PHP web programming language - Ask questions about php scripting, databases, mysql, templates, PEAR, php functions, PHP-GTK, setup and installation, object oriented programming, classes, files, security, sessions, arrays and more.
8
36,643
thread by: Lee C. Haas | last post Feb 19 '06 by: Jasen Betts
I have created the file lhcount.data with the content the number 1 in it. This file is in the same directory (public_html) as the following index.php file that contains the following code: <?php echo("count"); $fh = fopen('lhcount.data','r+'); result is:
6
36,206
thread by: Jørn Dahl-Stamnes | last post Nov 10 '05 by: Ewoud Dronkert
I got the following code: reset ($_POST); while (list($key,$val) = each($_POST)) { echo "$key => $val\n"; } But this prints out nothing. If I replace the code above with:
8
36,149
darksteel21
thread by: darksteel21 | last post Mar 27 '17 by: MerilFernando
can anyone tech me how yo pass values from php script to javscript??
11
36,055
thread by: Jakanapes | last post Jul 17 '05 by: R. Rajesh Jeba Anbiah
Hi all, I'm looking for a way to scan a block of text and replace all the double quotes (") with single quotes ('). I'm using PHP to pull text out of a mySQL table and then feed the text into a javascript function called by onClick. The problem is that the text may contain single or double quotes, which screws up the javascript. I...
0
35,997
Motoma
thread by: Motoma | last post Apr 7 '07 by: Motoma
Debugging messages are a powerful tool; however, many production systems (and test systems for that matter) have them disabled by default. If your PHP script is crashing horribly and you are not getting any runtime error messages, it is likely that this is the case for you. You can initiate PHP debugging messages for the server by changing the...
2
35,956
thread by: Ralph Freshour | last post Jul 16 '05 by: Ralph Freshour
Is there a function that will allow my web page to pause() waiting for a keypress and then continue rendering the page? I have a web page in PHP that displays some data that I need to see before it calls another ..php web page. Thanks...
7
35,894
thread by: Mindy Geac | last post Aug 30 '05 by: juglesh
Is it possible to delete special caracters from a string and multiple spaces? When the input is : "a&*bbb cc/c d!d" I want the result : "abbb ccc dd" thnx. MJ <?php
3
35,805
thread by: Thierry B. | last post Jul 17 '05 by: Andy Hassall
Hi, from SQL*Plus, i use: DESCRIBE MyTable and I get this result (example): Nom NULL ? Type ----------------------------------------- -------- ------------------------
4
35,731
thread by: Velhari | last post Sep 23 '06 by: ronverdonk
Hi all, We all know in GET method upto 2048 characters can be appended into URL. In the Same way what is the limit of sending data to server by using POST Method. Why asking this question is because suppose if i will upload 20GB means it will take time to store it in servers disk, definitely there is a loss of session during this process...
8
35,730
thread by: NotGiven | last post Jul 17 '05 by: Savut
I need to verify if the page that led the user to this page used http or httpS. for example, if the use cam to my page from: httpS://www.dm.com/sample/foo.php I want to know as opposed to coming from: http://www.dm.com/sample/foo.php I've tried looking at PORT but it doesn't seem to work properly.
3
35,691
thread by: Ernest Kim | last post Jul 16 '05 by: C G W
Is there a way to get the URL of the php script being called? For example, in my web browser I goto the URL: "http://www.foo.com/foo.php", how do I print out "http://www.foo.com/foo.php" in the foo.php script? Is it stored in a variable some where? I'd like to do this for error handling for some functions I'm writing. -Ernie
7
35,596
thread by: Phil Powell | last post Jul 16 '05 by: Gary Petersen
I have a PHP script that would read in a binary file and display it as if it were <img src>, how would you do that w/o changing the header's MIME type? The entire file does not need to be changed. Thanks Phil
3
35,398
thread by: gogoalshop | last post Jun 9 '23 by: vipulguptaseo
Hi all, I want to loop and call a function every 1000 milliseconds with wx.CallLater. I implemented this (see below), but it does not factor in the delay - it seems to execute automatically. How can I get this to wait 1000 milliseconds between function calls? This function is within a class. In my main module, I instantiate an object of...
9
35,357
thread by: Robertico | last post Jul 30 '05 by: richard
Is it possible to add a "href=" tag to an echo line. Something like this: echo "<b>$name</b>,<br>Sorry there's a problem sending your message. Please try <a href="/mail.html">again</a>"; Robertico
13
35,032
thread by: Downugo | last post Dec 21 '17 by: lgd1019
This is my first post here - yay! This is my function that I am calling (just passing test arguments): function makeDoc($name,$content){ // starting word $word = new COM("word.application") or die("Unable to instantiate Word"); echo "Loaded Word, version {$word->Version}\n"; //bring it to front $word->Visible = 1;
3
34,877
thread by: laredotornado | last post Feb 13 '06 by: Marcin Dobrucki
Hi, Wondered if there was a good one-liner for what I want to do in PHP 4. I have an array, with an arbitrary number of elements. I'd like to know if all the elements in the array are empty. If at least one element is non-empty, then the entire condition is false. $my_arr = array(); $my_arr = ""; $my_arr = "";
10
34,866
vikas1111
thread by: vikas1111 | last post May 29 '08 by: vikas1111
Hi All Can anyone give me an idea to solve the problem.. My Problem is ,, I want to Retrieving data from database and displaying in textbox... If anybody have link of some good tutorial on this pls let me know..Or if anybody can explain I would be very thankful...
5
34,861
thread by: Trevor | last post Dec 28 '05 by: Trevor
How can I get the URI for a page? For example, I want $domain = "http://www.domain.com" in the page http://www.domain.com/page.php. Thanks, Trevor
5
34,688
thread by: Magnus Warker | last post Jul 16 '05 by: matty
Hi, when I try to pass some parameters in an URL, I always get an URL where the ampersand is represented as '&amp;'. I tried: $url = "wsp.php?mod=$mod&sec=$sym"; $url = "wsp.php?mod=$mod" . '&' . "sec=$sym";
10
34,685
thread by: James Campbell | last post Jul 17 '05 by: Shawn Wilson
ok, I am totally new to php and come from an asp background. I basically want to do an If > then > else > end if statement: my page is: <?php require_once('Connections/carresa.php'); ?> <?php $DateTime = date("Y/n/j");
9
34,659
thread by: Bruce | last post Sep 27 '08 by: Jeff
I'm outputting form content into a csv file. If a comma is used in one of the fields, however, it will interpret to go to next column. Is there a workaround? Thanks. $fp = fopen('my.csv','a'); $content = "$var1,$var2,$var3... fwrite($fp,$content);
6
34,646
thread by: DJ Craig | last post Jul 17 '05 by: DJ Craig
I keep getting this error: Fatal error: Unsupported operand types in /usr/local/etc/httpd/htdocs/djtricities/kat/bpmchart/chart.php on line 58 I've looked for hours for some type of error, and tried lots of different things, but I can't get it to work. I did a google search for "unsupported operand types" and for most of the people...
5
34,280
thread by: bob | last post Jul 17 '05 by: Johan Holst Nielsen
I use the following code to redirect the browser on an error, header("location:error.php"); exit; Is it possible to pass POST variables on as if a form was submitted, using header()? Thanks for your help, Ben.
4
34,254
thread by: Matthew Robinson | last post Jul 17 '05 by: adamt
is there a way to check if a file exists using php? i want to check if a picture exists, and if not, use a picture saying that the picture couldn't be found. TIA
2
34,166
thread by: michael nieuwenhuizen | last post Jul 17 '05 by: Dan Tripp
<newbie alert> hello, just started with PHP last week, and i tried to create a pdf, but i get the error message: Fatal error: Call to undefined function: pdf_new() the php files starts with: <?php

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.