I would agree. I've had clients hosted on pair for quite a while.
They are still using PHP 3 however.
Jeff Oien
> while we're on this topic, i'd suggest people take a look at pair networks:
>
> http://www.pair.net
>
> i've had some good experience with t
I went through this installation process to install PHP4 on a pair
server. When I try to run a PHP script I get an internal server error
with this: Premature end of script headers: /usr/www/users//cgi-bin/php4.cgi
What should I do from here? Thanks.
Jeff Oien
--
PHP General Mailing List
Wow, my server is being upgraded today. I did all that for nothing.
How do I undo what I just did? I checked this morning and PHP3
was still in use on my server. That's why I tried to install PHP4.
Jeff Oien
> Don't reference the absolute path to php4.cgi in your .htaccess
> On Wednesday 21 February 2001 20:54, Jeff Oien wrote:
> > I would agree. I've had clients hosted on pair for quite a while.
> > They are still using PHP 3 however.
> 'almost complete control of the server' includes the ability to compile your
> own PHP and
Just wanted to say pair.com upgraded my server today and
it went so smoothly I didn't even notice it. They now have
PHP4 on my server. pair.com is a great hosting service as
long as you don't need hand holding or super quick tech
support.
Jeff Oien
> > I went through this inst
Same thing happens to me:
http://www.webdesigns1.f2s.com/remote_addr.php
Jeff Oien
code:
> At 09:54 AM 2/23/2001, Rosen wrote:
>
> is the machine that your browsing on the same machine that you have your
> serving software on?
>
> ~kurth
>
>
>
Is it possible to target a frame in the Location: of
a header? Sorry if this has been brought up a
million times before.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
Could you give me some URLs for tutorials related
to cookies and good reference material?
One question I have is can a cookie never expire?
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
have:
$string_new = str_replace("\n", "", $string);
How can I augment this to not replace:
\n
\n
Thanks.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the li
> On 25 Feb 2001 10:34:27 -0800, Jeff Oien <[EMAIL PROTECTED]> wrote:
> >I would like to get rid of \n characters unless there
> >are two or more in a row. So for example if there
>
> The Perl-compatible regular expressions support lookahead and look behind:
>
&g
That almost works. The two \n in a row are on new lines.
So it's
\n
\n
intead of \n\n. If that makes any sense.
Jeff Oien
> Or you could just do this:
>
> $str = "abc\ndefg\n\nxyzpqr\njklmno";
> $str = ereg_replace("([^\n])\n([^\n])", "\\1 \\
> No, that doesn't make any sense whatsoever :)
>
> A \n *is* a new line. I can only guess you're getting confused because
> there's \r's as well as \n's in the string. Try this:
>
>
> $str = "abc\r\ndefg\r\n\r\nxyzpqr\r\njklmno";
> $str = ereg_replace("([^\r\n])\r\n([^\r\n])", "\\1 \\2",
ibed. Thanks! The other
troubleshooting examples were helpful too to know what's
going on with those characters.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
http://www.f2s.com/
is another option.
Jeff Oien
> Hi everyone,
> Can anyone tell me where can i find a place where to put my PHP/MySQL
> applications for free?
> Many thanks
> Bye
> Bruno
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
I started with this:
http://www.php.net/tut.php
went from there. Also
http://www.thickbook.com/
has some good stuff.
Jeff Oien
> Hi there,
> Iam new to the world of PHP, and after my boss told me to learn PHP and MySQL, I
> found my way here.
> I am gettign to frips with MySQL, a
This is driving me nuts. I really tried to figure it out
myself. I have a form for creating a table. The form
fields have field_name field_type field_length, and
checkboxes for not_null, auto_increment and primary.
When I check the primary key checkbox it always makes
the first field the primary
query. But when I use
and either leave it blank or enter "Y" it works fine! This
is really driving me nuts and I'm afraid it's going to be
something stupid staring me in the face.
Jeff Oien
> Quick example...
>
> CREATE TABLE user (
>userid int(10) un
I want to delete everything after a tab (or space) on each line of
a text file and can't figure it out.
An example line is
ARIA5.19-0.0625 -1.19 5.254.5 48.5100300
I want to the output to be
ARIA
Thanks.
Jeff Oien
--
PHP General Mailing List (http://www.php.net
This is just a guess but wanted to take a shot at it.
Something like
SELECT EventID, EventName, EventDescription,
EventStartDate, EventEndDate
WHERE EventStartDate > CURRENT_DATE
ORDER BY EventStartDate ASC
LIMIT 5;
How did I do?
Jeff Oien
> I have a mysql database of events. It contai
if (preg_match("/[a-Z],[a-Z]/",$text)) {
Can you tell me where I'm failing here. I want to do something
if the string has commas in between words with no spaces.
Like:
blah,blah,blah
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
If you put the date in MMDD format you can compare
the numbers.
http://www.php.net/manual/en/function.date.php
Jeff Oien
> Hi,
> Since there is no Date type in php, is there a way to compare dates?
>
> Something like:
>
> if ((3/8/2001) < (3/9/2001)){
>// Date
This is something I happened to come across. I have no idea
how it compares to others, just giving you the link.
http://wdvl.internet.com/Authoring/Style/Sheets/Book.html
Jeff Oien
> This is a bit off-topic, but I'm curious what you PHP'ers would recommend as
> a good HTML book.
LOL.
The evolutionists will tell you they came from worms. So
according to them the worm came first and it "evolved" into
something else. Tough to know where the egg came into
the picture according to that theory.
Jeff Oien
> Of course... where did you think they came fr
ror. Everything else works
fine.
Jeff Oien
if(${"infile".$i}!="none") $noinput=false;
if(${"infile".$i."_size"} > 200) {
echo "Sorry, file size limit is 2MB. ${"infile".$i} is too large.";
> ""Jeff Oien"" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I've modified a script for uploading multiple files
> > and am trying to get it to produce an error if the
> > size of the fil
MySQL by Paul DuBois is a very good one.
Jeff Oien
> hi,
>
> i'm looking for some good tutorials / articles / books on database
> design, no, i'm not talking about the classic employee contact database
> that nearly every site has lingering somewhere... i'm af
then create
a report for the hours that I haven't been paid for yet. How do I
-best tell the database when I've been paid
-there may be more than one entry for each day
-create a report for the dates since I was last paid
Jeff Oien
--
PHP General Mailing List (http://www.php.ne
ORDER BY hits
default is ascending (ASC). Otherwise
ORDER BY hits DESC
Jeff Oien
> hi
>
> I have a database with some urls and numbers. There are currently 2 records
> in the database. I wanna sort them by the numbers. How should i do it?
> my table is like
>
> name
I'm curious as to why you need to combine them. Wouldn't
it be easier just to display the images side by side?
Jeff Oien
> We always use 0-9 images to generate the image counter but this image
> counter contains more than one image. Does any body know how to combine
> these
Could anyone help me out with how to print the entire contents of a
database as an Excel file? I'm familiar with the header:
header("Content-Type: application/vnd.ms-excel");
just not sure how to go about it beyond that. I have this code and
am not sure what do do after it. Th
pful for someone new like me.
Jeff Oien
> I know very little about php, but since you have already received a bunch of
> useless answers, I thought I add my guesswork.
>
> In php 4 you can access MS documents through Microsofts OLE interface. That
> means you can manipulate
les, but if there
> was a preference, I would probably prefer a more stable place that's not
> on/offline a lot.
>
> Any links/help is much appreciated.
Not sure about stability but here is one in the UK:
http://www.f2s.com/
Jeff Oien
PHP >start here - Web site coming soon
--
http://www.fatbrain.com/
http://www.booksamillion.com/
Jeff Oien
PHP >start here - Web site coming soon
>I actually think this is the book I have been waiting for. A bookstore in
>New Zealand told me not until March 2001. It must be pretty good, all the
>Sams books are. The only prob
>From the doc:
---
How can I remove the file extensions...
...from my URIs in a practical file-based web server?
If you are using, for example, Apache, you can set it
up to do content negotiation.
--
How is this done?
Jeff Oien
> On 3/20/2001 at 6:49 PM Jeff Arm
If you have time please take a look and let me know
there are any corrections you would make in terminology
and accuracy. I'm fairly new to PHP. I want everything
to be correct.
http://www.webdesigns1.com/php/tutorial_test.php
Jeff Oien
--
PHP General Mailing List (http://www.php.net
When I try to run a PHP script through a Web browser it just
displays the code. I did a clean install of W2K and installed
Apache. I copied the php.ini to the WINNT and system folders.
Not sure where to go from here.
BTW how do you open a command window in W2K? Thanks.
Jeff Oien
--
PHP General
I got it to work. I would still like to know how to open a command
window in W2K though.
I had a reference to d:/php4/ instead of d:/php/ which is where I
have it.
Jeff Oien
> When I try to run a PHP script through a Web browser it just
> displays the code. I did a clean install of W
Here are some recommendations:
http://www.webdesigns1.com/php/books.php
Jeff Oien
> Hello
> Could I get a recommendation on some good starting PHP books?
> Thanks
>
> --
> Later Days:)
> Michael Clesceri
>
> ""Perfection (in design) is achieved not when
You need to use style sheets:
http://www.awlonline.com/cseng/titles/0-201-41998-X/liebos/
http://www.builder.com/Authoring/CSS/?tag=st.bl.7258.dir1.bl_CSS
http://www.wdvl.com/Authoring/Style/Sheets/
Jeff Oien
> Hi,
>
> I would like to know how to make different link in different
Has anyone read this new book yet?
PHP and MySQL Web Development
by Luke Welling, Laura Thomson
http://www.amazon.com/exec/obidos/ASIN/0672317842/ref=ase_hotscrcomyourgui/1
07-0943347-2161363
Would be interested in hearing opinions.
Jeff Oien
--
PHP General Mailing List (http://www.php.net
n for lines to wrap in email.
Jeff Oien
http://www.webdesigns1.com/php/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
http://www.hotscripts.com/PHP/
Jeff Oien
http://www.webdesigns1.com/php/
> Can someone pass on the URL for searching for PHP shopping cart programs
> and shopping cart related questions.
>
> Many thanks...
>
> Todd
>
> --
> Todd Cary
> Aris
> this one and there are a few concerning issues.
>
> Regards,
>
> Joseph
(I'm a different Jeff) I searched through the archives and couldn't find
your message. I'm interested in this also. The PHP PGP tutorials
all deal with sending e-mail using PGP. I would like to be ab
to use Snoopy?
Thanks for any help.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ng I can think of with $url, curly brackets, backslashes
etc. What am I missing? Thanks.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> On Friday 19 April 2002 09:31, Jeff Oien wrote:
> > I have a script which retrieves the body of an email message from
> > a MySQL database to be sent to someone who applies using a form.
> > The script contains this:
> >
> > $url = " > href=\"http
> On Fri, 19 Apr 2002, Jeff Oien wrote:
> >> Use eval().
> >
> > I have $url (literally) embedded in some text in the database that is to be
> > sent as an email message. I'm using this and $url disappears with a blank
> > spot in the text:
> &
> On Fri, 19 Apr 2002, Jeff Oien wrote:
> >> Far better would be to put a placeholder in $body like @@@ and then just
> >> do $body = ereg_replace('@@@', $url, $body);
> >
> > That's giving me a blank also. The form for changing the email is
I have a site here that may be helpful:
http://www.webdesigns1.com/php/
Jeff Oien
> Hello all,
> I am a beginner of php/mysql and am looking for good books for beginners
> and mostly good online php tutorials. Anybody have any suggestions?
>
>
> --
> PHP Gener
I use this on a Unix server to get yesterday's date if it's a
Saturday:
if ($day == '6') {
$today1 = date("Y:m:d", mktime(0,0,0,$month,$day-1,$year));
}
But on my Windows 2000 machine it thinks it's 1999:12:05.
How can I do this on Windows? Thanks.
Jeff Oien
If I have two forms on one page that both use the same script how
do I get only the fields on one of the forms to be submitted? If that
makes any sense.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
> On Saturday 03 November 2001 11:28 am, you wrote:
> > If I have two forms on one page that both use the same script how
> > do I get only the fields on one of the forms to be submitted? If that
> > makes any sense.
> > Jeff Oien
>
> as long as you enclose
I have a number like this 0.51 and I would like it to display without
the leading 0. How can I do this? Thanks.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
PHP >start here
Internet resources and book reviews for those just starting out
with PHP and MySQL
http://www.webdesigns1.com/php/
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To cont
ays and it
always returns:
3\
What am I doing wrong? Sorry this is probably the 1000th time
this has been asked.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
products there are. I'm not sure how to set it up to
print every other like that.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
I don't know if this will be helpful but you can look at this
JavaScript code:
http://www.webdesigns1.f2s.com/js_typing_text.php
---
Jeff Oien
PHP >start here
http://www.webdesigns1.com/php/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTEC
y technical stuff
>
> ok thnx :p
I hope this site will be helpful:
http://www.webdesigns1.com/php/
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Try this:
http://hotwired.lycos.com/webmonkey/00/05/index2a.html
Jeff Oien
PHP >start here
http://www.webdesigns1.com/php/
> What is the best method for tracking a user through a website ?
>
> I want to assign a username to a user which I can call up at anytime.
> Should I use
I want to check if a variable contains a price, like
$19.99
It definitely would be a dollar sign, two integers a dot and
two integers. Here is what I tried which doesn't work.
if (ereg("\$([0-9]{2}).([0-9]{2})", $Price))
or
if (ereg("\$([0-9]{2})\.([0-9]{2})", $P
Could anyone point me to some good basic SSL tutorials?
I would like to be able to have people submit credit card
numbers for a site in the future that will be for a yearly conference
registration. Very simple but I don't know the first thing about
how SSL works. Thanks.
Jeff Oien
--
This code won't work. I'm trying to get an error if the username
is entered incorrectly but it won't go through the if brackets. I even
tried printing out $num and it's 0. I also tried
if ($num = "0") {
if ($num = '0') {
error message etc.
exi
> "Jeff Oien" <[EMAIL PROTECTED]> wrote:
> > This code won't work. I'm trying to get an error if the username
> > is entered incorrectly but it won't go through the if brackets. I even
> > tried printing out $num and it's 0. I also tried
&g
> H-
>
> Just a quick question.
>
> Is there any difference between using print or echo?
>
> >From what I have read and seen there isn't any.
> Than why the two different commands?
>
> Thanks.
> -Sterling
See this:
http://www.php.net/manual/en/function.print.php
"As for a print vs. echo
";
setcookie($cookie_name, $cookie_value, $cookie_expire, "/" , $cookie_domain, 0);
Thanks.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
> I'd really like to learn PHP but where ?
> I know some basic perl but havent lookt that deep in PHP yet. any leads ??
> =)
>
> sincerly // Ken
http://www.webdesigns1.com/php/
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTE
Last_Name1 C_Last_Name2 depending on how many Children
are signing up for something. So I need $y to represent the number.
Hope that makes sense. Thanks for any help.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
I like this idea but it's giving me a parse error on this code:
if (!{$C_Last_Name}{$y})
I'm looking at the other ideas also.
Jeff Oien
> > if (!$C_Last_Name$y) {
> > The form submitting information to this code has field name like
> > C_Last_Name1 C_Last
What I'm doing is having a form page ask, "How many
children do you want to sign up?" Then it spits out form
fields for as many children as they asked for. So each
field has name="C_Last_Name$x" and $x in incremented
for each child. Should I make it name="C_Las
I get a 30 timeout on the line indicated when executing this code
and can't figure it out. Does anyone know why? Thanks.
Jeff Oien
-
if ($missing == "1") {
echo "
Error
Error
Required inf
I know $Number_Children is 2. I printed it. And $z starts out as 1.
I don't think that's it.
Jeff Oien
> > while ($z <= "$Number_Children") {
> > >>error>if (${"element2$z"} == "select") {
>
> Looks to me like
I don't know. :) I tried again without $Number_Children in quotes
and still get the timeout but on a different line (3 lines down). It
seems it isn't necessarily a specific line causing it.
Jeff Oien
> Why is "$Number_Children" in quotes?
>
> On Mon, 16 Jul 2001, J
thing. :)
Jeff Oien
> I get a 30 timeout on the line indicated when executing this code
> and can't figure it out. Does anyone know why? Thanks.
> Jeff Oien
>
> -
>
> if ($missing == "1") {
>
> echo "
>
>
>
x27;ve had a couple other
problems and am wondering if there is a better way to do this
or if I have any syntax problems. Thanks.
Jeff Oien
$x = 1;
while ($x <= $Number_Children) {
if (${"category".$x} == 'SS KidZone - Kindergarten') {
if ((${"Grade"
I forgot to say I deleted tabs so that the width might fit in a
typical mail reader.
Jeff Oien
> This code assigns rooms to kids signing up for Sunday school
> at a very large church. Each subsequent registration is put into
> the next room on the list. It looks up in the MySQL databa
http://www.webdesigns1.com/php
Jeff Oien
> Can someone please make a list of the best places to learn PHP as I have 6
> weeks of school holidays and I want to put the m to good use (i have the
> PHP reference guide from www.oreilly.com and i have the big ass document
> files from
I want to replace a string like this 1B335-2G with this B335. So for all the
strings I want to remove the first character and the last three characters.
I'm not sure which replace function to use or how to go about it. Thanks.
Jeff Oien
--
PHP General Mailing List (http://www.php.net
Aren't the trims just for white space?
Jeff Oien
> since you know exactly which 4 characters you want to keep you can use a
> simple string trimming routine. I forget the name of the function in php
> but it's there and it'll be something like
>
> trimstring($
between each other.
Here is what I have for the first script/page after the form. I don't know what
to do after this on the second page in order to pass the variables on to it.
Thanks for any help.
Jeff Oien
-
$title
If you can see this message you are
One thing I would like to see is using PGP (or gnu) encryption on the server,
not via e-mail.
Jeff Oien
> Hi there,
>
> I'm currently in the process of writing a new book about PHP entitled PHP Exertion.
>
> I've read several other books, and none of them covered everyth
I've looked all over and can't find a content-type declaration for text.
This is my guess
header("Content-Type: text/txt");
but I'm not sure if this is right. I know this is more HTTP than PHP.
I want info to be displayed in a browser as plain text not HTML.
Thanks.
J
Is there a routine out there to strip all characters from a phone
number except the numbers? I was going to write my own but
figured there must already be one out there I can use. Thanks.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
name doesn't. Not sure what I'm doing wrong. Thanks.
Jeff Oien
while ($row = mysql_fetch_array($result)) {
$First_Name = $row['First_Name'];
$Last_Name = $row['Last_Name'];
$Address = $row['Address'];
if ((
Thank you. That worked and I'm sure will have made it work a lot
faster later on when there is a lot of data in the database.
Jeff Oien
> On Sat, 4 Aug 2001 12:40:42 -0500, Jeff Oien ([EMAIL PROTECTED])
> wrote:
> >After a sign up page I want to check if someone is already
Is there a prewritten function for capitalizing the first letter of each
word in a string except for the common words you wouldn't want
to capitalize in a title? Like
Come Learn the Facts From an Industry Leader
Thanks.
Jeff Oien
--
PHP General Mailing List (http://www.php.net
Fabulous. Thanks to Steve and Mark. Exactly what I needed.
Jeff Oien
> >Something like this, perhaps (untested):
>
> I needed this too so I just tested it.
>
> >function smart_ucwords($String)
> >{
> >
> > $ExceptionList = array('the
Apache and PHP4
on Windows 2000 Professional. Thanks.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
http://www.php.net/manual/en/function.header.php
> Hi,
>
> I am sure there is an easy way to do this...
>
> But when my script is done doing whatever I want it to do - RATHER than
> print text and all to a page, I want the browser (within the same window) to
> go to a specific URL
>
> Can this
You can read the notes lower on the page here to get a good idea:
http://www.php.net/manual/en/function.print.php
Jeff Oien
> I am fairly new to PHP Scripting, and I am learning from a book.
> Throughout the book, print is used as the basic command to output
> text/variables.. yet I s
I want to check if an uploaded file is an image. This isn't working.
Could anyone help me out?
if (!eregi("\\.gif$", $img1_name) ||
!eregi("\\.jpg$", $img1_name) ||
!eregi("\\.jpeg$", $img1_name)) {
error message
}
Jeff Oien
--
PHP General Ma
When using this command:
mkdir ("/usr/www/users//blah/blah/$username", 0777);
it sets it to nobody instead of my username. I'm then unable
to delete or modify files in that directory. Is there a way around
this? Thanks.
Jeff Oien
--
PHP General Mailing List (http://w
However even the permission of 0777 doesn't let me do anything to
the directory or files in it. I can't even chown or chmod anything in
it using Telnet once it's created.
Jeff Oien
> Jeff
> JO> mkdir ("/usr/www/users//blah/blah/$username", 0777);
> J
I have a user who is unable to upload files but I don't know where
to start with the troubleshooting process. I have this:
@copy("$img1", "/blah/$username/$img1_name")
or die("File upload didn't work.");
and they are getting the die message. All
I found the problem. A user was logged in under their username
with a different case (capital/small letters) and that caused a problem.
Jeff Oien
> I have a user who is unable to upload files but I don't know where
> to start with the troubleshooting process. I have this:
>
ound will be white. If this is possible what's the best
way to go about it? Thanks.
Jeff Oien
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
echo " | Next >>"; //no link
}
elseif ($photo_pos < $count) {
$next_pos = $photo_pos;
$next = $array[$next_pos];
echo " | Next >>";
}
Comments from more experienced programmers welcome. I don&
Could someone tell me how to sort this? Each $variable1 is a 3,4 or 5
letter string that I would like sorted alphabetically. I assumed "sort" would
do it but apparently it isn't the right type of array. Thanks.
$variable1 = split("\n", $variable);
Jeff Oien
--
PHP G
This didn't get answered before. I'm trying to sort an array but it
won't work.
$list = file('list_main.txt');
$list = sort($list);
If I print $list it gives me 1 and print $list[0] is nothing. The list_main.txt
looks something like this:
ABC
DEFG
HIJ
etc.
Jeff Oien
--
I have items from a form that will be in $_POST that I want to send on.
I'll be using this:
$arr = array();
foreach($_POST as $key => $value) {
$arr[] = $key.'='.urlencode($value);
}
$URL = "https://example.com/script.asp?".implode('&',$arr);
header("Location: $URL\n");
However, there are a
Does is_numeric include commas decimals and dollar signs?
How do I use this to error check form data? I'm having a hard time
figuring out what the correct syntax is for that application. Thanks.
Jeff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
1 - 100 of 145 matches
Mail list logo