473,800 Members | 2,623 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.
2
1,578
thread by: mostafijur | last post Dec 25 '07 by: gasfusion
Hello I need to convert database attributes into Records using PHP. For example My database attributes are like : C like structure: struct Info {
4
4,416
thread by: needhelp08 | last post Dec 25 '07 by: gasfusion
I am getting the error Parse error: syntax error, unexpected T_VARIABLE on line 4 but I can't seem to find what is wrong. Could someone please help. <?php $conn = @mysql_connect("localhost", "root", "password ") $rs1 = @mysql_create_db( $_REQUEST ); $rs2 = @mysql_list_dbs( $conn ); for( $row =0; $row < mysql_num_rows( $rs2 ); $row++ )...
5
1,528
thread by: Anthony2oo5 | last post Dec 24 '07 by: pbmods
Hello people, just a quick question I have here. My array looks like this: Array ( => Array ( => 15 => example.com => examplecom => NshKsi23
1
1,646
thread by: tamimmakki | last post Dec 24 '07 by: realin
hi guys, I want to display time format 22:00 instead of 00:22:00 as stored in mysql. I am using mysql and php. data type in php is time not timestamp. thnx in advance for help
1
976
thread by: ChuckN | last post Dec 24 '07 by: pbmods
I am trying to add a page to our website that allows the user to fill in a few data entry fields and save the data to our server using a security code generator. The site is primarily HTML on a Windows server 2003. The data entry page is PHP. Everything is working great accept when you enter the security code, you always get the message...
2
2,127
thread by: sbettadpur | last post Dec 24 '07 by: nathj
Hi everybody, Iam facing problem with redirecting http: connection to https: Here iam Running my scripts on Apache using normal http request... but i want to redirect my http url to https url for securing data How should i do this... don't say like redirect("Location:https://localhost/index.php"); because i tried It is not working... ...
3
1,511
thread by: DipuV | last post Dec 24 '07 by: nathj
Hi frnds, I am new here...... the code i m posting here works good on php5 see the code... file connection.inc <?php
2
1,398
nathj
thread by: nathj | last post Dec 24 '07 by: nathj
Hi, I'm currently working on a project that is making use of the DOM. This is great way to save time and code and generally make life easier. However, I have an issue that cannot seem to overcome. I have a PHP page that deinfes a form in a disabled state. Then when the user clicks edit the controls are enabled. This is done with a call to a...
2
1,404
thread by: asis.morodo | last post Dec 24 '07 by: asismorodo
Hey guys, I am connecting to a supllier via SOAP that sends me with the price list zipped inside an xml message. I can connect and I can retrieve the xml information (see the message, save the content, etc...) however i am unable to unzip the information contained in the tag here is my code: <code>
1
5,193
thread by: yawnmoth | last post Dec 24 '07 by: C. (http://symcbean.blogspot.com/)
When the server sends out a WWW-Authenticate header combined with a 401 response code, you get prompted for a username / password. On some servers, this username and password are then saved in $_SERVER and $_SERVER. On others, however, they aren't. So why, on these servers, isn't the value saved in $_SERVER? The authorize header in the...
3
1,336
thread by: Alamin Ahmed | last post Dec 24 '07 by: Ulf Kadner
what is the best way to store and call php classes written and submitted by other developers? let's say i want to do the following $obj = new $userclass(); $obj->display($assoc_array); basically developers will have away to write different "print" method of given array. How and where would I store their class source fine
3
7,240
thread by: ishkur88 | last post Dec 24 '07 by: ishkur88
Hello, I'm a starting out web designer, and a client of mine wants a gallery of their products to be displayed. What I have so far works beautifully. Basically what it does is reads the contents of a directory and displays them in a list. That list is then vertically wrapped to be made into a table type display. Resulting in a basic grid...
1
1,643
thread by: rafael | last post Dec 23 '07 by: Csaba Gabor
I would like to create powerpoint file from php, and I have this php script i got from the internet... <? $powerpnt = new COM("powerpoint.application"); $pres=$powerpnt->Presentations->Add(); $pres->Slides->Add(1,12); $pres->Slides->Add(2,10); $pres->Slides->Shapes->AddTextbox(1,20,50,300,40);...
1
1,594
thread by: gah | last post Dec 23 '07 by: pbmods
I am getting an array of records from an asp.net webservice and wanting to display them in a dynamically created html table in the php page. I am new to php and not sure how to get the values from the array. I get an "invalid argument error in for each" error message. If I run the program and inspect the $res, I can see all the records in the...
1
1,376
thread by: ayasindemir | last post Dec 23 '07 by: pbmods
Hi everybody, I want to make a media player that plays video which retrieves it from oracle database. I dont save path of the video, i am using ordsys.ordvideo. I think firstly i make buffer and than i get a byte data. How can I send that binary data to media player or another player. Thanks...
1
2,586
thread by: vegascoop | last post Dec 23 '07 by: pbmods
I'm moving a script from PHP4 to PHP5. Everything works under PHP4. When I run the script under PHP5, I get the following error message: Call to undefined method Database::doQuery() Here is the offending code: function getBaseURL( ) {
1
2,020
thread by: beary | last post Dec 23 '07 by: pbmods
I was using a backup script I found which had $tables = mysql_list_tables($database); for($i = 0; $i < mysql_num_rows($tables); $i++) { $table = mysql_tablename ($tables, $i); ...rest of code It worked perfectly. However, I only want to backup particular tables. So thinking that mysql_list_tables won't let me choose certain...
10
2,328
thread by: goodguyjam | last post Dec 23 '07 by: goodguyjam
Hi again. I now get the above error with the exact same code as in my previous question. All I did was to rearrange the lines...no code changes...help! To assist you experts, line 11 contains this code - header(‘WWW-Authenticate: Basic realm=”secret section”’); Then when I remove the colon, I get a new error - syntax error, unexpected T_STRING...
1
1,670
thread by: hemakrmmc | last post Dec 23 '07 by: pbmods
hello, I need to send mail using php Mail(), 1. Our php(I my office) is connect to a remote sever ip is (192.168.5.250). 2. My machine is SMTP enabled. 3. php.ini file is changed in the server folder as per the requirement. but i could not send the mail. please help me how and where to configure smtp and php.ini file and wat are the...
1
2,227
thread by: nitinpatel1117 | last post Dec 23 '07 by: pbmods
Hi, i'm using php's imap extension to read emails from a mailbox. My php script has been working fine and i'm pretty sure that there is nothing wrong with it. here is extracts from my code $mbox = imap_open ($host, $login, $password) or die("can't connect: " . imap_last_error()); $message_count = imap_num_msg($mbox);
1
2,079
thread by: mukeshrasm | last post Dec 23 '07 by: pbmods
<?php // create new document pdf_new(); $pdf = pdf_new(); pdf_open_file($pdf); pdf_begin_page($pdf, 500, 700); // define a font $font = pdf_findfont($pdf, "Courier", "host", 0);
1
1,191
thread by: rathour | last post Dec 23 '07 by: pbmods
How do i add BB code to my text box ? and make it work in php ??
4
1,359
thread by: HardySpicer | last post Dec 23 '07 by: macca
I have an application that uses Google Maps. This works fine but I ned to read a file. I can do this in PHP but how to mix PHP with Java Script? Do they live together or do I need to end each block of script then start the php - then end it etc. regards Hardy
1
1,506
Markus
thread by: Markus | last post Dec 23 '07 by: Markus
This is for you pb - you're looking a little bored; answering all those old threads ;) So here's what ive got, it's a validation function: <?php /* *$username = $_POST; *$email = $_POST; * *#$usernameExp = '//'; //regExp for username validation *#$emailExp = '/^+(\.+)*@+(\.+)*\.({2,4})$/'; // ** email validation
2
1,329
thread by: mingkin | last post Dec 23 '07 by: mingkin
Domain: http://hk.yahoo.com pattern: "/:\/\/(.*)\.{2,4}\//" code: ereg("/:\/\/(.*)\.{2,4}\//", 'http://hk.yahoo.com', $domain); target:

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.