473,788 Members | 2,861 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.
1
1,752
thread by: VB | last post Nov 5 '05 by: Malcolm Dew-Jones
Dear friends, I have a big problem. With an usersonline script I need to extract in php the output of a cgi using buffering output in this way: <?php ob_start(); include('/home/mysite/public_html/cgi-bin/usersonline/online.cgi'); $contents = ob_get_contents(); ob_end_clean();
6
2,840
thread by: cuba1 | last post Nov 5 '05 by: Sergej Andrejev
I have a file with thousands of these lines: $GPRMC,131334.00,A,4538.6259,N,01021.4755,E,0.43,0.0,021105,1.3,E,A*0D $GPGGA,131334.00,4438.6259,N,01021.4755,E,1,00,7.8,29.8,M,40.2,M,,*5C $GPRMC,131343.00,A,4538.6270,N,01021.4789,E,2.87,0.0,021105,1.3,E,A*0F I must capture ONE line EVERY 10 LINES but only a block of 200 lines with the first...
1
2,156
thread by: Mauro D. | last post Nov 4 '05 by: Andy Hassall
Hi guys, i'm trying to replace a picture inside an RTF file. I have found that this is the format the picture is described inside RTF: {\*\shppict{\pict\picscalex80\picscaley80\piccropl0\piccropr0\piccropt0\piccropb0\picw800\pich600\picwgoal12000\pichgoal9000\jpeglib ....some binary data...}} RTF file is about 3,9MB and this expression...
3
15,175
thread by: Musashi | last post Nov 4 '05 by: otrWalter
I'm trying to access a Cloudscape/Derby database via PHP and am using the IBM DB2 Lite client which I have installed. As soon as I call db2_connect(...) in the php code, I get a db2_connect Undefined function error message, so it is not finding this function in the IBM DB2 stuff. I've verified that the Apache Server, PHP and DB2 and the...
13
4,572
thread by: lkrubner | last post Nov 4 '05 by: Andy Hassall
Suppose I need to get an image as a stream of bytes. I want to store this in a variable and then embed it in some Postscript code. In my Postscript code, the image might look like this: {< ffffffffffffffffffffffffffffffffffffffffffffffffffff ff000000000000000000000000000000000000ffffffffffffff...
4
2,220
thread by: Ben | last post Nov 4 '05 by: Ben
Hello, I'm a very, very novice C programmer and I have written an extension for php that does its purpose well, or at least it used to until they asked for that one extra feature. It's a very little thing, very easy, but damn it all, it has a mysterious bug. I tracked it down to one specific line where the weirdness occurs, but I can't...
1
1,291
thread by: Neven Luetic | last post Nov 4 '05 by: black francis
Hello, I have an application, that does a redirect inside a frame, after setting a sessionvariable, like this: content of http://appserver.de/login1/test1.php: <?php session_start();
0
1,886
thread by: theninju | last post Nov 4 '05 by: theninju
I'm looking to convert my WBB Lite to another forum, but there doesn't seem to be any converters out there, any ideas?
6
2,763
thread by: Sergio | last post Nov 4 '05 by: Sergio
for my web site I am looking for a simple PHP plain text menu system, the menu would have at least four levels and about 200 links, at starting only the main levels should appear, for example : MATHEMATICS HISTORY GEOMETRY once you click on one of these a submenu would appear
16
2,198
thread by: Jace Benson | last post Nov 4 '05 by: David Haynes
Ok I have read alot of things on zend.com, php.net and other sites went to the wikibooks to try to understand how to use a class. I have this project I want to do that I am sure would work great with a class. I just don't grasp the whole concept, and how to do it. I want to make a Collectable Card Game Draft Engine...(if any of you play...
2
1,556
thread by: VooDoo | last post Nov 4 '05 by: VooDoo
Hi, I have a table with a field that contains a file path(www/docs/.../.../...) Some of the path contain this characters 'é' or 'è'. How can i do an update on this table to replace only the characters 'é' or 'è' by a 'e'. Thanks for your ideas VooDoo
3
12,633
thread by: Big Time | last post Nov 3 '05 by: John Dunlop
I have a search form used to query a MySQL database. I want the search results to appear on the same page as the search form, below the search box after the have entered their search criteria. I can do this using the GET method, however this displayrs all the parameters in the URL. I understand you can hide the parameters by using the POST...
3
1,376
thread by: Paul | last post Nov 3 '05 by: John Dunlop
Hi, Does anyone know if it's possible to use regular expressions to grab all content between two words. For example.... ------ This is some example text to illustrate my problem and here's another my for you. ------
3
408
thread by: Yaz | last post Nov 3 '05 by: Yaz
I'm a newbie, and struggling a bit ! I've spent about 3 days trying to solve a simple problem, and I've failed. I have a screen, with two buttons. When the user hits either button, a php function (or procedure) should get called, and the php code needs to programatically work out which button is pressed. Sounds simple. But I just don't know...
3
1,416
thread by: MBS | last post Nov 3 '05 by: JDS
I checked the official PHP documentation and it makes no mention of "@ini_set" function with the "@" symbol in front of it. The code I'm looking at does have the "at" symbol in front of "ini_set". So what's the "@" for? Thanks.
7
3,427
thread by: Angelos | last post Nov 3 '05 by: Peter Fox
Hello... I wrote a simple subscribe script that when a user completes the subscription form he gets added in the database and then he receives an e-mail where he/she clicks on the follow link : <a href=www.mysite.com?confirm&subscribers_id=mysql_insert_id($rs_subscriber_id)>Confirm</a> and gets added in the newsletter subscribers.
2
7,639
thread by: Marcus | last post Nov 3 '05 by: Justin Koivisto
Hello, My php.ini file currently has magic quotes set to On, but I have read that it is better to code with it off. Currently with magic quotes on, I only use stripslashes() to properly format strings that are displayed on the screen. I know that now with magic quotes off, I will have to manually handle escaping special characters with...
2
1,264
thread by: Steven Sinfield | last post Nov 3 '05 by: Berimor
Hi There, I firstly wish to thank those who have helped me:) I have one issue that I sort of am lost in the dark, I have searched google without any luch, I am passing the following through to a html link result.php?1001 How can I get the query to recognise that number as the WHERE clause
1
367
thread by: willl69 | last post Nov 3 '05 by: Ewoud Dronkert
Here is the code i have to read stings that are set out as such - {STRING} $pattern = '/{(\w+)}/'; $replace = '$\1'; $template = preg_replace($pattern, $replace, $template); This outputs $STRING Anybody know how i can get the $STRING to $string within the preg_replace. I have tried:
3
2,501
thread by: MBS | last post Nov 3 '05 by: |-|erc
As far as I know PHP code is always a script which is interpreted by the PHP interpreter, compiled to machine code, then executed by the CPU. Much like Java, one could say. (I am not talking about the source code to PHP itself; rather, the code that one using the PHP language would write.) However, since the interpreter has to compile the...
2
1,536
thread by: Raj | last post Nov 3 '05 by: Berimor
Hi, I'm using the following php script to send an email. mail($to, $subject, $message, $from) I have a question though. How do I construct $message to include a web-link so that the reader of the email can open the email and click the link in the email to be forwarded to a linked website.
0
1,172
thread by: Steve Orvell | last post Nov 3 '05 by: Steve Orvell
TurboAjax Group is proud to release the first public beta version of TurboDbAdmin (http://www.turboajax.com/turbodbadmin.html). TurboDbAdmin is a single-page AJAX solution for exploring and editing databases from a browser. Edit data just like you would in a desktop application, without submit buttons or page refreshes. This release...
2
3,613
thread by: toedipper | last post Nov 2 '05 by: Peter van Schie
Hello, PHP and mysql I have the following select statement whch gives me a count for downloads for previous day. SELECT COUNT(swid) FROM
7
3,928
thread by: John Moore | last post Nov 2 '05 by: Justin Koivisto
Hi I posted three days ago about a function I wrote which kept refusing to run a mysql_query. Well I did away with the function, and hard coded the variables into the query itself. Here's what I have now: mysql_query("UPDATE about SET category_id = 58 WHERE about_id = 5") or die('error: ' . mysql_error());
7
1,782
thread by: MBS | last post Nov 2 '05 by: Chung Leong
Greetings. I'm still pretty new to PHP and I have a question. I know that variables are preceeded by a "$" (dollar sign). Typically, a variable has one value, unless it is an array. Then it is essentially a pointer to numerous values sequential in memory. The code I'm looking at now is using the same variable name, but assigning a...

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.