| |
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 "
|
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...
|
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=
|
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?
|
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"...
|
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...
|
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...
|
| |
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\">
|
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...
|
thread by: john |
last post Jul 17 '05 by: Tim Van Wassenhove
How to call a php function on click of a hyperlink??
|
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...
|
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>
|
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");
|
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
|
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
|
| |
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.
|
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
|
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
|
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
|
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,
|
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
|
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
|
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">
|
| |
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
|
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 :)
|