Ramil,
Got that. thanks. Yeah, I mis-named a field in the seond table. Needed to name title
for district
$sql2 = "select * from ".$db.".".$table_GLOfficers." where title='" .
$mydata->district. "'";
Thanks for that. Getting late, i guess.
John
--
PHP General Mailing List (http://www.php.net/
On Sat, 25 Sep 2004 01:01:13 -0400, John Taylor-Johnston
<[EMAIL PROTECTED]> wrote:
> Hi,
Hi, the error on the line
line 101> while ($mydata2 = mysql_fetch_object($news2))
says that $news2 is null. The line
$news2 = mysql_query($sql2); //desc => z-a
probably didn't work. How about trying;
$n
Hi,
My question: can I open $table2 within $table1 - I thought so.
I thought I had this set up correctly. Sorry to throw all these lines of code at you.
But I need to situate the error for someone to see plainly what I'm doing.
I'm getting this error:
Warning: mysql_fetch_object(): supplied arg
Hello,
On 09/24/2004 11:16 PM, John Taylor-Johnston wrote:
I know there is a way to print to pdf. Wh«t about rtf?
I'm getting real tired of doing it myself. Must be an easier answer?
You may want to try this RTF generator class:
http://www.phpclasses.org/rtfgenerator
--
Regards,
Manuel Lemos
PHP C
Hi,
I am searching for a REAL simple templateing
class/package
I have googled for this and basically SMARTY and PAT
is too bulky, the people who will be using this script
will be pretty dumb and all I can trust them to do
would be something like this:
and the template should have a cach
I know there is a way to print to pdf. Wh«t about rtf?
I'm getting real tired of doing it myself. Must be an easier answer?
header("Content-type: text/rtf");
header("Content-Disposition: attachment; filename=directory.rtf");
echo
"{\\rtf1\ansi\ansicpg1252\deff0\deflang1033\deflangfe1033{\fonttb
Curt,
Thanks.
> > #mysql_select_db($db2,$myconnection2); #not necessary
>
> Why isn't this necessary? if you have just opened a connection you
> must select a database. Besides the fact that the second connection
> isn't necessary.
>
>From what I have experimented with, if I declare $db.$table in
One thing I forgot to mention that the files themselves will probably
run between 12 - 14 megs per pop before they even touch the mysql/php
server (this is all done by hand). I'm not even sure how much space
they will take up when being entered in to the database. On average it
should be about 15
Hi,
I have the following php page. The page just opens up blank and I assume I
made an error I cannot see. I'm new to php and any help would be greatly
appreciated:
http://www.corrige2.bluehill.com/pdfs";; //url where files are
uploaded
$absolute_path = "http://www.corrige2.bluehill.com/pdfs";;
it seems that php first ends output buffering and then calls then
destructs the objects. so the output buffering is still ended when the
destructor is calles. one has to unset the object to reverse that
order manually.
aRZed
If I remember correctly, there were a number of posts about this subj
Steven wrote:
Howdy,
I'm going to be writing an app for our company that handles
the day-to-day processes here and I have a question for the experienced
devs out here that would know the ins and outs of working with CMS and
good stats on what is needed for a server.
I wa
Howdy,
I'm going to be writing an app for our company that handles
the day-to-day processes here and I have a question for the experienced
devs out here that would know the ins and outs of working with CMS and
good stats on what is needed for a server.
I want to integrat
I discovered an interesting behavior, when ob_end_flush() or
ob_end_clean() is used in a destructor of an object.
I don't think it is actually a bug, so i decided to post it here.
$f = new foo();
// end of file
?>
this ends in an error:
Notice: ob_end_flush(): failed to delete buffer. No buffer
Hello,
On 09/24/2004 01:23 PM, Diana Castillo wrote:
for some reasons my mails I send to hotmail are never arriving, (using
mail($email,$subject_line,$msg,$headers);)
anyone ever heard of this?
If you are sending HTML only messages, that is not surprising because
HTML messages have to be properl
I have object A and object B that extended from object A and have it
Own abilities
and object C that extended from object A and have it Own abilities
I want to use the abilities of object B on object C and abilities of
object C on object B , but the problem that what found out is that I
must merge
Just FYI
I figured it out - there is an $options['canvas'] option which accepts,
amongst other things, a handle to an image resource. Trivial then to use
imagecreate() and imagecolorallocate() to create a white-background
starting point.
Sorry for wasting everyone's time
Cheers
Chris
Chris Dowe
The PHP Development Team is proud to announce the immediate release of PHP
5.0.2.
This is a maintenance release that in addition to many non-critical bug
fixes, addresses a problem with GPC input processing.
All Users of PHP 5 are encouraged to upgrade to this release as soon as
possible.
For
> for some reasons my mails I send to hotmail are never arriving, (using
> mail($email,$subject_line,$msg,$headers);)
> anyone ever heard of this?
>
>
What is in $headers?
Make sure the "From: " domain can be reverse resolved to the machine the
mail is being sent from. [EMAIL PROTECTED] will fai
Diana Castillo wrote:
for some reasons my mails I send to hotmail are never arriving, (using
mail($email,$subject_line,$msg,$headers);)
anyone ever heard of this?
Does the box that you're running php on have a dynamic address? Do you
have reverse DNS?
--
John C. Nichel
ÜberGeek
KegWorks.com
On Fri, 24 Sep 2004 18:23:39 +0200, Diana Castillo <[EMAIL PROTECTED]> wrote:
> for some reasons my mails I send to hotmail are never arriving, (using
> mail($email,$subject_line,$msg,$headers);)
> anyone ever heard of this?
Yeah, Hotmail will blacklist just about anyone these days. Legit or not
On Saturday 25 September 2004 00:23, Diana Castillo wrote:
> for some reasons my mails I send to hotmail are never arriving, (using
> mail($email,$subject_line,$msg,$headers);)
> anyone ever heard of this?
Check your mailserver logs.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open
Do you have reverse dns set up on your machine?
Jason
"Diana Castillo" <[EMAIL PROTECTED]> wrote:
>
> for some reasons my mails I send to hotmail are never arriving, (using
> mail($email,$subject_line,$msg,$headers);)
> anyone ever heard of this?
>
>
> --
> Diana Castillo
> Global Reservas
for some reasons my mails I send to hotmail are never arriving, (using
mail($email,$subject_line,$msg,$headers);)
anyone ever heard of this?
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 Ext 216
Fax : 00-34-915228673
email: [EMAIL PRO
Thomas Hochstetter wrote:
Should I redirect after the reading of the file? This somehow does not make
much sense ... I first need to let the user decide to download the file or
not.
No, you should output a html page containing:
download
Then, in downloadzip.php send the headers, build the zip and
Go it fixed. I used the same code to a degree, but use the array items as
needed by just accessing $val[1], $val[2] etc. so if I need a custom select
with in the loop I access the array
Insert into mytable (item,product) values ($val[1],$val[2]);
Dustin Wish
System Engineer & Programmer
INDCO Ne
> Well it was very close the only issue is the trailing comma on the
inserts.
> See below:
>
> INSERT INTO mytable (one,two,three,four,five) VALUES(14,Radial H714
> 155/80r13s,26,
> All Season
> S Rated
> UTQG: 380/A/B
> WSW: White Sidewall
>
> 4 groove version of all-season performance radial. The
Binay wrote:
But when after lotttsss of hair pulling couldn't make turck run with 4.3.8 ,
finally decided to check type (mode) of PHP installation. I m sorry for
convience caused.
I admire your attitude. Many others would have come out with a flame in
response to my message. Please let me tip
Guys
Without hacking the pear library, does anyone know of any way (using the
API) to change the background color of an image created with Image_Text
from black?
The bg is black because the image resource is created using
imagecreatetruecolor() which returns a black image - this is on some of
But Outlook Express, like most Microsoft products, use an embedded
version of IE to display HTML documents. Which makes sense, no sense
having two HTML rendering engines on the same box. I'm not sure why it
WOULDN'T send the post data if the HTML form in email was properly set
up with http://www.
> I was curious if anyone could help me. I need to write an insert to take
> data from a csv file to put into a MySQL db. I am not sure know to parse
out
> 5 items of the string at a time i.e. (1,2,3,4,5,1,2,3,4,5,1...etc) so that
> the five putted items get inserted everytime. Like:
>
> "insert in
On Friday 20 August 2004 16:28, Dustin Wish with INDCO Networks wrote:
> I was curious if anyone could help me. I need to write an insert to take
> data from a csv file to put into a MySQL db. I am not sure know to parse
> out 5 items of the string at a time i.e. (1,2,3,4,5,1,2,3,4,5,1...etc) so
>
I was curious if anyone could help me. I need to write an insert to take
data from a csv file to put into a MySQL db. I am not sure know to parse out
5 items of the string at a time i.e. (1,2,3,4,5,1,2,3,4,5,1...etc) so that
the five putted items get inserted everytime. Like:
"insert into produc
Sorry what I have is header('Content-Disposition: attachment; filename=' .
$relative_file); And changing that to fileName solved my problem perfectly.
Thanks a lot once again.
Divick Kishore
"Divick Kishore" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have
> header('Co
I have
header('Content-Disposition: attachment; filename=' . $fileName);
> Do you have
>
> header('Content-Disposition: attachment; filename=' . $relative_file);
>
> or
>
> header('Content-Disposition: attachment; filename=' . $fileName);
>
> ?
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote
Divick Kishore wrote:
Indeed you figured it right. I do have a new line at the top of the
Do you have
header('Content-Disposition: attachment; filename=' . $relative_file);
or
header('Content-Disposition: attachment; filename=' . $fileName);
?
--
PHP General Mailing List (http://www.php.net/)
doh!!
ta ;-)
S
ilvio Porcellana wrote:
$ok = setcookie("client_id", "argh", 259300); //* expire in a month ish
Nope, it expired a long time ago... :-)
Read the manual for setcookie:
http://php.libero.it/manual/en/function.setcookie.php (mainly the part about
the "expire" parameter)
HTH, cheers
Silv
On Fri, 24 Sep 2004 08:46:23 +0200, Gerrit P. Haase <[EMAIL PROTECTED]> wrote:
> Christian Stocker wrote:
>
> > Ever thought of reporting a bug to http://bugs.php.net instead of
> > trolling around here?
>
> > But I don't think, it's a bug, because --with-dom is enabled by
> > default, so ther
>
> $ok = setcookie("client_id", "argh", 259300); //* expire in a month ish
>
Nope, it expired a long time ago... :-)
Read the manual for setcookie:
http://php.libero.it/manual/en/function.setcookie.php (mainly the part about
the "expire" parameter)
HTH, cheers
Silvio
--
PHP General Mailing Lis
Indeed you figured it right. I do have a new line at the top of the
wrote in message
news:[EMAIL PROTECTED]
> On Fri, 24 Sep 2004 16:15:19 +0530, Divick Kishore
> <[EMAIL PROTECTED]> wrote:
> >Another problem is that when the file is downloaded a new
> >line character is added to the top of it
On Fri, 24 Sep 2004 16:15:19 +0530, Divick Kishore
<[EMAIL PROTECTED]> wrote:
>Another problem is that when the file is downloaded a new
>line character is added to the top of it unncessarily due to which it can't
>be opened with any image viewer.
>Once I reomove that newline character, it works fi
I've got this function in a class object, however the cookie does not
set even though £ok returns true !!! I've got cookies enables on all my
borswers (firefox, mozilla, opera , IE)..
any ideas !!
function updateClient($arr){
extract($arr);
//print_r($arr);
$sql = "update clients set
n
Thanks for pointing that out. But still it doesn't solve my problem.
Thanks for a prompt response.
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Divick Kishore wrote:
> > Hi,
> > I am a newbie to php so pls be gentle.
> >
> > I am having problems while downl
Thomas Hochstetter wrote:
Hi there,
I am (again) trying to download a file from off the server and force it to
use the download dialog box. I have been trying pclzip.lib for compression
and used my own headers (as depicted below). This version did zip nicely
and the files were intact in the tmp
Divick Kishore wrote:
Hi,
I am a newbie to php so pls be gentle.
I am having problems while downloading a file via this script. I am sending
the following headers and then a call to readfile function in the swcript.
This leads to opening of a download popup but the file name being shown is
the
Hi there,
I am (again) trying to download a file from off the server and force it to
use the download dialog box. I have been trying pclzip.lib for compression
and used my own headers (as depicted below). This version did zip nicely
and the files were intact in the tmp folder. But once I used th
On Fri, 24 Sep 2004 09:24:03 +0100, Chris Dowell wrote:
> I think you really need to contact your hosting company and berate them
> for lying to you.
>
> Like Jason says, the definitive list is from *your* php_info(), not the
> hosting companies - you might like to send them copies of both and
Hi,
I am a newbie to php so pls be gentle.
I am having problems while downloading a file via this script. I am sending
the following headers and then a call to readfile function in the swcript.
This leads to opening of a download popup but the file name being shown is
the name of the script fi
Christian Stocker wrote:
There's actually no --with-dom option at all, just --without-dom..
Master blaster, it seems you're one of those guys here who knows
everything about usage and misusage of PHP and its build system.
Probably you are also able to tell me what is the reason behind the
decision
Many thanks to all (especially Brad) for your input on this.
Although I have not got as far as producing PDFs I have managed to implement
output buffering and saving of generated pages under a hashed name, and of
course retrieving it instead of doing all the queries again. I've trimmed
slightly th
Well,
it could hardly mean that it is installed as sapi wouldn't it?
On Friday 24 of September 2004 10:19, Binay wrote:
> correct
>
> It show Server API CGI.
>
> So does it mean PHP is installed as CGI and not the apache module?
>
> Thanks
> Binay
> - Original Message -
> From: "Bost
I think you really need to contact your hosting company and berate them
for lying to you.
Like Jason says, the definitive list is from *your* php_info(), not the
hosting companies - you might like to send them copies of both and ask
them to explain the differences.
Cheers
Chris
missshus wrote:
correct
It show Server API CGI.
So does it mean PHP is installed as CGI and not the apache module?
Thanks
Binay
- Original Message -
From: "Bostjan Skufca @ domenca.si" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 24, 2004 1:21 PM
Subject: Re: [PHP] PHP 4.3.8 a
Hi,
I knew that Turck does not work in CGI mode. But didn't find it worth
checking cuz earlier it was working and my administrator said he only
upgraded the php and did nothing. So i presumed that PHP is still running as
apache module only.
But when after lotttsss of hair pulling couldn't make tu
Look at phpinfo() output.
Search for
Server API Apache 2.0 Handler
or
Server API Apache 2.0 Filter
or something about apachehook(s)
All above means it is installed as module
If you find something refering to CGI then it is installed as CGI (and not
$_SERVER, Apache environment and l
James Smith wrote:
Hi,
I'm having a problem with loading a page full of thumbnails.
I'm useing this to load each thumbnail.
header("Content-type: image/jpeg");
readfile ($dir."/thumbs/".$filename);
but, if your connection to the server is too fast (eg, your on a lan
or the same ISP with broadband)
Binay wrote:
Hi
How to check whether PHP is installed as CGI or Apache module?
Thanks
Binay
I assume this is a spin of from your thread on turck mmcache. I am
pretty sure you have not read the mmcache docs or searched for google
on this. Because there are countless articles on installing turc
Binay wrote:
So how to check whether php is installled as Apache module or CGI mode?
phpinfo();
Did you try out what I said in my reply to your Original Post?
--
Raditha Dissanayake.
http://www.radinks.com/sftp/ |
So how to check whether php is installled as Apache module or CGI mode?
Thanks
- Original Message -
From: "Bostjan Skufca @ domenca.com" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 24, 2004 12:30 PM
Subject: Re: [PHP] PHP 4.3.8 and Turck MMCache compatibility
> I
It works on php 4.3.8 and 4.3.9 fine (as server module it does, it does not
work as cgi though - as page states)
lp,
Bostjan
On Friday 24 of September 2004 08:29, Binay wrote:
> Hi
>
> I don't need everything i.e encoder, optimizer, accelerator etc. What i
> need is Loader which can decode the
59 matches
Mail list logo