clipp
Am hoping someone out there can recommend a better script or maybe share some
of your own code?
Any help would be appreciated.
Do it right... read up on MySQL's fulltext matching.
Cheers,
Rob.
/clipp
Did some searching based on your tip, got what i was looking for, just didnt
Before considering outsourcing this you should consider the following.
1. Frequency of emails, I.e daily, weekly, monthly etc.
2. Hosting, are you on dedicated servers, shared hosting.
a) do you control the domain name, enough to enable rDNS.
b) does your hosting company restrict out going
On Tuesday 21 October 2008 19:35:53 Jochem Maas wrote:
anyone know whether running ZendOptimizer + APC simultaneously still causes
allsorts of problems ... I know it did in the past but I can't find any
very recent stuff about the issues online.
You have to buy Zend Performance platform. Thats
Sancar Saran schreef:
On Tuesday 21 October 2008 19:35:53 Jochem Maas wrote:
anyone know whether running ZendOptimizer + APC simultaneously still causes
allsorts of problems ... I know it did in the past but I can't find any
very recent stuff about the issues online.
You have to buy Zend
Nathan Rixham wrote:
Evening All,
I'd be /really/ interested to know who uses what!
*Procedural or OOP?*
OOP - I have a Java background...
*Dev OS*
OpenSuSE 10.3
*Dev PHP Version*
5.2.5
*Live Server OS*
OpenSuSE 10.3
*Live Server PHP Version*
5.2.5 (of course - why dev on
Nathan Nobbe schreef:
On Tue, Oct 21, 2008 at 10:35 AM, Jochem Maas [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
anyone know whether running ZendOptimizer + APC simultaneously still
causes allsorts
of problems ... I know it did in the past but I can't find any very
On 22 Oct 2008, at 00:22, Jochem Maas wrote:
Stut schreef:
I use destructors to update dirty objects in memcache.
care to eloborate ... sounds interesting.
Nothing complicated. The core objects in my application are all cached
in memcache. If anything changes in an object it changes an
Stut schreef:
On 22 Oct 2008, at 00:22, Jochem Maas wrote:
Stut schreef:
I use destructors to update dirty objects in memcache.
care to eloborate ... sounds interesting.
Nothing complicated. The core objects in my application are all cached
in memcache. If anything changes in an object it
Jim Lucas wrote:
Chrome wrote:
-Original Message-
From: Amy [mailto:[EMAIL PROTECTED]
Sent: 21 October 2008 11:58
To: php-general@lists.php.net
Subject: [PHP] Politics
representations emphasizing leksr matching thirds painfully wakesleep
ekswiezeezeewie accompanied
Have you
devta singh wrote:
-help: invalid argument
Cheers
--
David Robley
I used to have a handle on life, then it broke.
Today is Setting Orange, the 3rd day of The Aftermath in the YOLD 3174.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i'm trying to dynamically initialize bunch of classes from different
paths but with the same class and file names.
while ($register-request-m != 'exit') {
$controlFile = './core/' . $register-request-m .
'/controller.class.php';
if (is_file($controlFile)) {
Hi,
here is in my opinion, what you can do:
class Base
{
private $foo;
private function __construct()
{}
public function getFoo()
{
return $this-foo;
}
public function setFoo( $foo )
{
$this-foo = $foo;
}
}
class Singleton extends Base
{
public function
-help: invalid argument
I like the way you handle input errors in your php-general subroutines David.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 22 Oct 2008 at 2:14, Alice Wei wrote:
HI,
To answer your questions, I run this on Windows. What is so weird is
that when I do
$a= shell_exec(C:\Inetpub\wwwroot\/test.exe -m$market -d$length); echo
$a;
It works, and echoes everything as it is supposed to, and the file is
I am tweaking a blog application I have programmed. I am trying to
display a Google ad half through the blog entry, at the first available
br /.
The code I use so far is:
$half_way = strlen( nl2br(stripslashes($entry))) /2 ;
$ad_position = strpos ( nl2br(stripslashes($entry)) , br / ,
On 22 Oct 2008 at 6:34, Ron Piggott wrote:
I am tweaking a blog application I have programmed. I am trying to
display a Google ad half through the blog entry, at the first available
br /.
The code I use so far is:
$half_way = strlen( nl2br(stripslashes($entry))) /2 ;
$ad_position =
Colin Guthrie schrieb:
Stut wrote:
On 20 Oct 2008, at 20:24, Christoph Boget wrote:
public function __construct()
A singleton would usually have a private constructor to prevent
non-singleton instances.
The problem being if the class in question derives from another class
that has a public
Stut wrote:
On 20 Oct 2008, at 20:24, Christoph Boget wrote:
public function __construct()
A singleton would usually have a private constructor to prevent
non-singleton instances.
The problem being if the class in question derives from another class
that has a public constructor... If you
Hi guys,
I am developing a project and I wrote an interface to import contracts
in it. The problem is that when the user uploads the file I don't know
what is the encoding it has. So I decided that a good idea is to make
the user tell me the encoding from a drop down before I parse the file.
On 22 Oct 2008 at 14:39, Thodoris wrote:
Hi guys,
I am developing a project and I wrote an interface to import contracts
in it. The problem is that when the user uploads the file I don't know
what is the encoding it has. So I decided that a good idea is to make
the user tell me the
A neat way to transcode between different encodings is htmlentities
and html_entity_decode [1, 2]
EXAMPLE:
?php
# encode a string in UTF-8 to html entities
$string = 'øæåöäü';
$string = htmlentities($string, ENT_QUOTES, 'UTF-8');
# transcode it into ISO-8859-15
$string =
On 22 Oct 2008 at 14:39, Thodoris wrote:
Hi guys,
I am developing a project and I wrote an interface to import contracts
in it. The problem is that when the user uploads the file I don't know
what is the encoding it has. So I decided that a good idea is to make
the user tell me the
here is in my opinion, what you can do:
class Base {
private function __construct()
Except that in one of my follow up posts I indicated that my singleton
class was deriving from a class that had a public constructor.
Thanks anyway. I ended up just using Stut's suggestion. As he said,
it's
Yeti wrote:
-help: invalid argument
I like the way you handle input errors in your php-general subroutines David.
I don't. It says nothing about what a valid argument is. Horrible
newsgroup coding, imo. I wouldn't be surprised if he has
register_globals on.
--
PHP General Mailing List
Hi..
Working on a project, and I need to be able to allow the user to create
groups of files from a list of files. (all of this is php/web-based)
As I'm going though what I'm going to need, it occurred to me that someone's
hopefully/probably already created the basic logic for this in someother
Carlos Medina wrote:
this is the Result of my test with your Code:
Fatal error: Access level to Singleton::__construct() must be public (as
in class Base) in C:\Users\cmedina\Documents\test1.php on line 30
Hmmm, that'll learn me for not running it first I sps :s
Well that is completely
Defining multiple classes with the same name but different implementation
doesn't seem like a good idea to me. Why did you choose to do this?
also, have a look at this function:
http://www.php.net/autoload
i'm not sure what you're trying to accomplish exactly, but whatever it is,
it might be
hmm mpd/mpc allows much of what you ask, for a playlist that is.
I made a frontend to this deamon using php. don't know about that
disabling/enabling feature but I recon that part can be done php only.
On Oct 22, 2008, at 3:15 PM, bruce wrote:
Hi..
Working on a project, and I need to be
On Tue, Oct 21, 2008 at 5:14 PM, Stut [EMAIL PROTECTED] wrote:
When a script ends everything is released (with some small exceptions),
thus also all references to instances of classes.
Thus AFAIK a deconstructor will always be called at the end of script
execution.
but you have no
Well maybe it is because he has register_globals on why he is not
printing a list of valid arguments.
imagine something like this ..
@php-generals$ [PHP] -help
List of valid arguments:
-c, --make-me-forget erases the built-in mainframe's short term memory
-f, --flush-me erases the entire memory
On Wed, Oct 22, 2008 at 9:42 AM, Dan Joseph [EMAIL PROTECTED] wrote:
On Tue, Oct 21, 2008 at 5:14 PM, Stut [EMAIL PROTECTED] wrote:
When a script ends everything is released (with some small exceptions),
thus also all references to instances of classes.
Thus AFAIK a deconstructor will
Ian schreef:
On 22 Oct 2008 at 6:34, Ron Piggott wrote:
I am tweaking a blog application I have programmed. I am trying to
display a Google ad half through the blog entry, at the first available
br /.
The code I use so far is:
$half_way = strlen( nl2br(stripslashes($entry))) /2 ;
From your code it looks like $controller will have only the last instance to
the controller class, so you can only load the last request and instantiate
only one time.
Other alternative is to use namespaces but this is only for PHP 5.3 or you
can do what everyone else does from the begging of
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2008 10:27 AM
To: [EMAIL PROTECTED]
Cc: PHP General
Subject: Re: [PHP] Half way
Ian schreef:
On 22 Oct 2008 at 6:34, Ron Piggott wrote:
I am tweaking a blog application I have
Hi everyone,
I am trying to run multiple sites on the same server, that have mostly
identical code - a pre-built application.
Anyway, I would like to save disk space by specifying independent
configuration files for each site, then using symbolic links to access
the rest of the code for
On Wed, 2008-10-22 at 11:59 -0400, Seth Foss wrote:
Hi everyone,
I am trying to run multiple sites on the same server, that have mostly
identical code - a pre-built application.
Anyway, I would like to save disk space by specifying independent
configuration files for each site, then
On Wed, Oct 22, 2008 at 2:13 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Nathan Nobbe schreef:
On Tue, Oct 21, 2008 at 10:35 AM, Jochem Maas [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
anyone know whether running ZendOptimizer + APC simultaneously still
causes allsorts
Seth Foss wrote:
Hi everyone,
I am trying to run multiple sites on the same server, that have mostly
identical code - a pre-built application.
Anyway, I would like to save disk space by specifying independent
configuration files for each site, then using symbolic links to access
the
Robert Cummings wrote:
On Wed, 2008-10-22 at 11:59 -0400, Seth Foss wrote:
Hi everyone,
I am trying to run multiple sites on the same server, that have mostly
identical code - a pre-built application.
Anyway, I would like to save disk space by specifying independent
configuration files
Jim Lucas wrote:
Seth Foss wrote:
Hi everyone,
I am trying to run multiple sites on the same server, that have mostly
identical code - a pre-built application.
Anyway, I would like to save disk space by specifying independent
configuration files for each site, then using symbolic links to
Is there a tool that can analyze PHP source code and detect if the
code is relying on register_globals still being on? Perhaps detecting
if a variable has not been initialized within the code?
These are my specific needs, but I'm also interested in general SCA
tools and features.
--
PHP
On Wed, 2008-10-22 at 13:16 -0400, Seth Foss wrote:
Robert Cummings wrote:
On Wed, 2008-10-22 at 11:59 -0400, Seth Foss wrote:
Hi everyone,
I am trying to run multiple sites on the same server, that have mostly
identical code - a pre-built application.
Anyway, I would like to
On Wed, 2008-10-22 at 12:24 -0500, Dee Ayy wrote:
Is there a tool that can analyze PHP source code and detect if the
code is relying on register_globals still being on? Perhaps detecting
if a variable has not been initialized within the code?
These are my specific needs, but I'm also
Thodoris wrote:
Hi guys,
I am developing a project and I wrote an interface to import contracts
in it. The problem is that when the user uploads the file I don't know
what is the encoding it has. So I decided that a good idea is to make
the user tell me the encoding from a drop down before I
Robert Cummings wrote:
On Wed, 2008-10-22 at 12:24 -0500, Dee Ayy wrote:
Is there a tool that can analyze PHP source code and detect if the
code is relying on register_globals still being on? Perhaps detecting
if a variable has not been initialized within the code?
These are my specific
Yeti wrote:
Well maybe it is because he has register_globals on why he is not
printing a list of valid arguments.
imagine something like this ..
@php-generals$ [PHP] -help
List of valid arguments:
-c, --make-me-forget erases the built-in mainframe's short term memory
-f, --flush-me erases the
Seth Foss wrote:
Jim Lucas wrote:
Seth Foss wrote:
Hi everyone,
I am trying to run multiple sites on the same server, that have mostly
identical code - a pre-built application.
Anyway, I would like to save disk space by specifying independent
configuration files for each site, then
If you are in control of you DNS records you could CNAME [1] the sites
to the same address, where a PHP script or RewriteRule [2] loads the
specific configuration by checking the requested URI. Since you got
them on the same server anyways this would not cost any performance.
[1]
Dee Ayy wrote:
Is there a tool that can analyze PHP source code and detect if the
code is relying on register_globals still being on? Perhaps detecting
if a variable has not been initialized within the code?
These are my specific needs, but I'm also interested in general SCA
tools and
Perhaps detecting
if a variable has not been initialized within the code
This is an E_NOTICE level error.
?php
error_reporting(E_ALL);
$foo++;
?
[EMAIL PROTECTED] ~ $ php test.php
Notice: Undefined variable: foo in /home/mario/test.php on line 3
[EMAIL PROTECTED] wrote:
Hi,
I have tried your MS-Excel MIME type in PHP. But am facing a small problem. I
can't get the grid lines as look like in normal Excel file.
Am using windows XP, Internet explorer 6.0, MS Excel 2003
Thanks in advance.-- Jim Lucas wrote :
abderrazzak nejeoui
Hi,
i would like to know if it exists a way to create component (maybe using
python, perl, or something else) to save it as DLL and to use this component
on PHP pages ?
i mean by component something like a graphical representation of a table.
this dll should be able to be dynamically loaded by
On 22 Oct 2008, at 19:21, Alain Roger wrote:
i would like to know if it exists a way to create component (maybe
using
python, perl, or something else) to save it as DLL and to use this
component
on PHP pages ?
i mean by component something like a graphical representation of a
table.
this
On 22 Oct 2008, at 18:16, Seth Foss wrote:
Robert Cummings wrote:
On Wed, 2008-10-22 at 11:59 -0400, Seth Foss wrote:
Hi everyone,
I am trying to run multiple sites on the same server, that have
mostly identical code - a pre-built application.
Anyway, I would like to save disk space by
On 22 Oct 2008, at 14:42, Dan Joseph wrote:
On Tue, Oct 21, 2008 at 5:14 PM, Stut [EMAIL PROTECTED] wrote:
When a script ends everything is released (with some small
exceptions),
thus also all references to instances of classes.
Thus AFAIK a deconstructor will always be called at the end of
On 22 Oct 2008, at 09:35, Jochem Maas wrote:
Stut schreef:
On 22 Oct 2008, at 00:22, Jochem Maas wrote:
Stut schreef:
I use destructors to update dirty objects in memcache.
care to eloborate ... sounds interesting.
Nothing complicated. The core objects in my application are all
cached
Seth Foss wrote:
Hi everyone,
I am trying to run multiple sites on the same server, that have mostly
identical code - a pre-built application.
Anyway, I would like to save disk space by specifying independent
configuration files for each site, then using symbolic links to access
the
On Wed, 2008-10-22 at 10:43 -0500, Boyd, Todd M. wrote:
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2008 10:27 AM
To: [EMAIL PROTECTED]
Cc: PHP General
Subject: Re: [PHP] Half way
Ian schreef:
On 22 Oct 2008 at 6:34, Ron
On Wed, 2008-10-22 at 11:16 -0700, Jim Lucas wrote:
Dee Ayy wrote:
Is there a tool that can analyze PHP source code and detect if the
code is relying on register_globals still being on? Perhaps detecting
if a variable has not been initialized within the code?
These are my specific
I think we need a new error reporting constant E_STUPID.
This should catch stupid things I do like trying to embed an array into a
string such as:
$foo = array('a', 'b', 'c');
$query = select * from foo where foo in ('$foo');
It's been one of those days...
--
PHP General Mailing
On Wed, 2008-10-22 at 11:20 -0700, Jim Lucas wrote:
[EMAIL PROTECTED] wrote:
Hi,
I have tried your MS-Excel MIME type in PHP. But am facing a small problem.
I can't get the grid lines as look like in normal Excel file.
Am using windows XP, Internet explorer 6.0, MS Excel 2003
On 22 Oct 2008, at 19:37, [EMAIL PROTECTED] wrote:
I think we need a new error reporting constant E_STUPID.
This should catch stupid things I do like trying to embed an array
into a string such as:
$foo = array('a', 'b', 'c');
$query = select * from foo where foo in ('$foo');
It's been one
On Wed, Oct 22, 2008 at 2:29 PM, Stut [EMAIL PROTECTED] wrote:
Never any issues this way? They always run without a hitch?
Not had any issues to far, and it's being used on some pretty busy sites
and various PHP versions and several different web servers.
Terrific! Thanks for the
[EMAIL PROTECTED] wrote:
I think we need a new error reporting constant E_STUPID.
This should catch stupid things I do like trying to embed an array into a
string such as:
$foo = array('a', 'b', 'c');
$query = select * from foo where foo in ('$foo');
It's been one of those days...
Yeah
On Wed, 2008-10-22 at 20:04 +0100, Stut wrote:
On 22 Oct 2008, at 19:37, [EMAIL PROTECTED] wrote:
I think we need a new error reporting constant E_STUPID.
This should catch stupid things I do like trying to embed an array
into a string such as:
$foo = array('a', 'b', 'c');
$query
David Robley wrote:
Jim Lucas wrote:
Chrome wrote:
-Original Message-
From: Amy [mailto:[EMAIL PROTECTED]
Sent: 21 October 2008 11:58
To: php-general@lists.php.net
Subject: [PHP] Politics
representations emphasizing leksr matching thirds painfully wakesleep
ekswiezeezeewie
On Wed, 2008-10-22 at 13:43 -0500, Shawn McKenzie wrote:
Seth Foss wrote:
Hi everyone,
I am trying to run multiple sites on the same server, that have mostly
identical code - a pre-built application.
Anyway, I would like to save disk space by specifying independent
configuration
On Wed, 2008-10-22 at 14:13 -0500, Shawn McKenzie wrote:
David Robley wrote:
Jim Lucas wrote:
Chrome wrote:
-Original Message-
From: Amy [mailto:[EMAIL PROTECTED]
Sent: 21 October 2008 11:58
To: php-general@lists.php.net
Subject: [PHP] Politics
representations
Hello,
I have a small piece of code where I'm trying to use mysqli with a
prepare-statement. I don't want to bind variables for the fetch, instead
I want to use something like
list($question) = $stmt-fetch_row();
And this fetch_row should exist according to the documentation. But
while
You prepare the statement, execute it then use -fetch() to get the
data.
On Oct 22, 2008, at 1:36 PM, Marten Lehmann [EMAIL PROTECTED] wrote:
Hello,
I have a small piece of code where I'm trying to use mysqli with a
prepare-statement. I don't want to bind variables for the fetch,
Hi,
I became confused after an hour trying to understand the PHP cache
solutions.
XCache, APC, eAccelerator and others are opcode cache systems... is
memcache in the same category? or is it completely different?
If I install for example XCache, set it for certain directory... it will
I guess the XCache everybody talks about is the open-source here:
http://xcache.lighttpd.net/
But what about this: http://www.xcache.com/ ... is it the same author? :-O
Martin Zvarík napsal(a):
Hi,
I became confused after an hour trying to understand the PHP cache
solutions.
XCache, APC,
Thanks regarding the error_reporting. I may have to go this route for
this specific issue.
I was hoping a source code analyzer would report the same type
problem, perhaps much faster than Robert's method, and without having
a human attempt to test all functionality of the various PHP apps on
old
Ashley Sheridan wrote:
On Wed, 2008-10-22 at 20:04 +0100, Stut wrote:
On 22 Oct 2008, at 19:37, [EMAIL PROTECTED] wrote:
I think we need a new error reporting constant E_STUPID.
This should catch stupid things I do like trying to embed an array
into a string such as:
$foo = array('a',
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2008 3:02 PM
To: Shawn McKenzie
Cc: php-general@lists.php.net
Subject: Re: [PHP] Re: Difficulty navigating symlinks
On Wed, 2008-10-22 at 13:43 -0500, Shawn McKenzie wrote:
Seth Foss
And what about users who use office version 2003 (which do NOT support
.xml charts)
You can google a bit, I'm pretty sure I have already encountered a class for
this case at Manuel's site (phpclasses).
Nitsan
On Wed, Oct 22, 2008 at 9:00 PM, Ashley Sheridan
[EMAIL PROTECTED]wrote:
On Wed,
The easiest solution is to output CSV, and use the Content-type to force it to
be eXcel.
Excel will suck the CSV in just fine, with minimal hassle by the user.
It also makes a file that is useful for many more applications, not just Excel.
--
PHP General Mailing List
On 22 Oct 2008, at 22:45, Boyd, Todd M. wrote:
Haven't read the entire thread, but you might also look at
http://php.net/manual/en/function.realpath.php
realpath() won't help since it will just controbute the same
problem...
specifically he'll get the path were the page really exists instead
Hi,
You prepare the statement, execute it then use -fetch() to get the data.
but the documentation says, that -fetch() is only to fetch data to
variables that have been bound with bind_result() before. But I want to
use fetch_row() instead.
Regards
Marten
--
PHP General Mailing List
On 22 Oct 2008, at 22:19, Martin Zvarík wrote:
I became confused after an hour trying to understand the PHP cache
solutions.
XCache, APC, eAccelerator and others are opcode cache systems... is
memcache in the same category? or is it completely different?
Memcache is completely different
On Wed, 2008-10-22 at 22:04 +, [EMAIL PROTECTED] wrote:
The easiest solution is to output CSV, and use the Content-type to force it
to be eXcel.
Excel will suck the CSV in just fine, with minimal hassle by the user.
It also makes a file that is useful for many more
On 22 Oct 2008, at 22:24, Martin Zvarík wrote:
I guess the XCache everybody talks about is the open-source here:
http://xcache.lighttpd.net/
Indeed.
But what about this: http://www.xcache.com/ ... is it the same
author? :-O
Nope, completely different commercial entity focused on hardware
Jochem Maas napsal(a):
anyone know whether running ZendOptimizer + APC simultaneously still causes
allsorts
of problems ... I know it did in the past but I can't find any very recent
stuff about the
issues online.
I believe you should look up eAccelerator or XCache, which should work
with
On Wed, Oct 22, 2008 at 4:39 PM, Martin Zvarík [EMAIL PROTECTED] wrote:
Jochem Maas napsal(a):
anyone know whether running ZendOptimizer + APC simultaneously still
causes allsorts
of problems ... I know it did in the past but I can't find any very recent
stuff about the
issues online.
I
Thanks for reply Stut.
So, the APC, XCache etc. doesn't work as FileCache and also doesn't
decrease the number of database queries, since it is not caching the
content...
I see now, it is obvious that it would be very hard to run out of memory.
--
Martin
Stut napsal(a):
On 22 Oct 2008,
I am looking at the eAccelerator's website and I realize what got me
confused:
there is a function for OUTPUT CACHE, so it actually could cache the
whole website and then run out of memory I guess...
that means I would be able to store anything into the memory and
reference it by a
On 23 Oct 2008, at 00:04, Martin Zvarík wrote:
I am looking at the eAccelerator's website and I realize what got me
confused:
there is a function for OUTPUT CACHE, so it actually could cache the
whole website and then run out of memory I guess...
that means I would be able to store
Hi All,
I want to make a directory on my web server programatically when my
code to create a new user runs.
I am running PHP 5.2.5 on Linux.
I am running:
$dirToCreate = ...$_SESSION['s_USER_URL'];
mkdir($dirToCreate, 0777, TRUE); // create the directory for the user
$dirToCreate is:
On 23 Oct 2008, at 00:33, Jason Todd Slack-Moehrle wrote:
I want to make a directory on my web server programatically when my
code to create a new user runs.
I am running PHP 5.2.5 on Linux.
I am running:
$dirToCreate = ...$_SESSION['s_USER_URL'];
mkdir($dirToCreate, 0777, TRUE); // create
On Wed, 2008-10-22 at 16:33 -0700, Jason Todd Slack-Moehrle wrote:
Hi All,
I want to make a directory on my web server programatically when my
code to create a new user runs.
I am running PHP 5.2.5 on Linux.
I am running:
$dirToCreate = ...$_SESSION['s_USER_URL'];
Hi,
Well, as your mkdir is saying you can only have 2 parameters, I'm
guessing you're not yet running PHP 5. Also, as 0777 is the default
mode, you can omit this from your code to leave only one argument.
You didn't say the exact error you're getting when you omit the third
argument. My guess
Hi All,
I need to take a record in MySQL and have my user get it as a CSV
File. I am OK with most everything, except when I create the CSV file,
I write out the column headers then I need to write out the data.
After I right out the column headers do I have to put a '/n' to have
it start
On Wed, Oct 22, 2008 at 7:59 PM, Jason Todd Slack-Moehrle
[EMAIL PROTECTED] wrote:
Hi All,
I need to take a record in MySQL and have my user get it as a CSV File. I am
OK with most everything, except when I create the CSV file, I write out the
column headers then I need to write out the data.
On 23 Oct 2008, at 00:59, Jason Todd Slack-Moehrle wrote:
After I right out the column headers do I have to put a '/n' to have
it start a new line in the CSV file? I think I do.
A new line is \n not /n, and it must be in double quotes () not
single (').
-Stut
--
http://stut.net/
--
PHP
[EMAIL PROTECTED] wrote:
I think we need a new error reporting constant E_STUPID.
This should catch stupid things I do like trying to embed an array into a
string such as:
$foo = array('a', 'b', 'c');
$query = select * from foo where foo in ('$foo');
It's been one of those days...
Jason Todd Slack-Moehrle wrote:
Hi All,
I want to make a directory on my web server programatically when my code
to create a new user runs.
I am running PHP 5.2.5 on Linux.
I am running:
$dirToCreate = ...$_SESSION['s_USER_URL'];
mkdir($dirToCreate, 0777, TRUE); // create the directory for
Hi Stut,
Actually i am ending the row headers with a chr(10); // LINE FEED
-Jason
On Oct 22, 2008, at 5:12 PM, Stut wrote:
On 23 Oct 2008, at 00:59, Jason Todd Slack-Moehrle wrote:
After I right out the column headers do I have to put a '/n' to
have it start a new line in the CSV file? I
On 23 Oct 2008, at 02:41, Jason Todd Slack-Moehrle wrote:
Actually i am ending the row headers with a chr(10); // LINE FEED
From the code you included in your original post...
echo /n;
There was no mention of chr(10).
Outputting data in CSV format is not hard. Simply echo the header row
Oh, I am not putting quotes around each field that i get from MySQL.
There are no quotes in the data so that is good.
Sorry I put /n and I meant to put chr(10).
-Jason
On Oct 22, 2008, at 6:58 PM, Stut wrote:
On 23 Oct 2008, at 02:41, Jason Todd Slack-Moehrle wrote:
Actually i am ending
On Thu, 2008-10-23 at 02:58 +0100, Stut wrote:
On 23 Oct 2008, at 02:41, Jason Todd Slack-Moehrle wrote:
Actually i am ending the row headers with a chr(10); // LINE FEED
From the code you included in your original post...
echo /n;
There was no mention of chr(10).
Outputting
1 - 100 of 102 matches
Mail list logo