I don't think he's trying to multiply, I think he wants to print #x#, like
800x600 or 1024x768, etc...
Adam
On Tue, 3 Dec 2002, Kevin Stone wrote:
> Is it possible you're mistaken somehow? x isn't an operator in PHP.
> Executing $a x $b will give you a parse error. Anyt
If you mean PHP 4.2.3, it'll work with apache 2.0, but not that great.
I'm also using PHP 4.3.0-rc2 with Apache 2.0 and its not any better.
Adam
On Wed, 4 Dec 2002, Vicente Valero wrote:
> Hello,
>
> PHP 2.4.3 can work with Apache 2.0.x or I need Apache 1.3.x?
--
PHP G
Yes
On Wed, 4 Dec 2002, Vicente Valero wrote:
> Excuseme my confussion, I meant PHP 4.2.3. So you suggest me PHP 4.2.3 and Apache
>1.3.x??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
change the directory ownership to the user apache runs as, or make the dir
777.
Adam
On Wed, 4 Dec 2002, [iso-8859-1] Davíð Örn Jóhannsson wrote:
> I need to be able to create dirs, chmod and other stuff on the server,
> but I get : Warning: MkDir failed (Permission denie
is register globals enabled?
On Tue, 10 Dec 2002, Shane wrote:
> Greetings gang.
>
> You know me, I never ask for help if I haven't checked all my other options, but
>this is day two, and I'm getting spanked on this one.
>
> Some recently moved scripts from a WIN2K server running PHP 4.2.1 to an
Is it possible to have PHP read cd label information? You know in windows
like after you put in a CD and use Windows Explorer and go to your CD rom
drive's letter it will say like D: (MSOffice2K) or D: (date of burned cd)
or D: (XPProCD), etc...If you know what I am talking about, is there a way
t
It would be in the cd-rom drive of the webserver. The CD's would be
rotated periodically and the only way I have to identify what is on each
cd and which .exe to run on it is by identifying it by its cd label. I've
searched google and php.net but haven't found a function that can read cd
labels.
Thanks Tom, that works perfect!
Adam
On Thu, 6 Feb 2003, Tom Rogers wrote:
> Hi, Adam
>
>
> TR> You could try the vol command using exec{} and parse out the volume name
>
> TR> --
> TR> regards,
> TR> Tom
>
> This should do it:
> exec("vol g:",$resu
l
the correct .exe file on it to load the application.
Its for a library and will be used by the general public, so I am making
it as simple as possible :)
Adam
On Wed, 5 Feb 2003, John Nichel wrote:
> Guess it's not on Linux, eh? :)
>
> Adam Williams wrote
Hello,
I have a block of code:
unable to write to news.txt";
exit;
}
Header("Location: http://archives1.mdah.state.ms.us/news.php"; );
}
?>
and when I access it, I get the error:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in /usr/l
Hi,
when I do that, nothing is written to news.txt, and I'm not sure why.
This is the entire script:
unable to write to news.txt";
exit;
}
Header("Location: http://archives1.mdah.state.ms.us/news.php"; );
}
?>
News update
Please make your changes below and then click
Hi,
I am having a problem with $_POST which I will explain below. My
configuration is Redhat 7.3 Linux 2.4.18 with Apache 2.0.39, PHP 4.2.2,
and MySQL 3.23.49.
I have an SQL table which was created by:
CREATE TABLE testTable (id nut null primary key aut_increment, testField
varchar (75));
I h
I think you'll need to use header ("Location: url?".print SID);
Adam
On Wed, 14 Aug 2002, apollo wrote:
> hi,
>
> after submit i use:
>
> if (isset($submit))
> header ("Location: url?".sid);
>
> i want continue my session in next page, but SID (my session's unique id) is
if ( ($idx != "1") || ($idx != "4") || ($idx != "9") )
{
echo "$results";
}
Adam
On Thu, 15 Aug 2002, Liam MacKenzie wrote:
> Ok, I'm having a blonde day...
>
> If $idx == 1, 4 or 9 I don't want it to echo $results.
> I have this, what's the syntax to put multipl
To make that work with register_globals = off wouldn't you use
Adam
On Thu, 15 Aug 2002, Brian V Bonini wrote:
> No, but instead you could do something like:
>
> header ("Location: frame.php?url=content.php");
>
> Then in frame.php:
>
>
> SCROLLING="Auto" FRA
You could do it if you had a table with each genre of music.
// get each genre
while ($genre = mysql_fetch_array(mysql_query(select * from genre_table));
{
// sql query to fetch the # of albums of a specific genre
$sql = mysql_query(select count($genre) as count from album_table where
genre =".$g
rename php.ini-dist thats with the php source code to php.ini and copy it
to /usr/local/lib
Adam
On Thu, 15 Aug 2002, Randall Perry wrote:
> > is usually in /usr/local/lib
>
>
> Ok, just reinstalled 4.2.2 to make sure I didn't miss anything -- it didn't
> install any php
644 should be fine. I don't know about you, but for some reason on my
linux box, I can't get $HTTP_POST_VARS or $_POST to work at all. it sends
the value wrong. If I were you'd change the form method=post to
method=get and then use $HTTP_GET_VARS or $_GET and see if it works. I
think there is
basically it is used for accessing a variable in an array.
Adam
On Wed, 14 Aug 2002, Chris Barnes wrote:
> hey people,
> I have been seeing something in a few php scripts i've been playing with and
> i really dont know what it means or does. I'm only new to php so maybe
Why don't you just run sendmail 24/7 with -bd -q15 I'll check the queue
continously and send out the emails as it receives them instantaneously.
Adam
On Thu, 15 Aug 2002, Daren Cotter wrote:
> To recap, my problem is:
>
> I need some mailings sent immediately (confirmat
when running the ./configure for PHP did you use --with-mysql
Adam
On Fri, 16 Aug 2002, Ryan wrote:
> What's wrong ? I am using RH7.3. I manually compile the php and install
> it before. But later I install using the rpm.
>
> Thx for reply !
>
>
> Content-type: text/html
If I haven't responded too late, Install the SRPM package with rpm -ivh
file.srpm or file.src.rpm and then do to the SPECS directory. In RedHat's
case it is /usr/src/redhat/SPECS and look for something like mod_php.spec
or php.spec and edit it. That file has a paramaters it passes to
configure s
Have you tried putting the IFRAME in a table and setting the background
color of that table to the background of the rest of the page?
Adam
On Mon, 19 Aug 2002, David Buerer wrote:
> Yes I know it's a PHP list, but I thought someone might have an idea on how
> to fixt th
I'm trying to compile PHP 4.2.2. I am running Apache 2.0.40 (yes I know
support is experimental). I am compiling on Redhat 7.3 Linux 2.4.18. I
did my PHP configure line:
./configure --enable-track-vars --with-mysql --with-mail
--with-apxs2=/usr/local/apache2/bin/apxs
and then I do a make, an
If memory serves me right, -ba builds the binary and source rpms, and -bb
only builds the binary rpm.
Adam
On Mon, 19 Aug 2002 [EMAIL PROTECTED] wrote:
> Adam Williams wrote:
>
> > If I haven't responded too late, Install the SRPM package with rpm -ivh
I'd run -bb but the -ba will work just fine, you'll just delete the
src.rpm it builds because you won't need it.
Adam
On Tue, 20 Aug 2002 [EMAIL PROTECTED] wrote:
> So, which command that you recommend to run ?
>
> Adam Williams wrote:
>
&g
Look up on www.mysql.com documentation, you can do a count within a select
statement
SELECT whatever COUNT(whatever) AS COUNT FROM table GROUP BY 'something'
HAVING something = 'something'
--
| whatever | count |
--
| stuff selected |50 |
$string .= "world.";
Adam
On Mon, 19 Aug 2002, Alexander Ross wrote:
> Is there a += equivilant for strings??
>
> $string = "Hello";
> $string += "world.";
>
> I know that
> $string = $string." world.";
> would work, but I keep having to do it. Is there a shortcut?
>
Yesterday it was recommended that I get the latest PHP from
http://snaps.php.net. I did that last night and today, and I am compiling
it as follows. Currently this error was on the snapshot of 200208200600.
./configure --enable-track-vars --with-mysql --with-mail
--with-apxs2=/usr/local/apache
is register_globals = off in php.ini? if so, that is why.
Adam
On Tue, 20 Aug 2002, Maris Kalnins wrote:
> Hi!
>
> just installed latest php and apache on windows nt!
>
> to my big surprise when i am executing test.php?abc=testvalue
> where test.php =
>
>
>
> I get emp
I always create a database by hand. On the console type:
mysql -u root -p
(It will prompt you for the mysql superuser's password. Then run:
CREATE DATABASE db_name_here;
Then you would use the grant statement accordly to give users permissions
to it.
Adam
On Tue, 20
Is it just me having network connectivity problems, or is the PHP website,
http://www.php.net down? I tried connecting to it from a couple of
difference computers and I can't access it on any of them. Just wondering
if anyone else is having problems getting to their website too.
Thanks! Silly me, I'm always forgetting about the mirror sites ;)
Adam
On Wed, 21 Aug 2002, DL Neil wrote:
> > Is it just me having network connectivity problems, or is the PHP website,
> > http://www.php.net down? I tried connecting to it from a couple of
> > differen
Just suggestion but why not use md5($password) and then send the result of
that in your GET?
Adam
On Wed, 21 Aug 2002, Mark McCulligh wrote:
> I have two server. One running PHP/Linux the other running ASP/2000.
> The user logins into the PHP server and session variable
Just to throw my $.02 in, if you are running an RPM based linux
distribution on your server (such as RedHat), edit your
/etc/rc.d/init.d/postgresql file and look for the code in it:
# Check for postmaster already running...
pid=`pidof -s postmaster`
if [ $pid ]
the
mysql_query($sql_statement) or die ("Couldn't run UPDATE statement");
Adam
On Thu, 22 Aug 2002, Randy Johnson wrote:
> I have a function
>
>
> update_trans();
>
>
> in a mysql_query() that processes an update, what could i check for to see
> if it was successful or not.
you need
$query = SELECT COUNT(*) as count FROM bookings WHERE ('2002-04-04')
BETWEEN booking_start AND booking_end OR ('2002-04-10')BETWEEN
booking_start AND booking_end AND villa_id = ('3')
$villa = mysql_query($query);
while ($result = mysqul_result($villa))
{
echo "We have $result[count] vi
exec() and system()
Adam
On Mon, 26 Aug 2002, Matthew wrote:
> I'm new to PHP and want to build a basic page. The one thing I cannot
> find any documentation on is the seemingly simplistic question of how to run
> a Perl script. I just want to execute a site-tracking
look around for phpmychat
Maybe its on freshmeat.net?
Adam
On Tue, 27 Aug 2002, Andy wrote:
> HI there,
>
> I am wondering if a Chat coded in PHP would be sufficiant for a medium sized
> site. Maybe someone has a working example online. It would be no problem to
> get a
if you just wanna delete everything from the tables you can do
DELETE FROM table_name;
for each table. or you can do DROP table_name; for each one but then you
have to re-create each table that you drop with CREATe TABLE ( stuff here
);
Only use DROP table_name; if you know the structure of ea
Search the archives, this was explained 2-3 days ago how to dynamically
generate a while without creating one on the server.
Adam
On Thu, 29 Aug 2002, John Hegele wrote:
> I'm currently building a site for a band and one of the features I'd like to
> offer is vCalendar f
use
$_GET[id]
in the place of $id for each instance. Like if you had $new = $id + 1
change it to $new = $_GET[id] + 1
and such...
Adam
On Wed, 4 Sep 2002, Kelly Meeks wrote:
> Hi folks,
>
> I might be late to the game with these questions, but I've just been bit by t
whats the permissions on /tmp? it should be set to 1777
Adam
On Wed, 4 Sep 2002, ROBERT MCPEAK wrote:
> Our box recently went down and after reconfiguring it we're left with a
> semi-operation mySQL. One error I'm getting is this:
>
> mysql> select region from clip_art
if ($i%3 = 0)
{
echo "something";
}
On Wed, 4 Sep 2002, Cirkit Braker wrote:
> what would be the best, most efficient way to print something every three
> times a loop runs
>
> for ($i=0; $i<$num_products; $i++)
> {
> echo "something";
>}
>
> this happens every t
Go to www.mysql.com and make sure you are using the latest version of
MySQL.
Adam
On Thu, 5 Sep 2002, Boaz Yahav wrote:
> Hi
>
> Since i moved from a Sun / Solaris Machine to a Compaq / Linux machine
> I'm having weird problems with MySQL crashing while running reports w
I haven't had any problems with mysql like you are having. I would
recommand you recompile the source rpm to the binary rpms and then install
them.
Adam
On Thu, 5 Sep 2002, Boaz Yahav wrote:
> I'm using 3.23.52-log
>
> -Original Message-
&g
what commands are you giving it to compile and what errors you getting?
Adam
On Fri, 6 Sep 2002, yoda2005 wrote:
> Is there any way to do it? I cant seem to get it to install as a module
> nomatter what I do. Right now I have it running as a cgi parser but some
> stuff I
echo "$sql";
Adam
On Sat, 7 Sep 2002, Chuck PUP Payne wrote:
> Hi,
>
> I am having a problem with menu options being pass on to my database. Is
> there a way that I can see what is sql statement that is passing on to the
> database? Say maybe print $sql or something like
search google for using PHP sessions and you will print the session ID
into the URL.
Adam
On Tue, 10 Sep 2002, YC Nyon wrote:
> I been searching for a user authentication codes all night but got no where
> with the results.
> Therefore, if someone can tell me where to fi
If you are using mysql, you can use the NOW() function to insert the time
into a date field. It will insert the time that is on the server's clock.
Adam
On Tue, 10 Sep 2002, Christian Ista wrote:
> Hello,
>
> When a use insert the row in a table, I'd like to know the da
Most sites log by IP but if its the IP of a firewall, it would only be one
vote from everyone behind the firewall.
Adam
On Thu, 12 Sep 2002, Justin French wrote:
> Hi,
>
> I'm looking to implement very basic like it | hate it voting for a product
> on a site, but I'd lik
I just wanted to chime in here and say that Julie Meloni's books are
awesome. I have PHP Essentials and her Teach yourself PHP in 24 hours
book. I plan to buy her PHP Fast and Easy 2nd edition very soon.
Adam
On Wed, 11 Sep 2002, Miles Thompson wrote:
> Julie Meloni to
use stripslashes() or turn on magic quotes in php.ini
On Wed, 11 Sep 2002, Rick King wrote:
> Apache: 1.3.23
> PHP: 4.1.2
>
> Hello PHP Guru's!
>
> I have created a simple web form. When the form is complete and submitted,
> the results are emailed to an email account. But I have noticed that th
Have a php page that runs exec() or system() and does a whois query on the
domain you want and then have it output the text to a page. Very simple
to do, less then 2 minutes of coding.
Adam
On Thu, 12 Sep 2002, yasin inat wrote:
> please anyone can help me about
You can use PHP and file() to do with, along with the str functions, but
if I were you and you already know what the filename of the file is you
are working on (or can submit it via a form) I would use the unix command
cut to do the operations on the file. Use another exec() or system() and
have
make a directory called phptest and put a file, index.php in it...never
tried it tho.
On Thu, 12 Sep 2002, LI DONG wrote:
> Hello everyone,
>
> It is a question about .php file extension. Is there any way to access PHP4
> script in Apache 1.3.x without .php extension? For example, how to use
>
>
that'll work because PHP will change its cast from a currency to a
integery before adding.
Adam
On Thu, 12 Sep 2002, David Buerer wrote:
> OK y'all, go ahead and shoot me, but this is what I'd do:
>
> $mystring="enters $56.55 for example";
> $mynumber=$mystring+1-1;
>
>
hois";
>
> ?>
>
> But all the information is shown as one big line, no breaks or anything.
> How would I do this so it showed properly formatted output?
>
> Adam Williams wrote:
>
> >Have a php page that runs exec() or system() and does a whois query on the
>
try using nl2br() on it before you print it.
Adam
On Thu, 12 Sep 2002, Tom Ray wrote:
> Nope still comes up with everything in one big line. I'm running through
> different options right now..but I'm tired and my brain is starting to
> hurt :)
>
you don't. php/apache run as the user nobody for security purposes.
Adam
On Thu, 12 Sep 2002, Breno Cardoso Perucchi wrote:
> HI,
> I am trying to use a script php with the command:
> system("mkdir /home/hosting/test");
> but the PERMISSION IS DENIED and I am the root o
/bin/vi
:)
Adam
On Thu, 19 Sep 2002, Gian Michele wrote:
> Hi,
> does any body knows a cool editor for php that run under redhat 7.x and
> where i can find?
> tanks -- Gian Michele
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
Yeah, apache 2.0 and php don't like each other.
Adam
On Fri, 20 Sep 2002, pierre.samson wrote:
> I'm building a new server and would like to use:
> php4
> apache 2.xxx
> mod_ssl
> MySQL
> mod_perl
>
> Is there any major hurdle?
>
> Thanks
>
> Pierre B. Samson
> CAMBAR
>
On Fri, 20 Sep 2002, pierre.samson wrote:
> Any particular reason... future plans or is apache2 is not worthy?
> "Adam Williams" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Yeah, apache 2.0 and php don't like
If you areusing IE you have to pu tin the http:// infront of it, its one
of those quirky IE only things. Don't have to do that in
Mozilla/Netscape.
Adam
On Tue, 24 Sep 2002, Anil Garg wrote:
> hi
> in my httpd.conf i have added a virtual host as:
>
>
> # General setup
read the install section of the PHP manual at www.php.net and then read
the tutorial.
Adam
On Wed, 25 Sep 2002, Sauron wrote:
> Hi all
>
> I am brand new to PHP, I have a friend that develops in it and I'm
> interested in learning more about it. I am familiar with VB at
www.php.net/header
Adam
On Tue, 1 Oct 2002, Anna Gyor wrote:
> Hi,
>
> how can I call a html site from my php script? I want to redirect the user
> to different html site depends on the php script result.
>
> Thanks!
>
>
>
>
>
--
PHP General Mailing List (http://www.
Speaking form experience, get ready for a few headaches on this.
edit /usr/informix/etc/sqlhosts and have it look like this:
demo_on onipcshmon_hostname on_servername
demo_se seipcpipse_hostname sqlexec
archives1 setlitcp archives1.mdah.state.ms.us sqlexec
wher
I'd go back to apache 1.3.27 and php-4.2.3 if I were you and see if that
fixes your problem.
I run Informix, PHP, and Apache on a server and have had no problems.
Adam
On Mon, 21 Oct 2002, Erwin Speybroeck wrote:
> Hi,
>
> I'm struggling with a problem for quite some tim
look up webmin on your favorite search engine.
Adam
On Mon, 28 Oct 2002, [ISO-8859-1] Jochen Kächelin wrote:
> How can I use PHP to admin my Apache over the browser?
>
> How do big providers allow their customers to admin their
> subdomains, forwarders, ftp-accounts
I can't get to it either, but the mirror http://uk.php.net works fine.
Adam
On Thu, 7 Nov 2002 [EMAIL PROTECTED] wrote:
>
> Seems the site is down? Just when I was needing to get to the
> documentation.
>
> Ed
>
>
>
>
--
PHP General Mailing List (http://www.php.net/)
T
Learn how to do DNS.
Adam
On Fri, 8 Nov 2002, Stephen wrote:
> Hello,
>
> I was wondering, is there a PHP/MySQL installation kit, like phptriad, that works
>network wide? For example, I have a site on my computer that's hooked up to a lan. I
>want other people on the ne
look up exec()
Adam
On Tue, 12 Nov 2002, Greg wrote:
> Hi-
> Is there a way in PHP to execute a program and then have it pass its output
> back to PHP? Say I wanted to return the value that running "df" produced
> and put it in a web page? Thanks!!
> -Greg
>
>
>
>
--
actually, look up system() I think it would be better in your case.
Adam
On Tue, 12 Nov 2002, Greg wrote:
> Hi-
> Is there a way in PHP to execute a program and then have it pass its output
> back to PHP? Say I wanted to return the value that running "df" produced
> and
No if it works use it, but if you choose to go with system() you will need
to pass the command through escapeshellcmd() as a security precaution.
Adam
On Tue, 12 Nov 2002, Greg wrote:
> exec() worked jsut fine. Is there any drawback to using this?
> -Greg
>
are you using header() after you've already sent data to the browser (such
as printing something to the user)?
Adam
On Tue, 12 Nov 2002, Ben C. wrote:
> I am receiving the following error on my change password form:
>
> Warning: Cannot send session cache limiter - headers
Change the space in job enquiry to a +
Adam
On 14 Nov 2002, BigDog wrote:
> Does this not work...
>
>
>
>
>
> On Thu, 2002-11-14 at 14:11, CJ wrote:
> > I have a "contact us" php script on my site that allows users to email
> > direct from the webiste. I want to be able
0 0 * * * lynx http://whatever/blah.php &; sleep 5; killall -9 lynx
Adam
On Thu, 14 Nov 2002, Aate Drageset wrote:
> Not specifically php-problem, but..
> How could i run a php-script from command line (cron.daily) using no GUI or X ??
> There should be some way of using
Not to burst your bubble, but I'have had all of this working since the day
RedHat 8.0 was released. Though I compiled everything by hand instead of
using RedHat's RPMs. Just read the comments on php.net under the
apache/unix install and did what they said to add to httpd.conf for PHP.
user name=cb[] and PHP will automatically make the array. then call it
with $_GET["cb"][#]
Adam
On Thu, 21 Nov 2002, Xin Qi wrote:
> hi there,
>
> if i have a group of checkboxes, and they have the SAME name, when they are
> submited into a php script, how can this php f
You either need to make the directory 777 or change the ownership of the
dir to apache or nobody (depending on which user httpd runs as)
Adam
On Fri, 22 Nov 2002, Vicky wrote:
> Yup, both directorys are chmoded to 755. Lots of users are going to use this
> script so...
>
Hello,
I'm trying to compile PHP 4.3.3. My configure is:
./configure --enable-track-vars --without-mysql --with-mail
--with-apxs2=/usr/local/apache2/bin/apxs --with-informix
and when doing make I get:
[EMAIL PROTECTED] php-4.3.3]# make
/bin/sh /root/php-4.3.3/libtool --silent --preserve-dup-d
Hello,
I want to allow access to a php page but am not sure how I should verify
the IP once I get it. I want to allow 10.8.4.* and 10.8.5.* to access a
certain webpage and keep everyone else out. I have written code to figure
out what someone's IP is, but am not sure about how I should verify
Hello,
I was wondering if someone knew how to display the time on the server to a
web page that resides on that server, and have it update the time each
second? I was looking at javascript for this, but they all use the client
PC viewing the page to get the time, but I want it to display the s
I have a php page I am writing with an SQL query. I am going to query the
database for a couple of fields. One of the fields I am querying is the
title oh the document someone is searching for. The title will be used at
the top of the html page and will say:
"you are searching for document n
Hi,
does anyone happen to know off hand the function that will ignore case for
data inputted via text from a ? I don't remember it off hand
and can't find it in the function list on php.net. Basically it changes
the text in the string from a character to [a-Z] for each character. I
know it
Hi,
I finally found it in my notes, it was sql_regcase()
Rolf Brusletto wrote:
Adam Williams wrote:
Hi,
does anyone happen to know off hand the function that will ignore case
for data inputted via text from a ? I don't remember it
off hand and can't find it in the function list
Hello,
I need to test a variable to see if it contains a value or not, and if
not, do something. My php is a little rusty, so which would be better?
if ( !$var )
{ echo "do something";}
or
if ( !isset($var )
{ echo "do something";}
or are both of those wrong, and if so, how hsoudl I check if
Hello,
I am selecting a field in a database called description for keyword
searching. The field contains names of people, states, years, etc. When
someone searches for say "holmes north carolina" the query searches for
exactly that, fields which have "holmes north carolina", and not fields
t
I'm using Informix SQL. Do you know how to do full text searching on
Informix? If so, please share the details :)
Jay Blanchard wrote:
[snip]
I am selecting a field in a database called description for keyword
searching. The field contains names of people, states, years, etc.
When
someone s
I am having a user enter a phrase into a textbox, and then I need to
seperate the words he has typed into variables so I can use each one
in an sql statement. I know I will use the explode() function to do this,
but how will I know how many variables I've created. For instance, if a
user type
If I have the SQL statement:
$sql = "select subject from subwhile where subject = '*$var[0]*'";
do I need to put a \ before each '?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yeah thats what I meant to do, my PHP is very rusty if you can't tell
(and so is my SQL) :)
Jay Blanchard wrote:
[snip]
If I have the SQL statement:
$sql = "select subject from subwhile where subject = '*$var[0]*'";
Don't you want to do:
$sql = "select subject from subwhile where subject LIK
I have a script where a user inputs a date in MMDD format, and I need
to convert it to month day, year. For example they will enter 20031209
and I need the script to return the date as December 09, 2003. They won't
be entering today's date, so I can't use the timestamp with the date
funct
Hi, is there a PHP function that will convert MM/DD/ to MMDD?
Also I will need to take into affect some people may put in M/D/ (some
people may put in 1 instead of 01, 2 instead of 02, etc). Is there a way
to do this?
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
Here is my snippet of code. It takes cardnum from the database, removes
the duplicates for each individual date, and then counts how many discrete
numbers there was.
//database connect and selection here, now my sql statement:
$sql = "select convert( varchar,eventime, 110) as date, cardnum f
array_unique() removes duplicate values from an array.
Is there an opposite function or way of keeping all values in a single
dimentional array that are duplicates and removing all that are
duplicates?
for example if I have an array:
array( [0] => 'dog', [1] => 'cat', [2] => 'rabbit', [3] => '
Hi, I'm having a problem with fopen and http files. I keep getting the
error:
Warning: fopen(http://zed/htdocs/rgfindingaids/series594.html )
[function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404
Not Found in /home/awilliam/public_html/rgfaidstest.php on line 15
http://zed
On Fri, 8 Oct 2004, Matt M. wrote:
> > But I don't understand why I am getting that error about failed to open
> > strem: HTTP request failed, when I can bring up the links fine in a
> > browser on the server running the php script. So can anyone help me out?
> > Thanks
>
> do you have allow_url
On Fri, 8 Oct 2004, Hendrik Schmieder wrote:
> What say phpinfo about Registered PHP Streams ?
>
>Hendrik
>
>
Hi, I think I just figured out my problem...I had to use rtrim($line)
because I think there was a \n or an invisible character at the end of the
line that was being passed to
I have staff inputting email addresses into a named $list on
a form and when they click submit, my php script sorts the email
addresses and writes to disk. The problem is, lets say they enter the
email addresses
b...@mdah.state.ms.us
ama...@mdah.state.ms.us
sa...@mdah.state.ms.us
j...@mdah.s
1 - 100 of 162 matches
Mail list logo