php-general Digest 18 Apr 2005 21:09:12 - Issue 3405
Topics (messages 213254 through 213291):
ldap_connect error
213254 by: Steve Turnbull
Question regarding PDF creation
213255 by: Mário Gamito
213266 by: Jason Barnett
213286 by: Chris W. Parker
Re: How to
-Original Message-
From: Mike [mailto:[EMAIL PROTECTED]
Sent: Friday, April 15, 2005 9:43 PM
To: 'Dasmeet Singh'; php-general@lists.php.net
Subject: RE: [PHP] Setting permissions such that file can be included
but
not open directly
directly to private/includefile.php can run the
Kim Madsen wrote:
-Original Message-
From: Mike [mailto:[EMAIL PROTECTED]
Sent: Friday, April 15, 2005 9:43 PM
To: 'Dasmeet Singh'; php-general@lists.php.net
Subject: RE: [PHP] Setting permissions such that file can be included
but
not open directly
directly to private/includefile.php can
[EMAIL PROTECTED] wrote:
Hi there i have an error handler callback within an error class which is
also being used for pear errors. E_NOTICE and E_STRICT are still triggering
this callback method, so i have to make a check that the code is not one of
these. I have error_reporting to ignore both of
Hi
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
was libapache2_mod_php4 php4 php4-ldap ...
PHP works fine, and a test phpinfo() brings up all of the expected
parameters (at least I
Hi,
I'm using FPDF (http://www.fpdf.org/) to create a... PDF.
I'm trying to use a variable inside an instruction, but i'm getting
errors or malformed PDFs and i can't figure how to overcome them.
This instruction
$pdf-Cell(60,10,'Powered by FPDF.',0,1,'C');
inserts a line in the PDF, starting
already have i was hoping to avoid the if's. E_STRICT was throwing a
heap of suggestions for pear packages code ;)
On 18/04/2005, at 6:44 PM, Marek Kilimajer wrote:
[EMAIL PROTECTED] wrote:
Hi there i have an error handler callback within an error class which
is
also being used for pear errors.
I have a large group of email addesses serperated by commas. I need to trim
off the very last comma
$recipients = [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],
Also how would I add a space after every comma? to give
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
many
$recipients = '[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],';
echo str_replace(',', ', ', substr($recipients, 0, -1));
- Original Message -
From: Ross [EMAIL PROTECTED]
I have a large group of email addesses serperated by commas. I need to
trim
off the very last comma
use substr($recipients,0,1);
to remove the last char
and ereg_replace(,, ,,$recipients);
to add the spaces
Hope this helps
CK
On Mon, Apr 18, 2005 at 12:05:42PM +0100, Ross wrote:
I have a large group of email addesses serperated by commas. I need to trim
off the very last comma
$string = '4:gaming,5:hardware,3:software,8:security';
what is the best way to explode then loop this string after its taken apart.
output should be something like:
$id = 4
$cat = gaming
etc..
im just looking for the best/fastest way to do this. the string can grow to
200 or so bytes, maybe
Would it be better to store uploaded pdf, word, or excel documents in a
MySql blob field rather than keeping them in a directory?
I really want to secure the documents and limit document access to
specific users.
Curious
Dave
HTC Disclaimer: The information contained in this message
Dave Bosky [EMAIL PROTECTED] wrote in message
Would it be better to store uploaded pdf, word, or excel documents in a
MySql blob field rather than keeping them in a directory?
I really want to secure the documents and limit document access to
specific users.
Curious
Dave
(this post has been made to php-install aswell)
Hi Everyone. I'm having a little problem here. Was wondering if
anyone else had encountered this. Currently I'm building PHP 5.0.4
(issue is with .3 aswell) and it's being built on a RHES 3 update 3
machine.
The following freetype rpm's come
* Dan Rossi [EMAIL PROTECTED]:
already have i was hoping to avoid the if's. E_STRICT was throwing a
heap of suggestions for pear packages code ;)
So turn off error reporting for those levels:
error_reporting(E_ALL ~E_STRICT ~E_NOTICE);
On 18/04/2005, at 6:44 PM, Marek Kilimajer
Dan Rossi wrote:
already have i was hoping to avoid the if's. E_STRICT was throwing a
heap of suggestions for pear packages code ;)
That means you are using PHP5, so you can use second argument to
set_error_handler()
On 18/04/2005, at 6:44 PM, Marek Kilimajer wrote:
[EMAIL PROTECTED] wrote:
Hi
Mário Gamito wrote:
...
$pdf-Cell(40,10,'CV de ' . $full_name . ',' . 0,0 . ',C');
If I break down this argument to a simpler form, you are using:
$pdf-Cell(40,10,'CV de Mario Gamito,0,0,C');
You aren't supplying the last 3 arguments! What I *think* you're going
for instead here is:
how can I put the results from the following query into two arrays?
The only fields are 'name' and 'email'
$query = SELECT * FROM contacts;
$result= mysql_query($query);
$number= mysql_num_rows ($result);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
The only fields are 'name' and 'email'
$query = SELECT * FROM contacts;
$result= mysql_query($query);
$number= mysql_num_rows ($result);
[/snip]
Using * in a query like this is bad formspell it out
while($row = mysql_fetch_array($result){
$arrayName[] = $row['name'];
--
Greg Donald
Zend Certified Engineer
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Oops. Silly Gmail hotkeys.
What are you guys using instead of mysql_result() when using MySQL 4.1
and the 'improved' MySQL functions? mysql_result() went away and the
next best thing I can find is mysqli_fetch_array() with a little
iteration. Thoughts?
--
Greg Donald
Zend Certified Engineer
On Monday 18 April 2005 14:34, Sebastian wrote:
$string = '4:gaming,5:hardware,3:software,8:security';
what is the best way to explode then loop this string after its taken
apart.
output should be something like:
$id = 4
$cat = gaming
etc..
im just looking for the best/fastest way to
On Monday 18 April 2005 05:22, Reynier Perez Mira wrote:
Hi list:
I have this code that Works perfectly:
File: index.php
?
session_start();
echo a href=logout.php?sid=. session_id().Close session/a;
?
File: logout.php
?
session_unset();
session_destroy();
?
When user
Please, do not cross-post.
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-generalw=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
I guess Mailman fell asleep? :P
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-generalw=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
There are times when cross-posting is approperate, and times when it
isn't. In this case it's approperate.
In the case of replying to his cross-posting it isn't.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Adam wrote:
Hallo everybody,
hope I am writing to correct mailinglist(^_^*)...
Absolutely!
I have troubles with sessions and descructor in php5. Can not set session
variable in destructor when it's called implicitly. Do You know solution
please?
I think problem is that session is stored
I have searched for this in the FAQ's, News Archives and Googled for it
and cannot seem to find the answer. Please help.
I have a script that simply echo's a query string variable to the
screen. This works on a previously configured linux box with PHP4.0, but
not on a newly created Windows 2003
Greg Deckler wrote:
I have searched for this in the FAQ's, News Archives and Googled for it
and cannot seem to find the answer. Please help.
Should have checked the manual.
http://us4.php.net/register_globals
I have a script that simply echo's a query string variable to the
screen. This works on a
snip
Thus, I am stuck
having to get this to work until I can find about 50,000 hours to conver
all of the code.
/snip
No doubt a lesson is contained herewith...if you are working on a
windows machine now, grab yourself a free copy of Textpad from Helios
(google for it) and use their wonderful
See the register_global my friend maybe it is set off
- Original Message -
From: Greg Deckler [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Monday, April 18, 2005 10:10 AM
Subject: [PHP] Windows and Query String
I have searched for this in the FAQ's, News Archives and Googled
On 4/18/05, Chris Ramsay [EMAIL PROTECTED] wrote:
No doubt a lesson is contained herewith...if you are working on a
windows machine now, grab yourself a free copy of Textpad from Helios
(google for it) and use their wonderful search and replace function -
you'll get it done sooner than you
On 4/15/05, Mike Smith [EMAIL PROTECTED] wrote:
I just ordered a CueCat from eBay to play with reading Barcodes. Of
course we'll use a Symbol or some other reader when we implement this
in production, but I thought this would be a start. There are several
classes at phpclasses.org
check out amfphp (opensource php/flash remoting):
http://www.amfphp.org/
good tutorials here:
http://www.sephiroth.it/tutorials.php
AMFPHP allows you to return info from PHP classes as an actionscript
object in flash.
d
On 18-Apr-05, at 1:44 AM, [EMAIL PROTECTED] wrote:
From: Matt Babineau
- Original Message -
From: Mike Smith
I'm using a script to generate the barcodes (3 of 9 or Code39):
http://www.sid6581.net/cs/php-scripts/barcode/
This script seems to limit the input barcode to 15 characters... um...
-eric woo
--
PHP General Mailing List (http://www.php.net/)
To
Mário Gamito mailto:[EMAIL PROTECTED]
on Monday, April 18, 2005 3:01 AM said:
I'm using FPDF (http://www.fpdf.org/) to create a... PDF.
First of all thanks for asking this question because I was in need of building
PDFs and lo and behold FPDF works great so far!
$pdf-Cell(60,10,'Powered
yes, set the cookie expiration to 0. Can be done in php.ini, or with the
function mentioned.
use ini_set() or change the value.
On 4/18/05, Petar Nedyalkov [EMAIL PROTECTED] wrote:
On Monday 18 April 2005 05:22, Reynier Perez Mira wrote:
Hi list:
I have this code that Works
Check out:
http://www.sephiroth.it/index.php
---
you don't really need to use the ming lib for
something like this---there are a couple different
ways to do this, depending on which version of flash
you're using:
Flash5---use loadvariables...check documentation
FlashMX--use the loadVars
On 4/18/05, Eric Wood [EMAIL PROTECTED] wrote:
- Original Message -
From: Mike Smith
I'm using a script to generate the barcodes (3 of 9 or Code39):
http://www.sid6581.net/cs/php-scripts/barcode/
This script seems to limit the input barcode to 15 characters... um...
-eric woo
--
That's a relay error. It's actually a good thing. If your server is
setup to allow sending email without logging in, that's generally
called an open relay. That's where spam comes from. You can configure
your mail server to allow relaying from only the local machine. Then
you wouldn't have to
Hi there..
I´m using Apace 1.3.31 and PHP 4.3.8 in a Windows 2000 enviroment.
I´ll have to migrate the whole site to Windows 2003 enviroment, using IIS 6.0..
Should there be any problem about that, or not?
I mean, should it all go fine, or is it possible for the code to fail in some
parts?
Just
Hi,
abolutly right.
I never had problems with migrating from Apache to IIS or vice versa.
Best Regards
Mirco Blitz
-Ursprüngliche Nachricht-
Von: Pablo D Marotta [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 18. April 2005 23:09
An: php-general@lists.php.net
Betreff: [PHP] Apache - IIS
I'm very new to XML and XSL and feel very helpless about a problem I
am having. I've tried several message boards with no luck. The
problem I am having is this...
===
Problem: can't retrieve the 1 from the ERRORCODE tag.
I've narrowed down the source to the xmlns attribute
Hi there!
I guess this is off-topic? but I want to know if this is possible. (If
there's anyone out there that have a solution, I would appreciate it
though)
I want to know if there is anyway of showing tables in PHP in an order
like this in a single SQL-statement...
Table is like this:
===
Problem: can't retrieve the 1 from the ERRORCODE tag.
I've narrowed down the source to the xmlns attribute inside
the FMPXMLRESULT tag. Still can't figure out how to code it
to grab the 1 though. Any ideas? I've tried:
/ERRORCODE
FMPXMLRESULT/ERRORCODE
select ... from ... ORDER BY (IDCategory = 4) DESC,
IDCategory = 4 will return 1 or 0, for 4 or not 4.
1 is bigger than 0, in most countries. :-)
On Mon, April 18, 2005 2:50 pm, Gustav Wiberg said:
Hi there!
I guess this is off-topic? but I want to know if this is possible. (If
there's
You may want to define does not work a bit more fully.
Does it crash PHP?
Generate error messages?
Not display the text?
Catch your computer on fire?
Post back to the list only -- I probably won't know the answer.
On Mon, April 18, 2005 5:52 am, Sasha Dolgy said:
(this post has been made to
On Mon, April 18, 2005 5:40 am, Bosky, Dave said:
Would it be better to store uploaded pdf, word, or excel documents in a
MySql blob field rather than keeping them in a directory?
I really want to secure the documents and limit document access to
specific users.
It shouldn't be significantly
On Mon, April 18, 2005 4:34 am, Sebastian said:
$string = '4:gaming,5:hardware,3:software,8:security';
$idcats = explode(',', $string);
while (list(, $idcat) = each($idcats)){
list($id, $cat) = explode(':', $idcat);
echo \$id = $idbr /\n;
echo \$cat = $catbr /\n;
}
what is the best way
On Mon, April 18, 2005 5:11 am, Chris Kay said:
use substr($recipients,0,1);
to remove the last char
and ereg_replace(,, ,,$recipients);
to add the spaces
If the list is *REALLY* large, http://php.net/str_replace might be a bit
faster.
For sure, there's no need to haul out the Ereg
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
was libapache2_mod_php4 php4 php4-ldap ...
PHP works fine, and a test
On Sun, April 17, 2005 2:15 pm, Matt Babineau said:
Does anyone have any experience with integrating php + flash? Or know of
any
good tutorial sites? Basically what I want to do is have an animated
loading
screen, and then pull pictures from a database and display text from a
database, text
On Sun, April 17, 2005 1:05 pm, Proudly Pinoy said:
I've read from php.net/setcookie and codecomments.com that using localhost
won't work with cookies and neither are IP addresses. So how do I test
cookies on local system?
Works for me.
Maybe doesn't work with specific broken browsers or
On Sun, April 17, 2005 10:56 am, Dasmeet Singh said:
I regularly need to insert data into MySQL.. and instead of writing
Insert query everytime i wrote this function... and it works well..
Please see and tell is it a good idea using this..or there might be
problems with it?
It's not a Bad
Use SQL in your query that looks like:
ORDER BY kat, Rowid
in the first place?
On Sat, April 16, 2005 5:51 pm, Webmaster said:
Hi,
I have a multidimensional array looking linke this
Rowid title kat
123 nr1 3
442 nr2 2
On Sat, April 16, 2005 4:37 am, mbneto said:
I'd like to make a script that opens my maildir
(~login/Maildir/.Junk/cur) and forwards all messages to a specific
address in order to train the spam engine.
Any tips about this ?
http://php.net/imap
--
Like Music?
http://l-i-e.com/artists.htm
On Fri, April 15, 2005 7:17 pm, Florin Andrei said:
I want to write an application that's almost like a webmail, but not
quite. It must receive emails from several mailing lists, store them in
a database, allow making annotations, provide some kind of accounts with
passwords, etc. It's quite
On Fri, April 15, 2005 5:14 am, kyriacos sakkas said:
Hi all,
I have a problem getting the data from a post request. I have tried
$_POST and $HTTP_RAW_POST_DATA and they appear to be completely empty.
the always_populate_raw_post_data directive is set to on.
Below is the incoming data
On Fri, April 15, 2005 5:08 am, Mario de Frutos Dieguez said:
I have another little question hehe :D, i have a page with a form where
the user insert data and can click in a new,edit or delete button. I've
make that when a button is clicked the page refresh and in the head of
the page i have
On Thu, April 14, 2005 11:52 pm, Balwant Singh said:
1) first of all i would like to inform you that i have made a PHP script
which also have some amount of
linux shell script in it for converting emails from EVOLUTION to MOZILA
THUNDERBIRD just by executing
this script. if anybody need it,
On Thu, April 14, 2005 1:57 pm, [EMAIL PROTECTED] said:
On 14 Apr 2005 Chris Shiflett wrote:
When a user enters a credit card number, there may likely be a
verification step before the actual purchase is made. It's better to
keep this number on the server (in the session data store) than to
unset($_POST['buttonNew']);
wont work?
CK
On Mon, Apr 18, 2005 at 08:25:04PM -0700, Richard Lynch wrote:
On Fri, April 15, 2005 5:08 am, Mario de Frutos Dieguez said:
I have another little question hehe :D, i have a page with a form where
the user insert data and can click in a new,edit or
On Thu, April 14, 2005 12:40 pm, J J said:
I have a case where video files (mov, flv, etc) have
been stored in a MySQL database as blobs.
Doc: Don't do that.
I'm loading them into a flash video player and
everything works fine except it takes longer it seems
and it doesn't allow streaming
On Thu, April 14, 2005 7:54 am, Martín Marqués said:
I'm having a bit of a problem understanding how the header() sends the
HTTP
headers.
Here's what I want to do:
1) Send a PDF file which will be printed in the client (the client will
read
it and print it if he wants to.
2) Redirect to
On Thu, April 14, 2005 10:53 am, PartyPosters said:
Hello,
I have a variable that contains a filename, I want to be able to insert
the date and time just before for the .jpg
for example if my filename is 'pic.jpg' I want it to read 'pic_Monday 15th
of January 2003 05:51:38 AM.jpg (or if
On Thu, April 14, 2005 2:30 am, Andreas Persson said:
I have installed tomcat and added php-support with help of the php-servlet
but it seem like php cant find any of the extensions installed. Like
mysql. I have the php4-mysql package installed.
If i run php -i from the commandline its
On Mon, April 18, 2005 9:42 pm, Chris Kay said:
unset($_POST['buttonNew']);
wont work?
Sure it works
It's just not useful in the context of this thread :-)
How do you know to unset it the second time when they hit refresh (aka
reload) though?
I should have said won't solved that specific
Richard Lynch escribió:
On Mon, April 18, 2005 9:42 pm, Chris Kay said:
unset($_POST['buttonNew']);
wont work?
Sure it works
It's just not useful in the context of this thread :-)
How do you know to unset it the second time when they hit refresh (aka
reload) though?
I should have said
68 matches
Mail list logo