Hi,
On my local test server (PHP4.0.1, FreeBSD, MySQL), when I
get a general error (bad code) it reports "error on
on line 1".
It allways says "line 1", even if it's line 4028.
I've had experience with this happening if there is a
structure problem with { brackets } missing (on any server)
A urgent question does, the follow work on sun solaris. php +
postgresql + expat + saboltron
--
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 PROTEC
On 24-Jul-2001 Chris Cocuzzo wrote:
> hey-
>
> I want to select the oldest show from a database to display on my main page,
> since the oldest show is also the show happening closest to any current
> time(if that makes sense...). I included a timestamp field in my table of
> shows in anticipatio
On Tue, 24 Jul 2001 15:57, Chris Cocuzzo wrote:
> hey-
>
> I want to select the oldest show from a database to display on my main
> page, since the oldest show is also the show happening closest to any
> current time(if that makes sense...). I included a timestamp field in
> my table of shows in a
So sprach »PHP Junkie« am 2001-07-23 um 21:39:07 -0400 :
> I'm taking in first name and last name data into a MySQL db through a
> form. Users sometimes don't capitalize their first and last names when
> entering the data. Is there a function to clean this up for
> consistency? If so, what is th
hey-
I want to select the oldest show from a database to display on my main page,
since the oldest show is also the show happening closest to any current
time(if that makes sense...). I included a timestamp field in my table of
shows in anticipation of checking that to find out what was the oldes
Only use hide(), show(), block(), etc. if you want an "ordinary"
htmlpage to be shown. If you on the other hand want the values of form
elements to change you should do something like this:
function fillForm(){
document.form_name.txt.value = document.form_name.a_selection.value;
}
On 23-Jul-2001 Matt Greer wrote:
> I don't think that's the best subject, but I'm not really sure how to phrase
> it.
>
> I'm not familiar with php's image capabilities. I've read about them a bit,
> but never really used them.
>
> I'd like to have an image that when accessed would cause php to
Hi
Just wanted to ask the gurus on the list when they think that the ISAPI
version of PHP for IIS/Windows will be stable enough for use in a production
environment. I'm doing some rough tests with ISAPI about 3-4 times faster
than CGI (which is comparable to native ASP!). Ball park figure that's
On Tue, 24 Jul 2001 14:10, Chris Cocuzzo wrote:
>
> - Original Message -
> From: Christopher Ostmo <[EMAIL PROTECTED]>
> To: Chris Cocuzzo <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday, July 23, 2001 10:38 PM
> Subject: Re: [PHP]MySQL error, what's wrong here..
>
> > Chris C
maybe my sql syntax is completely wrong, but the "$id" part was a random
number i generated, and then I was saying WHERE songid(which is the database
field) is equal to $id. is that the wrong way?
the reason why it's songid in that second tag is because I wanted the
random number to indentify th
On Monday 23 July 2001 19:00, Rehuel Lobato de Mesquita wrote:
> I have a mySQL table, where the ID field is an auto increment number
> (INT(2)). I have a query that selects 2 colunms in the table and the
2 digits isn't much...
> lists them
> But only the items with a double digit id are displ
I want to set up a script that sends a bunch of emails - pauses - and
resumes until all messages are sent.
The way this will happen is that a person will create the newsletter, check
it, and then press the "Send" button which will start the process of sending
the mail in bunches. How do I get a s
In the comments on the php.net pages, i found a few, but i gave up on using
pdf within php, because you had to pay about a thousand odd dollars just to
use the thing, so be prepared to put some cash in to it :D
- James "ReDucTor" Mitchell
- Original Message -
From: By Proxy <[EMAIL PROTEC
Casey,
You need to loop around on the next page to find the variables - they are all in
HTTP_POST_VARS:-
while (list($key, $val) = each($HTTP_POST_VARS)) {
print "Key = ".$key." Value = ".$val."";
}
Chris
[EMAIL PROTECTED] wrote:
> Hi,
>
> I'm trying to access variables coming in through
Hi. I have just started to play with PDFlib, but the manual and php.net
notes are not, to my simple self, particularly digestible. Does anyone have
any links to any tutorial pages or any handy hints they could point me to?
Cheers
Lee
--
PHP General Mailing List (http://www.php.net/)
To unsub
I think ucfirst() only does the first character of the string...
ucwords() will do all the parts of the name.
The only shortcoming I've found is if people put in a middle initial and
add a period to it, or put a nickname in quotes... ucwords() skips
those.
-Original Message-
From: Ope
Hi,
I'm trying to access variables coming in through a form. I have assigned them
dynamic names on the form page (e.g., $username, where username can change).
Now how can I access these variables on the next page? I tried:
$($people["username"])
where username is a field and people is a
Test: Ignore, just like the subject says.
--
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]
The function that you want is called: ucfirst()
http://www.php.net/manual/en/function.ucfirst.php
To make sure that string are consistant you might want to convert all
characters in the string to Lower case first then call this function. This
will ensure that stuff like "JoHn sMITH" gets convert
Chris Cocuzzo pressed the little lettered thingies in this order...
> alright, new problem, no more errors, but there's just nothing...here's the
> code:
>
> $query = "SELECT name FROM mp3 WHERE songid = '" .$id."'";
>
> http://www.fplg.net/stream.php?songid=2"; class="hov1">
>
Uhh... maybe
I know this one will be an easy one ...
I'm taking in first name and last name data into a MySQL db through a form. Users
sometimes don't capitalize their first and last names when entering the data. Is
there a function to clean this up for consistency? If so, what is the name of the
functio
Go find some safe lists, not a list like this...
- Original Message -
From: Marty <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 11:00 AM
Subject: [PHP] The Program!
> Several months ago, I made a conscious decision not to
> delete what I figured was just an
Several months ago, I made a conscious decision not to
delete what I figured was just another "junk" e-mail.
That decision has changed my life. Here you have the
very same opportunity in front of you. If you take
just five minutes to read through the following
program you won't regret it.
On Wed, 25 Jul 2001 01:53, Dan Krumlauf wrote:
> news_publish.php
> ***
> $templine = preg_replace("/()(.*?)(<\/NEWS>)/i","\\1$news\\2",
> $templine));
>
> Parse error: parse error in /php/work/boz/news_publish.php on line 8
I think you have one too many closing brackets. May I sugg
I want to highlight some keywords in a text without losing its case.
How do I do that? I have something like the following:
$keyword="something here";
ob_start("highlight_keyword");
?>
just some text
to get it to grab the text and highlight it
Ok, since I've posted questions about this on a few occasions, I thought I'd be kind,
and share the solution I have found to creating dynamic thumbnails from images stored
within a MySQL database. For the sake of brevity, I will only show an example for
jpeg...
To begin with, add your image to
Hiya all.
Doing the usual web based mail system.
How can I check to see if a email has an attachment? Then download it if the
user clicks on it?
Preferably a class, documentation or something similar, if you have it.
Please don't link an RFC, I hate RFCs, it is like reading Aramaic upside,
I have a potential project coming up that would require a developer
well-versed in PHP. The site is largely an information site with
some ecommerce, but there will be various extras like membership
areas, password-protected logins, and other interesting things.
If you're interested, please r
In your code, you have the lines:
--
while($mp3d = mysql_fetch_array($result))
{
$mp3d = mysql_fetch_array($result);
?>
--
In the while control structure, you are fetching a result into $mp3d, th
alright, new problem, no more errors, but there's just nothing...here's the
code:
and here's what the HTML code looks like from the page when i test it out..
http://www.fplg.net/stream.php?songid=2"; class="hov1">
what's going on with that...
chris
- Original Message -
From
Try:
$query = "SELECT songname FROM mp3 WHERE sgid = '" .$id."'";
an SQL query requires you to quote strings.
james
-Original Message-
From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 6:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP]MySQL error, what's wrong here
I just maped a network drive, and it worked that way, so i guess i should
use system commands to map them, read them, then unmap :D
- James "ReDucTor" Mitchell
- Original Message -
From: ReDucTor <[EMAIL PROTECTED]>
To: Mark Roedel <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent:
Windows Machine
- Original Message -
From: Mark Roedel <[EMAIL PROTECTED]>
To: ReDucTor <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 6:56 AM
Subject: RE: [PHP] Networking
> > -Original Message-
> > From: ReDucTor [mailto:[EMAIL PROTECTED]]
> > Sent:
That didn't work, i am on a windows machine...and this is my personal
machine, so i don't wish to change to unix... :D but windows should have
more support for this then unix..
- James "ReDucTor" Mitchell
- Original Message -
From: Matthew Loff <[EMAIL PROTECTED]>
To: 'ReDucTor' <[EMAIL
Hi!
I'm trying to compile PHP 4.0.6 on RedHat 6.2. Running make, I get
the errors below. Anyone got an idea about what's wrong?
Configure ran without a problem, with these options:
--enable-bcmath --enable-exif --enable-ftp--enable-dba=shared --enable-dbx
--enable-magic-quotes
Alexander Skwar <[EMAIL PROTECTED]> wrote:
> Is there a PHP newsgroup around? I'm not talking about the ones at
> news.php.net, btw.
>
> Or is alt.php the "official" newsgroup?
the only thing resembling official newsgroups are those at
news.php.net.
jim
--
PHP General Mailing List (http://ww
the second method should be hide()
"Dc" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You will need to use DHTML with javascript. Try www.docjavascript.com and
> search for dhtml columns. I'm sure he has something about turning on and
off
> the display of it
the server is telling me line 43(which starts with $mp3d) is not a valid
mysql result resource. what am i doing wrong??
chris
--
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 adm
Just a note about this: I am starting to play with the base64_encode
function It does indeed create a bigger string than the original, *BUT*,
I've also found that if you use the following:
$img = gzcompress(base64_encode(fread(fopen($userfile, "r"),
filesize($userfile;
your end result
You will need to use DHTML with javascript. Try www.docjavascript.com and
search for dhtml columns. I'm sure he has something about turning on and off
the display of items.
The basic idea is you will change the display properties from none to block
and vice-versa.
example
function show() {
rEl
have you tried giving the absolute path to the included file?
include("/some/path/to/a/file.php");
--
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-796-9023
email: [EMAIL PROTECTED]
> -Original Message-
> From: Unni [mailto:[EMAIL PROTECTED]]
> Sent: Monday, Ju
I'm not sure that your construct will work; however, you could always do
echo $HTTP_POST_VARS[$table_array[$iCnt][0]];
in place of 'echo $$var' or
$var = 'HTTP_POST_VARS';
echo ${$var}[$table_array[$iCnt][0]];
When using variable variables, the array index - here, 'ld_v
Hi Folks!
Is there a PHP newsgroup around? I'm not talking about the ones at
news.php.net, btw.
Or is alt.php the "official" newsgroup?
Thanks,
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.digitalprojects.com |
the lib directory is under the root directory, or the www directory, where
all the normal files have been put. i figured out that the include worked
better when I specified the entire system path.
chris
- Original Message -
From: Unni <[EMAIL PROTECTED]>
To: Chris Cocuzzo <[EMAIL PROTEC
I don't think that's the best subject, but I'm not really sure how to phrase
it.
I'm not familiar with php's image capabilities. I've read about them a bit,
but never really used them.
I'd like to have an image that when accessed would cause php to kick in and
do a few things before sending the
Hi Jeff,
I didn't get your question. Can you elobrate little bit more, if
possible? What is the input and what is output you are expecting and
what do you want to do in the process?
Thanks.
Jeff Lacy wrote:
> Hello Everyone,
>
> A client of mine is working with excel, and I need to move th
Is the lib direcotory under the working directory, I mean, if your
program is excuting under temp directory, the lib directory has to be
below temp directory. If you are running this program from the root
directory then lib has to be below root directory.
Your code looks good to me.
One more t
> -Original Message-
> From: ReDucTor [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 23, 2001 5:20 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Networking
>
>
> Hey does any one know if it is possible to do something like
> read stuff thro file and printer sharing on a remote pc, i tried
> -Original Message-
> From: Rehuel Lobato de Mesquita [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 23, 2001 12:00 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Single Digit in Double digit column
>
>
> I have a mySQL table, where the ID field is an auto increment
> number (INT(2)). I
I don't see why you wouldn't be able to access that share... Did you try
escaping the path?
e.g. chdir("computer\\dir");
-Original Message-
From: ReDucTor [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 6:20 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Networking
Hey does any
Hello Everyone,
A client of mine is working with excel, and I need to move the data from
excel to something php can deal with a little better. Naturally, I figured
using .csv would be easiest, but I am running into several problems.I
can get around them, but I need a regular expression (and
Hi Dan,
try changing:
$tempfile = fopen ("$filedir" . "/" . "$filename" . ".html", "r") or die
To:
$tempfile = fopen ($filedir . "/" . $filename . ".html", "r") or die
for starters ;)
James.
"Dan Krumlauf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> ne
hey-
I have a piece of code which does a simply INSERT query into an mp3 table.
I've tested it out, and it completes the query, however there is one bug
that I just have no clue about.
this code does not work when i try to connect to the db:
include("lib/db_config.php");
$connection = db_connec
...None of them will. This is not a part of IMAP protocol; it is part
of the mail server, and each server does that in its own way.
On a brighter note - if you use qmail, there is a very nice patch for
it that will allow to store users in a mysql database, so you can use
php to add/delete users w
Hi !!!
I know maybe this is not the right place to make this question but I have
been a PHP user for long time and this list had been very helpful.
I want to create a form which once you select a radio button or a drop down
menu display the proper fields according to the selection.
Let say that
Please forgive my probably newbie question...
I am cycling thru my database using a SQL describe statement and then
am getting values from a form based upon the field name I find. This
is working up 'til I try to read the form data.
I have defined a variable like this:
$var = $prefix.$ta
Sorry to again bring up the subject, but could somebody please help me with
file uploads. I have written the script below, but it doesn't work properly.
please help. Alternatively, could somebody give me a simple upload script.
My system is Win 98, Apache 1.3.17, php 4.0.5, IE5. The code is below.
I had the same problem when using JPEG, but having a white pixel in the
picture solved it. But that did obviosly not solve your problem. Perhabs
this is due to "bug-version" of GD library, have you tried a newer one?
Does this also happen if you use JPEG and GIF files?
Let us know if you find sol
Hello Steve,
Thanks for the response. I tried to reply to this earlier, but seems like
Mozilla ate it. :(
Steve Brett wrote:
> wouldn't the structure of the database be determined by the fact you have a
> many to many relationship ?
> i.e. the two tables would decompose into three with a 'li
Hello,
Does anyone know if there's a GPL author class out there?
There are online book stores & bibliographies all need to manage author names in
a similar way (I would think), and I'd just like to not recreate the wheel if I
don't have to.
Mike
--
Mike Gifford, OpenConcept Consulting, http:
Hey Kyle...
Try "\r\n" instead of "\n"
I had the same problem, and this fixed it for me! (someone on the net tipped
me on this one!)
Stretsh
"Kyle Smith" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I made this code for a simple for (the end of it) but what
guys, I don't know If this is the rigth place to ask this question, but
please help me!
I have a mySQL table, where the ID field is an auto increment number
(INT(2)). I have a query that selects 2 colunms in the table and the lists
them
But only the items with a double digit id are displayd. it
Hi,
Does anyone know where can I find documentation or example scripts for a zip code
locator. I'm looking for something that will list
other zip codes within a number of miles radius of the zip specified.
Thanks!
Vince
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mai
ok i dont know the first thing about data bases so could someone please guide me
through the process of making a score board for a flash game i have made with the
variables $name and $score??
(note: i have hosting at f2s.com so i have to use myADMIN)
-legokiller666-
http://www.StupeedStudios.f2
Yamin Prabudy pressed the little lettered thingies in this order...
> anybody know about the Luhn algorithm ??
> how can i do that in php
>
> yamin
>
http://www.zend.com/codex.php?id=31&single=1
Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutti
Is
output_buffering = On
set in the php.ini file?
If it is set to on, no content or headers are sent back to the browser until
the whole page has been processed by PHP.
Best Regards,
Patrick Lynch.
Eirco
Web: http://www.eirco.com
-Original Message-
From: Andrew Brampton [mailto:[EM
Your line in in news_publish.php is:
while($templine=fgets($tempfile, 4096) ) {
if you want to test if $templine is equal to fgets($tempfile, 4096) then you
should use 2 equal signs. So,
while($templine==fgets($tempfile, 4096) ) {
1 equal sign sets the value of the right side to the left.
HTH
> -Original Message-
> From: Dan Krumlauf [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 24, 2001 11:24 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Why wont this work?
>
>
> news_publish.php
> ***
>
> [snip]
>
> $templine = preg_replace("/()(.*?)(<\/NEWS>)/i","\\1$news\\2"
news_publish.php
***
)(.*?)(<\/NEWS>)/i","\\1$news\\2",
$templine));
print ($templine);
}
fclose ($tempfile);
}
$template_dir="/php/work/boz";
$template_filename="news";
$news="SOME STUFF GOES HERE BUILD IT AS A VAR";
DoTemplate($template_dir,$template_filename);
?>
***
HI,
I would like to know how to add a system user using php. etc. adduser
mark..and then passwd mark -->password --> password.
Thank you
Mark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Unless you are sending HTML mail, you need to use newline - not BR
Best Regards,
Patrick Lynch.
==
Eirco
==
-Original Message-
From: Kyle Smith [mailto:[EM
I need to learn to stop posting things over the weekend since they
rarely get a response. Can anyone help with the below?:
I have the following code that takes an existing image, creates a new
one from it and writes some white text on top of that image:
Problem is, the "white" text isn't whit
Hello Kyle,
Tuesday, July 24, 2001, 1:45:00 AM, you wrote:
KS> is there a code to show a users screen resolution and/or make a webpage go to a
certain page of the site depending on the users screen resolution?
KS> -legokiller666-
KS> http://www.StupeedStudios.f2s.com
KS> New address new s
What you are probably looking for is:
http://www.php.net/manual/en/class.com.php
Make a COM object out of your VB DLL (more info on this is available on a VB
faq). You can use the functions on the page above to access the
functionality of the COM object.
Best Regards,
Patrick Lynch.
==
Am Mittwoch, 18. Juli 2001 14:50 schrieb Wee Chua:
> Hi all,
> I need a little help from you guys. Can anyone tell what is the best
> software for sending million emails at a time or something
> like that?
sendmail
--
mfg Gregor Welters
--
PHP General Mailing List (http://www.php.net/)
To un
Hi Kyle,
I use the following: