473,537 Members | 2,672 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
22,232
thread by: mimages | last post Jul 17 '05 by: mimages
Can someone tell me how to parse part of a string? I can use the following: <?php $text = $_SERVER; //$PHP_SELF //(document.url); echo $text; ?> to get this result: "Your currently at /test.php "
1
22,182
thread by: cameron | last post Jul 17 '05 by: CountScubula
I'm looking to use the system (or exec) function to call a shell script in UNIX. The following is the UNIX command line without PHP: /home/public_html/VariableDirectory/myScript.ksh VariableDirectory can be a number of different directories. Each of them contain a copy of myScript.ksh. So, we run the same script in different directories...
6
22,146
thread by: Pratchaya | last post Jul 17 '05 by: Pratchaya
How to encrypt URL Address ? ============================== Now i 'm play about PHP language . and now i want ot know how to " advance url display " like encrypt URL Address in browser ( IE , Opera , others ) like Display :: http://posting.google.com/post?cmd=post&justr=
2
22,137
thread by: ghjk | last post Apr 9 '08 by: ghjk
My mysql database has datetime field and i want to get only date. how can i do that?
4
22,133
kestrel
thread by: kestrel | last post Jun 17 '07 by: kestrel
I have some html code that is supposed to be displayed by php echo. But for some reason i keep getting a syntax error, and i cant figure out what is going on. Heres what i have <?php if(isset($_GET)) { echo "<div id="visible">"; echo "<span onclick="swapform()">Log In Form</span>"; echo "</div>"; echo "<div id="theform"...
5
22,058
thread by: Bandit | last post Jul 17 '05 by: Geoff Berrow
Hi there, I am looking for any help with a form I am trying to make, one of the feilds I want it to be a drop down menu, so this part of the form has set values and nothing else. I have tried a few times too make this work, but I can never make it work, I can`t even seem to find help ojnline for this issue. If anyone here can geve me...
7
22,033
thread by: Joshua Beall | last post Jul 17 '05 by: Andrew
Hi All, Any thoughts on the easiest way to translate a MySQL timestamp (which looks like 20040422090941) to the datetime format (which looks like 2004-04-22 09:09:41). This is just to make it easier for a human to read it. I have thought about splitting it into chunks using something like str_split, then piecing it back together, but it...
3
22,027
thread by: siyaverma | last post Sep 21 '07 by: code green
i am trying to upload csv file from user's computer to main server the code i am using is if(((isset($_GET)) && ($_GET=="yes")) ) { $typefield = $_GET; echo "<form enctype=\"multipart/form-data\" action=\"$PHP_SELF\" method=\"POST\">
8
22,001
thread by: nazish zehra | last post Sep 20 '12 by: ayukawaa
I am trying to make exe file of my php project.the problem is that my project uses database on mysql.i have two front ends,one on java and other on php with same database on mysql.Now i have to make exe of both php and java file.For java it is easy as i have created script of mysql and it is running normal on local machine. but i am having problem...
2
22,000
thread by: john | last post Jul 17 '05 by: Tim Van Wassenhove
How to call a php function on click of a hyperlink??
5
21,964
thread by: sharmilah | last post Jun 19 '07 by: bonski
Hi All I wish to use a drop down list with the values 'Active' and 'Inactive' and select one of those values to go into my table 'users' which has a field called 'status'. I do not want to store the values 'Active' and 'Inactive' into another table but I want to use them from the list directly. In fact I have been able to build the drop down...
3
21,955
thread by: Syl | last post Jun 30 '06 by: ED
Hi group - I have a variable which is created from an input form. After concatenating the input I want, I end up with a variable named $all which looks like this : delegatecountry,delegatefname,delegatelname,delegatebname I want to take this string and replace all the commas with this : </th><th>
9
21,944
thread by: Geoff Berrow | last post Mar 13 '06 by: shriop
I'm trying to output the results of a database query as a csv file The DB output is in $csv foreach($csv as $array){ $line=implode($delimited_by,$array)."\n"; } header("Content-Type: text/plain"); header("Content-Disposition: inline");
7
21,929
thread by: eholz1 | last post Jun 27 '08 by: eholz1
Hello All, I have reviewed various posts in regard to Oracle and PHP. I am running Apache 2.0.59, on Windows XP, with PHP 5.2. I would like to connect using PHP to a remote oracle db (ver. 7) I have uncommented out the php_oci8.dll and the older php_oracle.dll in the php.ini file the ini file resides in c:\php\php.ini
3
21,897
thread by: Thierry | last post Jul 17 '05 by: Michael Fuhr
Hello, I do have a mysql database with a BLOB column. What is the proprest way to read this column ? Thx, Thierry
7
21,877
thread by: abscons | last post Mar 1 '07 by: Jerry Stuckle
Hi out there, I have an url that looks like this: http://host/file?var=value. I am trying to replace the "value" part in my url and assign it to a link on my page. I tried to parse the url but can only get the part before the ? not included. Is there any way to do so? Thx.
2
21,852
thread by: mr_burns | last post Jul 17 '05 by: mr_burns
Hi, i am getting the following errors when running my php script: Warning: Cannot send session cookie - headers already sent by (output started at c:\apache\apache2\htdocs\thegain\index.php:4) in c:\apache\apache2\htdocs\thegain\index.php on line 19
21
21,835
exoskeleton
thread by: exoskeleton | last post Sep 18 '09 by: TheServant
please help dear experts on how to test string especially in username for example wheter it contains special charater and will return invalid! please help...TIA
9
21,814
thread by: Phil Powell | last post Jul 17 '05 by: R. Rajesh Jeba Anbiah
I am using PHP 4.3.2 to create a CSV file, however, Excel constantly views it as a single-column spreadsheet with everything in quotes, whereas OpenOffice Calc views it as a legitimate spreadsheet in separate columns/cells. class ReportGenerator { /** * Generate content based upon type
4
21,708
thread by: Ming | last post Aug 17 '07 by: Ming
Very frequently, I need to use codes like this to see output clearly: $a=print_r($var,true); echo "<pre>$a</pre>"; How can convert this piece of code to a global function (for example: echopre) in Php so that I can use echopre($data) anywhere in php program (in my server)? Thanks,
2
21,692
thread by: sky2070 | last post Jul 16 '05 by: skate
session_start(); $_SESSION++; print 'You have visited here '.$_SESSION.' times.'; returned: Warning: session_start() : open(/tmp\sess_c8bf2007256f6e15a938c0254adb21e4, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\session.php on line 3
8
21,677
thread by: Riddler | last post Jul 17 '05 by: max power
Anyone have an idea about how I could go about writing a function that would simply insert a character inbetween each character in a string? For instance: HELLO WORLD would turn into: H E L L O W O R L D
2
21,669
thread by: Ricki Susic | last post Jul 17 '05 by: Yves Brault
Hi, Can anyone tell me if it is possible to call a function from a html form, where the function is included in the same file as the form. <html> <body> <form method="post" action="what do I write here to acces function test()"> <input type="text" name="tekst">
4
21,626
thread by: xcomm | last post Jul 17 '05 by: Aidan
I tried to create some images with php and gd and get always Call to undefined function imagejpeg() or Call to undefined function imagepng() PHP was build with --with-gd --with-zlib but I assume I will need more? phpinfo() says: gd
4
21,621
realin
thread by: realin | last post Aug 31 '07 by: Purple
hi guys, As the subject says, how can i play mp3 or any other format of music on my website.. it should be a kinda background music. I would prefer to learn and write at my own rather using a readymade library.. thanks :)

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.