t know why it gets converted to
'www.ourdomain.net' in the final stages?
My code (rough, but you get the idea);
Thanks for any help
Steve
$ftp_server = '';
$un = $_REQUEST['ftp_un'];
$pw = $_REQUEST['ftp_pw'];
$tmp_file = $_FILES['ftp_
Franklin van de Meent wrote:
> Hello Steve,
>
> I tried this on my own servers and after replacing ""
> with $ftp_server it works perfectly, all ASCII files get uploaded the
> way they should with the correct filenames.
>
> Do you get any errors? (add error_re
recommend...
Also, I know the php.net website gives good examples,but a book would be
nice...
Thanks
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you are certain that your keys are the same for each array,
you can reference them by using the key as in
foreach ($fields as $key=>$value)
{
$a = $fields[$key];
$b = $types[$key];
etc...
}
Steve
I need to work with 3 different arrays where I get the value of the same
key for al
At 03:14 PM 3/10/2005, Richard Lynch wrote:
> I want to read a number from an external (txt) file and increment it.then
> save the number back on the text file.
> I know this is possible but want a simple amd economical way to do this.
That's what you *THINK* you want to do :-)
But what happens whe
Mario,
Many ways to do it, most using regex. This is not as clean as it
can be but still shows the idea:
This example works for any number of middle names (including zero)
and any number of white spaces between words. You can probably
get this more elegant, but this is one idea.
Steve
In Portgal
er ways to do it I'm sure. I just finished a
project with a mess of pattern matching so have regex on the brain. :-)
Steve
On Mar 11, 2005, at 11:39 PM, Steve Slater wrote:
Mario,
Many ways to do it, most using regex. This is not as clean as it
can be but still shows the idea:
This example
PROTECTED]/SHARE1/) [function.opendir]: failed to open dir: not
implemented in /root/z.php on line 3
end z.php output
Any help in this would be greatly appreciated. I really would like to get
this running. I am assuming that there is a compile option that I need to add.
Thanks
S
http://dev.mysql.com/doc/mysql/en/create-table.html
At 03:29 PM 3/15/2005, John Taylor-Johnston wrote:
How do I get PHP to create a table, if one does not already exist?
I have to do something with:
$news = mysql_query($sql) or die(print mysql_error());
What can I also add something to $sql?
$sql =
that would be quicker. If the line starts
with a #, then ignore it, otherwise, do some other stuff.
Thanks
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 01:50 PM 3/25/2005, you wrote:
Ok. I am really bad at regular expressions. I have to search through
some files and put the contents into an array. A file could look like this:
$aliases=`cat /home/virtual/site$site_id/fst/etc/mail/local-host-names`;
start of file
# local-host-names -
You might want to go to http://www.hotscripts.com and search for irc in the
php category.
Steve
At 08:47 AM 4/1/2005, Matthew Fonda wrote:
You might want to check out PEAR::Net_SmartIRC
http://pear.php.net/package/Net_SmartIRC
hello
i'm a newcomer to this list, fairly experienced PHP progr
;connected';
} else {
echo 'not connected';
}
Has any one got any ideas of why this error get thrown?
Regards
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Lynch wrote:
> On Mon, April 18, 2005 2:43 am, Steve Turnbull said:
>> I am running a LAMP setup consisting of Debian (testing), PHP4, Apache2,
>> and
>> MySQL 4.
>>
>> When I installed php, I used apt-get, and included in the list of modules
>>
ast
and easy. I love playing around with this product because the
possibilities for what you can do are almost endless.
HTH,
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 09:35 PM 4/23/2005, Josephson Tracy wrote:
hi everyone,
when i study php, i have a problem as following:
-
file1.php
if($NextCourse == 1){ do something;}
else($NextCourse ==""){do something other }
?>
-
but when the 2ed access the file1.php
the value
At 10:29 PM 4/23/2005, Josephson Tracy wrote:
> At 09:35 PM 4/23/2005, Josephson Tracy wrote:
> >hi everyone,
> >when i study php, i have a problem as following:
> >-
> >file1.php
> > >if($NextCourse == 1){ do something;}
> >else($NextCourse ==""){do something other }
> >?>
> >-
Go to http://www.hotscripts.com and type in "hotel reservation" in the
"Search For" text box, change the category to "PHP" and then click on "Search".
Steve
At 08:10 AM 4/25/2005, you wrote:
yes it will be real time and yes open source is what we're l
Is there a variable that I can call that will return an array with any
variables I have set? I'd want to call it and then parse and display current
values of, in this case, a and b. Hope that makes sense.
TIA
Capture the variables you've sent to the main frame page and send them via
the url of the frames.
Hope that helps.
- Original Message -
From: "gowthaman ramasamy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 14, 2004 2:24 AM
Subject: [PHP] variable passing using URL
Why don't you have your script do a desc on the table you pass to it, parse
the results, and populate the data needed for your form building class?
- Original Message -
From: "Edward Peloke" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Friday, May 14, 2004 9:37 AM
Subjec
When you do a describe (desc tablename) it returns the type and length of
the field in the database as part of the result set. You can parse that out
and determine what kind of an input field to generate.
- Original Message -
From: "Edward Peloke" <[EMAIL PROTECTED]>
To:
gh to do that. I am hoping that someone out there has an easy response
to this. Below is the code that I have so far.
Thanks
Steve
#!/usr/bin/php
http://www.domain.com/";;
$replacewithstring="require \"/home/domain/www/";
replacestring();
function replacestrin
At 11:27 AM 4/30/2004, John W. Holmes wrote:
From: "Steve Buehler" <[EMAIL PROTECTED]>
> #!/usr/bin/php
> $strtoreplace="require \"http://www.domain.com/";;
> $replacewithstring="require \"/home/domain/www/";
>
> replaces
use..." is not productive.
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm got a query that is joining a few tables.
select
par.*, pla.*, pro.*, reg.*
from parent par, players pla, registrations reg, programs pro
where blah blah blah
Now, a result set is the same but I'm having trouble parsing it because I
have column names that are identical in two of t
echo '';
echo '';
while ($myrow = mysql_fetch_array($sql))
{
echo '';
echo $myrow[0];
echo '';
}
echo '';
echo '';
You did say you wanted 5 COLUMNS, not rows, in your table... right?
"nabil" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hiya,
>
> How can i draw a new AFTER F
;t
have a pure-PHP solution, though, if that was really important to you
-
steve
--
+--- my people are the people of the dessert, ---+
| Steve Edberg [EMAIL PROTECTED] |
| University of California, Davis
upposed to work as an alternative to "global" statement ?
Not exactly. It allows to you access variables in the global context,
but it doesn't make the variable itself global; only the 'global'
declaration does that.
steve
--
+--- my people are the p
count($dataPoint). See
http://us3.php.net/manual/en/language.variables.external.php
for more info on this technique.
steve edberg
At 01:24 AM 28/05/2004, Dennis Seavers <[EMAIL PROTECTED]> wrote:
Maybe others will catch on to your intention, but I think you need to
provide a bit mo
: close\r\n\r\n");
fputs($fp, $request . "\r\n\r\n");
//loop through the response from the server
while(!feof($fp)) {
echo fgets($fp, 4096);
}
//close fp - we are done with it
fclose($fp);
}
Thanks in advance.
Steve
This works perfectly fine for me, as is.
fyi -- It doesn't matter what case "post" or "get" are in the code, the
global _GET and _POST will be populated properly.
- Original Message -
From: "php-general" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 01, 2004 11:24 AM
Su
Those messages are only broadcast if you happen to send a message to the
board cause people have autoresponders set. Given that there are only two
and now one bad address returning a message, I find it fairly easy to just
hit the delete button three times. I don't think this qualifies as spam.
So,
age -
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "Steve Douville" <[EMAIL PROTECTED]>; "Php-General-Help"
<[EMAIL PROTECTED]>
Sent: Tuesday, June 01, 2004 12:01 PM
Subject: RE: [PHP] Spammers
[snip]
Those messages are only broadcast
y would be prompted to do something about it.
Oh, look, two more to delete. (I knew the risk, believe me...) ;-)
- Original Message -
From: "Justin Patrin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 01, 2004 1:43 PM
Subject: Re: [PHP] Spammers
Open a file. Put this code in there:
Save as test.php and point your browser to it.
- Original Message -
From: "Nguyen, Long P (Mission Systems)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 02, 2004 4:33 PM
Subject: [PHP] php installation verification
> I am new
I think I'm having a major brain fart here. Is there a $HTTP_REFERER
anymore? It doesn't show up as a server variable or anything at all in
phpinfo()... using php 4.3.4
Ideas?
TIA,
Steve
lmao -- uh huh
Problem was that I was using a javascript redirect and of course, that
doesn't send any value. Found that out just a minute ago. New the stupid
variable existed...
Think I'll grab the info in js and then redirect it to the php page as part
of the query string.
Tha
At 06:39 PM 6/5/2004, you wrote:
Hi I have the following situation:
I've got a domain that is hosted at a certain host. This host allows me
to create subdomains, and also to add several domains to the same account.
The thing is if I add a domain like xxx.com to my yyy.com both will be
directed
to
Kudos, kudos, kudos to the people who developed this webmail application and
kudos to people who contributed plugins. Truly an easy program to install.
The plugins are endless and also simple to install and configure.
An excellent PHP application, highly recommended for anyone that needs a
powerfu
Try:
$_SERVER['HTTP_REFERER']
You misspelled it...
- Original Message -
From: "Larry E. Ullman" <[EMAIL PROTECTED]>
To: "cab" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, June 09, 2004 8:46 AM
Subject: Re: [PHP] previous page
> > Thanks all makes sense, but, if I add th
Since PHP is parsed on the server and not on the client machine, you should
be getting the server time. You can figure out in which TZ the server is by
comparing it to the time where you are.
Steve
- Original Message -
From: "Alex Hogan" <[EMAIL PROTECTED]>
To: "PHP
lol -- If I get email not intended for me, it is now MY property and I'll
darn well send it, copy it, distribute it as I see fit. Kinda like getting
stuff in the mail you didn't order...
And I guess the admins finally did something about those two autoresponders.
THANKS!!
- Original Message --
, CF, Perl) deployment time is about
the same. Maybe a little longer for Perl.
All of the 4 languages have plenty of documentation written about them.
I do like CF's ability to just name data sources on the server and reference
them that way. Think ASP can do the same, not sure.
My 2 cents...
Steve
e it makes sense.
Steve
- Original Message -
From: "Bob Lockie" <[EMAIL PROTECTED]>
To: "php-general Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, June 11, 2004 9:07 PM
Subject: [PHP] Header target?
> Is it possible to specify the target frame in a "
did you set up the mime types in apache? did you restart apache?
- Original Message -
From: "Marlene Thoms" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 12, 2004 12:37 AM
Subject: [PHP] Installation Question
I am running Windows XP and have installed Apache2, MyODBC,
Yes, pardon me for actually providing to the spirit of this list, to help
people find ways to meet their objectives. Just saying "no" isn't very
constructive, now is it? :-)
"Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Ste
You need to quote the $user:
$query = "select * from quoteprefs where salesman = '$user'";
- Original Message -
From: "Robert Sossomon" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Monday, June 14, 2004 2:44 PM
Subject: [PHP] Erroring out?!
> I am trying to figure out w
Did you try to just echo the javascript statements instead of trying to use
the header? Should have the same effect.
- Original Message -
From: "Robert Sossomon" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Monday, June 14, 2004 2:32 PM
Subject: [PHP] Load a frame and work
query didn't
return data.
In your case, missing the quotes on $user, you won't return data from the
query because the query is in error.
Steve
- Original Message -
From: "Robert Sossomon" <[EMAIL PROTECTED]>
To: "'PHP List'" <[EMAIL PROTECTED]&
I've forgotten how to assign something like this...
$someStr = EOF>>>"
bunch of raw non-echo'd html
"
EOF>>>;
But can't seem to get the right syntax. Tried looking in the manual, but
don't even know what I'm looking for!
TIA,
Steve
What are you outputting? html, text, email body...??
- Original Message -
From: "Phpu" <[EMAIL PROTECTED]>
To: "Oliver Hankeln" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, June 17, 2004 9:06 AM
Subject: Re: [PHP] Problems with arrays
> I've tried this but it is not workin
Can you give us the code from to ?
- Original Message -
From: "Phpu" <[EMAIL PROTECTED]>
To: "Steve Douville" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, June 17, 2004 9:14 AM
Subject: Re: [PHP] Problems with arrays
> I want the
you don't need to
set $InputString at all in this loop, you could just use $element.)
$element) {
$InputString = "$element";
echo "$InputString\n";
}
?>
Hope that helps.
Steve
- Original Message -
From:
People with 10+ line sig's shouldn't talk about trimming posts... ;-)
(or did I misunderstand what you meant about trimming posts? lol)
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 24, 2004 9:36 AM
Subject: Re: [PHP] R: [PHP] H
There used to be a way that stripped something from a PHP binary that
drastically reduced the size of the cgi file. For the life of me, I can't
remember and can't find it on google anywhere. Anyone know what it is?
TIA,
Steve
Or if you wanted it to be pretty...
define('MY_DATABASE_USER', 'user');
define('MY_DATABASE_PASS', 'pass');
mysql_connect('localhost',MY_DATABASE_USER,MY_DATABASE_PASS);
- Original Message -
From: "John W. Holmes" <[EMAIL PROTECTED]>
To: "Michael Collins" <[EMAIL PROTECTED]>
Cc: <[EMAIL
I use two div tags, one encapsulating the page contents and one that holds
the image. PHP turns them on or off by echoing a javascript command at the
appropriate time when the data is compiled and ready to show.
- Original Message -
From: "Pierre" <[EMAIL PROTECTED]>
To: "'Egil Berntsen'"
I generally do all my program logic first then go to HTML. Once I start
HTML, I drop in the PHP stuff where I need it. I think, but am not sure,
that it also cuts down on processing time not having to parse out echo tags.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
as to support both Apache versions will be greatful when
1.3 falls away as most users move over to Apache 2 in time.
Steve
From:
Curt Zirzow <[EMAIL PROTECTED]>
Date:
Mon, 19 Jul 2004 23:05:50 -0400
* Thus wrote Oliver John V. Tibi:
Wow! And come to think of it, how did you do it? Or sho
tp://marc.theaimsgroup.com/?l=php-general&r=1&w=2
See
http://php.he.net/preg_match
and ternary operators in
http://us2.php.net/language.operators
for more info.
- steve
--
+--- my people are the people of the dessert, ---+
| Steve Edberg
Hi all,
Can anyone suggest a photo upload/framework type library I can incorporate
seamlessly into a PHP project I'm working on?
I'd like for users to have an elegant UI to upload photos of their vehicles
into my application. Mutli-file and progress bars would be a plus. I'm
looking to integrate
Recently, I've been doing a lot of benchmarking with Apache to compare
different OSes and platforms. I did a stock install of Ubuntu 7.04
Server w/ Apache2 and PHP5. To do the test, I used ab to fetch the
following document:
PHP Web Server Test
I ran ab in a loop 12 times with 10,000 con
How're you folks dealing with records that are auto incremented in MySQL
after a delete is made? I've noticed the only way to get a sequential order
back is to truncate the table completely.
Do you use logic in your code to find a missing ID and insert new records
based on that? Or do you just ign
Greetings,
I am running PHP 4.4.7 without the GD Library and need it to run.
I am very novice on PHP, and am using a Mac with 10.3.9.
Can anyone point me in the right direction?
Thank you so much,
--
Steve M.
I've been doing a bunch of reading about objects and overloading in
PHP5, but I've got a couple of questions that I can't seem to find the
answer to online. Suppose the following code in PHP5.2.4:
$name to $val...\n";
$this->{$name} = $val;
}
public functi
ost that old
(totters off to get some Geritol and scream at the kids on my lawn)
steve
--
+--- my people are the people of the dessert, ---+
| Steve Edberghttp://pgfsun.ucdavis.edu/ |
| UC Davis Genome Center
Does anyone know how to create a field based on a menu choice?
When the menu is selected, then another field is created with an associated
number.
For instance:
Selection = Collie Field = 1
Selection = AkitaField = 2
And so on...
Thanks,
--
Steve M.
Greetings,
I am attempting to alternate the colors of the container DIV. Anyone know
how to do this?
$optone
Edit
Delete
$study_title
$date
";
}
?>
Thank you very much,
--
Steve M.
I'm trying to install Pear on OSX, but http://go-pear.org/ doesn't
seem to be resolving. Pear manual states I should:
curl http://go-pear.org/ | php
but this fails and
dig go-pear.org
reveals that the name does not resolve. Is there a package somewehre
I can download and install?
--
PHP Gen
Hi all,
I'm contemplating on a proper way of handling a counter for profile
views on my auto dealership website. I'm currently confused with the
type of algorithm to approach this with.
Say a user has a registered session, and views profile a). I can
increment the counter for that vehicle. The us
mmand unknown"
error, type in "sudo chmod a+rx configure" and retry. Wait for the script to
complete.
6. Type in "make" and hit return/enter. Wait for the compile to complete.
Results, no compiled php to copy to!
Last login: Sat Oct 20 15:58:53 on console
Welcome to Darwin
Greetings,
I have a script that looks for the variable to be NULL and then execute. Is
there a way for the script to look for anything or something in the variable
and then execute?
Ex:
If ($a¹ == ANYTHING¹) {
some action
}else{
some other action
}
Thank you for any help.
--
Steve M.
Personally At 1:31 PM -0500 11/20/07, Jason Pruim wrote:
I prefer>Honestly for me... top posting,
side>On Nov 20, 2007, at 1:19 PM, Michael McGlothlin wrote:
posting.>>
>>I hate top posters. Pure evil.
-steve >>
7;=>'slurm', 'b'=>'fry', 'c'=>'leela');
$Keys = array_keys($NotJustNumbers);
$Count = count($Keys);
for ($i=0; $i<$Count; $i++) {
$value = $NotJustNumbers[$Keys[$i]];
if ($value == 5 && some_other_test()) {
s to count for something :-)
Please keep all replies on the list, Jochem. ;-P
HA! It was too good not to share.
Programming Rocks you say? It's not that old...
http://www.rocksclusters.org/wordpress/
:)
It appears to be a Friday...
- steve
--
+--
e using 0/1 does have the advantage of 'doing the right thing'
if a "if ($_GET['foo'])" creeps into your code, though. As would
using 'Y'/''.
That being said, I've used 0/1 along with y/n in the past; it depends
on whether I'm thinking l
Hi all,
Going to cut it short and to the point. Do most of you freelancers get
by with enough work that does not require front-end UI/design? Do you
find it easier to get more work when you're strengths in design are
just as creative as your programming capabilities?
These are questions I'm enter
7, Daniel Brown <[EMAIL PROTECTED]> wrote:
> On Dec 6, 2007 3:23 AM, Jochem Maas <[EMAIL PROTECTED]> wrote:
> > Steve Finkelstein wrote:
> > > Thanks for your humble opinions. Appreciate the feedback!
> >
> > humble?
>
> People on this list a
Hey folks,
One area I lack experience in is writting a solution to index/search on a
site. Would anyone be kind enough and point me in the right direction as far
as any books which discuss some simple solutions or articles/blogs on the
web? Clearly I'm not looking for anything as complex as Google
Hi all,
I'm having a brain freeze with some simple code that I wrote and now trying
to refactor.
I have a block of code that looks like this:
public function backup()
{
$fname = "$this->dbName.sql.$this->zip";
$this->cmd = "mysqldump -Q -u $this->dbUser -p$this->db
Hi everyone,
I was curious if anyone has had the opportunity to work with or for
heritage web solutions? If so, would you be able to share your two
cents with any experience with them?
Thanks!
- sf
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Thanks Tedd... looks like a promising link. I'll take a look!
On 12/12/07, tedd <[EMAIL PROTECTED]> wrote:
>
> At 5:36 PM -0500 12/8/07, Steve Finkelstein wrote:
> >Hey folks,
> >
> >One area I lack experience in is writting a solution to index/search on a
>
Hi folks,
Probably the most impressive application I've run into for the iPhone has to
be Facebook's implementation. I'm looking for ways to improve my application
to be as responsive as theirs. Unfortunately it has quite a way to go. Does
anyone know how this form of 'routing' works?
For instanc
d the
> entire page.
>
> Remember it's all just Javascript trickery with CSS that works great
> on Safari browsers (and works almost identical actually now in
> Firefox...)
>
> It's very easy to implement, I had some initial confusion too how it
> routes the requests
e's a possibly-useful article:
http://www.xmlhack.com/read.php?item=1681
Disclaimer: I've never used any of those tools, so YMMV, IANAL, RTFM,
LOL, etc...
steve
--
+--- my people are the people of the dessert, ---+
| Steve Edberg
de isn't an
exact cut-and-paste, as using single quotes (eg,
mysql_pconnect('$host', '$login', '$passwd') does not interpolate
variables, so that line will not work unless your username is
actually '$login', etc. Which it probably isn't.
makes sense.
--
Steve M.
that the user has the choice of any record. The idea
would be to order the content by the highest number.
I hope this makes more sense.
--
Steve M.
on 1/17/08 1:54 PM Richard Heyes ([EMAIL PROTECTED]) wrote:
>> > I am wanting to create an select menu for displaying the order of the ite
tion in name and order to update the database.
So far, I can only get one or the other. Is there a way to do this?
Thanks for your help.
--
Steve M.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
order in which each record will appear on
the page.
I hope this makes more sense. I wish I knew more, and then I would be able
to formulate my questions better. Thank you so much for your help.
Steve M.
on 1/17/08 10:07 PM David Giragosian ([EMAIL PROTECTED]) wrote:
> On 1/17/08, mike <
Greetings,
Can anyone point me in the right direction on this?
I want a link to an image that appears below the link after it is clicked. I
think it would be an ³if² statement, but I am not sure where to start.
Thanks,
--
Steve M.
Does anyone know if there is a way to move all the files in one directory
into another?
Thanks,
--
Steve M.
file.
I couldn¹t find anything like that there.
Thanks,
--
Steve M.
on 1/24/08 2:46 PM [EMAIL PROTECTED]
([EMAIL PROTECTED]) wrote:
> i believe you will find what you're looking for by searching or
> browsing the documentation found at:
>
> <http://www.php.net/manual/en
xt to nothing.
The cronjob could be written in any language, but since this is a PHP
list you'll have to promise to write it in PHP ;)
steve
--
+--- my people are the people of the dessert, ---+
| Steve Edberghttp://pgfsun.ucdavis
,
--
Steve M.
I think I may have written the question wrong. I only want to display the
first line. It is a news story with a headline. I only want to display the
headline in the link.
The output I want is:
The
But I am getting:
The file looks like this.
Does that make more sense?
Thanks,
--
Steve M.
on
Is it possible to read each line of data from a file?
I have a text file that has several lines on it. I only want to display the
first line only.
The
file I have
looks like this.
But outputs:
"The file I have looks like this."
Here is my code:
Breaking News
Please che
quot;);
$filehead = fgets($fh);
fclose($fh);
echo "
$filehead
";
}
}
echo "
";
// close directory
closedir($dh);
}
}
?>
Thank you,
--
Steve Marquez
quot;>$filename</a>
WARNING: This link will not be available anywhere else.
";
} else {
echo "Possible file upload attack!\n";
}
echo '';
echo 'Here is some more debugging info:';
print_r($_FILES);
print "";
?>
Thanks
1301 - 1400 of 1688 matches
Mail list logo