On 7/8/05, Chris W. Parker <[EMAIL PROTECTED]> wrote:
> Which option should I go for? Is there another option I'm not
> considering?
Another possibility would be adding a new table that relates products
to sites. This allows a one (product) to many (sites) relationship
without changing the produ
On 6/30/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
I was going to comment on a few of these points, but found I mostly
wanted to add ++ after each one. I do want to echo the comments about
fun projects and working with other developers.
You can really learn a lot by playing around. Try out t
On 6/30/05, Andrew Scott <[EMAIL PROTECTED]> wrote:
> OK.
>
> What is J2EE, if you know the answer to that then you will know that php
> doesn't have the ability to run as multiple instances. Lets take security
> for example, php is known to not have an installer because of security
> correct me i
On 6/30/05, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote:
>
> That doesn't address scalability, however. So, let's look at that. I'm
> not sure how CF scales, not having been in a CF shop. However, I know
> what I can do to scale PHP:
>
> * Use code optimizers/bytecode caches (zend, apc, eAc
On 6/30/05, Andrew Scott <[EMAIL PROTECTED]> wrote:
> Cons for PHP:
> -
> Coldfusion is also free (Blue Dragon) and has just as much support as PHP,
> although. PHP can not run in a J2EE environment, limiting it to small scall
> websites and limiting the prospect of expansion or server
On 6/26/05, Rick Emery <[EMAIL PROTECTED]> wrote:
> My employer has (finally) decided to take full advantage of our
> intranet, and wants to move from client-server applications to
> web-based applications. To that end, we're trying to determine the best
> platform for our applications. We're a Mic
On Mon, 10 Jan 2005 13:49:26 -0500, Jason Morehouse <[EMAIL PROTECTED]> wrote:
> Hello. I'm not sure if this is an apache problem or php... but
> wondering if anyone has come across the same problem.
>
> -rw---1 root root test.html
> -rw---1 root root test.php
>
> Try
On Mon, 10 Jan 2005 10:26:16 -0800, Chadwick, Russell
<[EMAIL PROTECTED]> wrote:
>
> Could anyone tell me why this code echos?
>
> $value = 0;
> $curval = 'A';
> if ($value == $curval) {
> echo "WTH, Over";
> }
> ?>
The string is converted to an integer when compared with an integer.
See
On Tue, 16 Nov 2004 16:54:22 +0100, Merlin <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> it came to my attention that most of the high traffic portals are using perl
> in
> the backend. Those sites do also apear to me to be very fast in comparison to
> most php sites. Are there any known performance
On Wed, 10 Nov 2004 11:00:12 -0800, Chris W. Parker
<[EMAIL PROTECTED]> wrote:
> hi.
>
> call me stupid but i can't decide which option is better (actually don't
> call me stupid because it will hurt my feelings and i might cry). and
> having said that, maybe neither option is better than the othe
On Fri, 15 Oct 2004 10:49:27 -0600, Brad Pauly <[EMAIL PROTECTED]> wrote:
>
> I am also trying to do this. Dovecot is the default IMAP server on
> FC2. I haven't had time to try it yet, but here is a link I found
> about compiling PHP with dovecot:
>
> http://www.
On Thu, 14 Oct 2004 16:30:42 -0400, Don <[EMAIL PROTECTED]> wrote:
> Has anyone had any luck installing with the --with-imap configuration
> option. IMAP doesn't seem to be installed (nor imap-devel) and the c
> library specified in the docs at php.net does not compile.
I am also trying to do th
On Fri, 1 Oct 2004 17:38:31 -0400, Joe Szilagyi <[EMAIL PROTECTED]> wrote:
> Hi, I have this working:
>
> if ($REMOTE_ADDR == "212.3.54.65") {
> header("Location: http://www.google.com/search?&q=huzzah";);
> Redirect browser
> exit;
> }
>
> But I want to specify multiple
On Thu, 23 Sep 2004 22:39:06 +0100, Graham Cossey
<[EMAIL PROTECTED]> wrote:
>
> Brad: When you say "a hash of the query string" do you mean passing the
> variable part of the URL thru mhash to obtain a hash/key/digest or whatever
> you wish to call it? If so, do you recommend any particular hash,
On Thu, 23 Sep 2004 16:25:27 +0100, Graham Cossey
<[EMAIL PROTECTED]> wrote:
> That's fine for static pages, my question was regarding dynamic pages that I
> did not wish to pass through the database querying again.
>
> I understand that if my dynamic page is
> http://server/app/page1.php?cust=123
On Tue, 21 Sep 2004 20:25:44 -0700 (PDT), zareef ahmed
<[EMAIL PROTECTED]> wrote:
>
> All values passed via query string will be available
> via in $_GET array. You can simply get them from this
> array.
You can also acces them via the $_REQUEST array, which also contains
the values in $_POST an
On Mon, 20 Sep 2004 10:58:46 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote:
>
> I suppose you are trying to force IE to download the pdf file, but it is
> always displaying it - you did not tell what is your problem.
>
> IE determines the type of file from the extension, if it is a known
> ext
> Michael Mao wrote:
>
> > Is there a way to capture a snapshot of a html page and save it as a
> > jpg using php?
This is a bit of a hack, but kinda neat if you don't mind setting it
up. I'm sure you could use php to call a script anyway. Heh.
http://www.livejournal.com/users/brad/2015327.html
On Thu, 16 Sep 2004 12:08:50 -0400, Dan Joseph <[EMAIL PROTECTED]> wrote:
>
> There are others?
http://www.php-accelerator.co.uk/
http://pecl.php.net/package-info.php?package=APC
http://turck-mmcache.sourceforge.net/
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
On Mon, 2004-05-24 at 16:55, Bob Lockie wrote:
> I can't see it.
> Maybe other eyes will help. :-)
> Why does search_username.1 show the data that was posted with the form
> but search_username.2 is empty?
>
>
> $search_usename = $_REQUEST[search_username];
--^ need
On Fri, 2004-05-14 at 14:48, Andrew Wood wrote:
> I'm trying to set the following two vars on one page then read their
> values on another like this:
>
> page1.php...
>
> ob_start();
> session_start();
> $_SESSION['member_id'] = $member_id;
> $_SESSION['password'] = $password;
> ob_end_flush
On Wed, 2004-05-05 at 12:23, Chris wrote:
> It's certainly faster than "SELECT COUNT(*) FROM sometable WHERE . . .";
>
> It might not be faster than "SELECT COUNT(*) FROM sometable", as that is
> designed to run very quickly.
I believe it will also depend on the type of table you are using.
"SELE
On Fri, 2004-03-12 at 15:17, Maxi Yedid wrote:
>
[snip]
> what I want now is when it saves the file; I also want to save a copy of
> that file in another folder with "thumbnail" size. How do I create a copy
> with for example 100 x 100 and save that?
If you are using Linux (maybe others too) yo
On Wed, 2004-02-04 at 06:28, Raditha Dissanayake wrote:
> Shiva Kumar i am referring to your post for the third time today !!
>
> Shaun this topic is covered here:
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg128334.html
Adding to the list from a link at the above URL, I really like Anjuta.
On Thu, 2004-01-22 at 09:43, Thaddeus J. Quintin wrote:
> I'm trying to get php 4.3.4 installed as a module for Apache 1.3.28. I
> have apache unzipped/untarred and I ran the ./configure script for it
> (per the instructions in the PHP install). I then configured php with
> the following line-
On Tue, 2004-01-20 at 16:13, [EMAIL PROTECTED] wrote:
> > Interesting. I wouldn't have expected that. However, that is how it
> > should work. Check out table K-2 on this page:
> >
> > http://us4.php.net/manual/en/types.comparisons.php
> >
> > '==' is a loose comparison. You can use '===' instead w
On Tue, 2004-01-20 at 15:55, Jonathan Pitcher wrote:
> I am so frustrated at the moment with coding. I had an odd error with
> some PHP coding. And in the process I came across this error.
>
> Please try this out!! Because for me on my machine it does the first
> part of the if statement. I c
On Fri, 2004-01-16 at 13:17, Jake McHenry wrote:
> I have a random number being generated from 1 to 501, is there an easy way for me to
> tell if the result is an odd or even number?
Yep. The modulus operator (%). Your number mod 2 will be 1 if it is odd
and 0 if it is even.
http://us4.php.net/m
On Fri, 2004-01-16 at 10:21, Brad Pauly wrote:
> On Fri, 2004-01-16 at 10:07, Tobias Engelhardt wrote:
> > That is not possible because the id's are hard-coded in thousands of
> > html-pages. Not a very good idea, i know. It wasn't mine... I *have* to
> > use sear
On Fri, 2004-01-16 at 10:07, Tobias Engelhardt wrote:
> That is not possible because the id's are hard-coded in thousands of
> html-pages. Not a very good idea, i know. It wasn't mine... I *have* to
> use search/replace. (A script processes each file in the directory)
Ah, I see. I think you coul
On Fri, 2004-01-16 at 09:49, Tobias Engelhardt wrote:
> Hi list,
> i hope someone can help me out... i have to replace
>
>
> with
>
>
> any ideas? thank you!
What about just using the variable to build the name?
$file_name = 'order_'.$_GET['order_id'].'.html';
- Brad
--
PHP General Mailing
On Wed, 2004-01-14 at 15:11, Ryan A wrote:
[snip]
> and heres the output:
>
> Ok,we are in show.php
> No $_GET[id]
> No $_GET[sid]
> Array ( )
>
>
> Ideas?
Seems like you are getting closer. You are going to the right place, but
none of your variables are making it. I am not sure what your ru
On Wed, 2004-01-14 at 13:14, Ryan A wrote:
> Hey,
> Ok, have added "echo "Ok,we are in show.php";" and if you go to
> http://rizkhan.net/articles/show/category/1/2 or
> http://rizkhan.net/articles/show.php?category=poetry&sid=1&id=2
>
> you will see that its echoing that without a problem..so
On Wed, 2004-01-14 at 12:41, Ryan A wrote:
> Hey Jason, Brad,
> Thanks for replying.
>
> I took out the .php part...and even tried it with [L] tacked to the end of
> the second linenot working
> Heres how my .htaccess looks now:
>
> RewriteEngine On
> RewriteRule ^show/(.*)/(.*)/(.*) /show.ph
On Wed, 2004-01-14 at 11:44, Ryan A wrote:
[snip]
> Its a bit hard to explain what happens so see for yourself:
> Heres the index page:
> http://www.rizkhan.net/articles/articles.php
> Heres the actual page:
> http://www.rizkhan.net/articles/show.php?category=Beginners%20Corner&sid=1&id=1
> and t
On Wed, 2004-01-14 at 11:14, Ryan A wrote:
> Hi,
> I have a blog kind of app running on my site...presently it shows like this:
> show.php?category=Beginners%20Corner&sid=1&id=1
>
> After searching on google on how to make my blog my search engine friendly I
> came accorss
> mod_rewrite and couple
On Fri, 2004-01-09 at 10:29, Michael MÃller wrote:
> mhm, I think there was a missunderstanding ;)
> I want to know, how long the input-string could be (so that the encoded
> strings, that you get, are unique)
I don't think there is a limit, theoretically. In practice you might
have other constrai
On Thu, 2004-01-08 at 16:27, Carlton L. Whitmore wrote:
> I'm very new to PHP.
> I want to display /var/log/lastlog with php on a webpage, but I need
> some help. How do I do that?
> Looking at the docs it looks like file() would work, but I couldn't get
> it to display the file.
I would guess tha
On Thu, 2004-01-08 at 14:14, BÃrge Strand wrote:
[snip]
> Do you have any ideas what I should do to make both .php and .cgi
> versions work?
> Here's test3.cgi:
> ==
> #! /usr/local/bin/php
> print 'Content-type: text/html' . "\n\n";
>
On Jan 7, 2004, at 10:02 PM, Richard Kurth wrote:
I can't seam to get this while loop to work properly. It should
create a message that has the first two lines and then it will list
all the domain that meat the criteria.
$lines = "The following are web sites that are at 95% usage or more of
th
On Tue, 2004-01-06 at 15:04, Jas wrote:
> require 'database.php';
> $t_02 = "subnets";
> $sql_subs = mysql_query("SELECT * FROM $t_02",$db)or
> die(mysql_error());while(list($id,$sub,$msk,$dns01,$dns02,$rtrs,$rnge)
> = mysql_fetch_array($sql_subs)) {
> $num = mysql_num_rows($sql_subs);
>
On Mon, 2004-01-05 at 17:13, Justin French wrote:
> Hi all,
>
> I'm struggling to find any tutorials or 'thought starters' on how I can
> incorporate script-level plug-ins into a PHP application.
>
> Another way, can I see some examples of how my application framework
> can provide an API for m
On Mon, 2004-01-05 at 12:59, Pat Hanna wrote:
> I cannot seem to find the problem in my code. I have two pages. Both
> need to select a product from a database. The first page works fine, the
> product is found and I use the data in the page. The second one does not
> fetch the product. The code is
On Wed, 2003-12-31 at 11:34, Sheawh wrote:
> it may be a bit out of topic,
> but can anyone teach me how to export a MySQL database?
If you mean in general, it is a bit OT, but check out mysqldump.
http://www.mysql.com/doc/en/mysqldump.html
If you mean with PHP, you could use the exec() command
On Wed, 2003-12-31 at 11:18, Cesar Aracena wrote:
> Hi all,
>
> I'm trying to create a script to check for errors in submitted forms. I want
> the visitor to enter two times the email address and then check for it...
> This is what I have so far. The scripts checks if the email was entered in
> bo
On Wed, 2003-12-31 at 11:24, [EMAIL PROTECTED] wrote:
> > perhaps you could show some code snippets.
>
> Thanks Warren, at least I know my message is getting through :-)
>
> Well, I just got this:
>
> Warning: Cannot send session cookie - headers already sent by (output
> started at /home/sites/
On Wed, 2003-12-31 at 10:59, [EMAIL PROTECTED] wrote:
> Hi
>
> (apologies if you've seen this, but I sent it and it both came back from
> the list server, and it bounced back as a failed email, so I'm going to
> try again)
>
> I'm new to the list, but I've been PHP programming for almost 2 years
On Sat, 2003-12-27 at 17:17, tony wrote:
> hello
>
> I'm new with php just learning and i have just a problem with the following
> code
>
> $dbconnect = mysql_connect("localhost", "prog_tony","PASSWORD");
> mysql_select_db("prog_dealer", $dbconnect);
> $stop = 0;
> $counter = 1;
> while(!$stop){
On Mon, 2003-12-22 at 13:09, John W. Holmes wrote:
> Carey Baird wrote:
> > Hey,
> >
> > I have stored the name of a function as a variable. I have then passed the
> > variable to another function as follows:
> >
> > //put function name in a variable
> > $contentfunction = ânewsadmincontent()â;
On Mon, 2003-12-22 at 12:43, Carey Baird wrote:
> Eval ($contentfunction); gave me a parse error:
>
> Parse error: parse error in /home/pickled/public_html/main/inc/html.php(145)
> : eval()'d code on line 1
>
>
> $$contentfunction didnât output anything
>
> Any other ideas?
What are you trying
On Mon, 2003-12-22 at 12:36, Carey Baird wrote:
> Hey,
>
> I have stored the name of a function as a variable. I have then passed the
> variable to another function as follows:
>
> //put function name in a variable
> $contentfunction = ânewsadmincontent()â;
>
> //pass variable to another func
On Fri, 2003-12-19 at 13:18, ken lee wrote:
> I'm getting this message all the the time I try to start a session with
> session_start.
>
> Cannot send session cookie - headers already sent
>
> It's the first line of code in the file. I'm even getting the error with a
> single session_start() func
On Mon, 2003-11-24 at 13:42, Dan Joseph wrote:
> Hi,
>
> I must be missing something in this array. To me this makes no sense.
> Here is it broken down...
>
> Declartion:
>
> $gtotals = array(
> "CO1" => 0,
> "CO2" => 0,
> "CO3" => 0,
On Sun, 2003-10-19 at 17:22, Chris Shiflett wrote:
> PHP has been both heralded and criticized on a number of topics. This is to be
> expected, considering the rate of growth of PHP's popularity. It has given
> people something to talk about.
>
> One topic that seems to come up a lot is scalabilit
On Fri, 2003-10-10 at 20:31, Ryan Thompson wrote:
> I know this is an opinion thing but what's the best functions or function set
> for password encryption?
>
> Currently my project uses md5 but I thinks it's more for checksums isn't it?
> Also, is mcrypt used for passwords? I looks like it's a t
On Fri, 2003-10-10 at 07:41, Donaldson Sgt Michael J wrote:
> $s_array1 = serialize($results);
>
> echo "";
>
> What's the problem with this code? I am trying to pass an array to create
> graph but instead of the pic i get this in my browser. Probably do to bad
> HTML syntax. Can I urlencode in a
Ben Edwards wrote:
On Tue, 2003-10-07 at 16:14, Brad Pauly wrote:
Probably because you have register_globals turned off. You can use
$_GET['_section']. You can also turn it on.
But it works in hundreds of other places on the server. I don't really
want to use $_GET because I s
Ben Edwards wrote:
Been having a problem accessing a variable that is passed on a URL.
I've been developing PHP for years and this makes no seance.
The variable I am trying to access in the script is $_section. I put
the following code at the beginning (before anything else apart from
echo "!
On Mon, 2003-10-06 at 19:41, Michael P. Carel wrote:
> Hi again,
>
> Have another problem here I need to get the output of this syntax
>
> $ps = (passthru("ps -ef"));
>
> and store it in an array line by line, I specifically want to get the
> Columns of the PID for this command and store it in a
Susan Ator wrote:
The problem with using a database is the files within the directory are
changing on, sometimes, a minute by minute basis. I think reading them into
the database then deleting them when they are deleted from the directory
would be a huge amount of overhead. No?
Something else whic
Payne wrote:
[big snip]
What I am getting this
INSERT INTO leads (leads_id, title, f_name, l_name) VALUES ('', "", "", "")
Is register_globals off?
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 2003-10-01 at 20:26, Manuel Lemos wrote:
> Hello,
>
> On 10/01/2003 08:43 PM, Chris W. Parker wrote:
> > $_SESSION['form_errors'] = validateFormData($formdata);
> >
> >
> > redirect("to_the_previous_page.php");
>
> You may want to study how this classic form validation and generation
>
On Wed, 2003-10-01 at 17:43, Chris W. Parker wrote:
> Hey people.
Hey
[snip]
> What I'd like to do is get rid of all the if's and what not and throw
> them into a function. What I thought of doing to replace all this is:
>
>
> $formdata['fname']['data'] = (!empty($_GET['fname'])) ? $_GET['fna
Brad Pauly wrote:
Nicole wrote:
I last increased my max connections to 500. That seemed to fix things
for a
while. Now I am getting the problems (database freezing up because too
many
connections) again. The site I run is pretty high traffic.
I wondered if anyone encountered a solution to
Nicole wrote:
I last increased my max connections to 500. That seemed to fix things for a
while. Now I am getting the problems (database freezing up because too many
connections) again. The site I run is pretty high traffic.
I wondered if anyone encountered a solution to handle this sort of proble
Greg Watson wrote:
I'd like to be able to switch Register_Globals ON, but I can't find my
php.ini file.
Running phpinfo(); tells me that my 'php.ini' file is stored in
C:\WINDOWS, but it's not there. I've ran a file search and still can't
find it.
The only ones that appear are 'php.ini-dist' an
Chris Boget wrote:
We are accessing the cookie values using $_COOKIE. What appears to
be happening is that when we echo the values of the above cookies on
"dev.change.wild.net", it is displaying the values set for on "change.wild.net".
Why is that? Because "change.wild.net" is the primary domain
Steve Buehler wrote:
[snip]
$array=("/etc/bind/options.conf.wp","/etc/bind/rndc.conf.wp","/etc/bind/keys.conf.wp");
if($k2b==$array){
do this1
}else{
do this2
}
You are close. Check out in_array(). http://us4.php.net/in_array
if (in_array($kb2, $array))
- Brad
--
PHP General Mailing
On Mon, 2003-09-29 at 17:07, Curt Zirzow wrote:
> I wonder if now is a place to introduce my new templating system.
Definitely! I'd be interested in seeing it.
> I have the same difficulties in letting just joe blow executing php
> code within templates, sometimes smarty is just to smart for
>
John Taylor-Johnston wrote:
Ok, but the problem is that I will, might have other fields. I need to filter out just the exerciseN fields. Interesting though thanks,
Then just look at $feild_name and see if it is one of the 'exercise' fields.
foreach ($_POST as $field_name => $field_value) {
if
John Taylor-Johnston wrote:
I have a form. It has any number of hidden fields, named "exercise 1-100". Their names all start with "exercise" as in:
... ?
any number fo these possible ...
How can I create one scipt that will recognise all of them? Any number of them. My idea is a bit like formma
Jeff McKeon wrote:
Ok, so if an argument is supplied to the function, the "= null" is
ignored?
Yep.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jeff McKeon wrote:
Function Showmessage($msgvar = null)
{
echo $msgvar;
}
?>
--snip--
What is the purpose in the function def of "($msgvar = null)"?? Why not
just "function showmessage($msgvar)"??
That sets a default value for $msgvar so you can call the function
without an argument and i
Donald Tyler wrote:
Yes, I ping it and it says its alive.
I don't understand. What did you ping? How does that mean it is running?
Getting a response from a ping does not mean MySQL is running. Did you
try connecting with a MySQL client from the command line? Have you
looked at the running proce
Donald Tyler wrote:
Yeah I thought so to. But I did a chmod 755 on the sock file and it
didn't help.
Here's the test script I am using: (Presume that's what you meant by
"connection string"?
if($Connection = mysql_connect('localhost', '**', '**'))
print 'Success!';
Jeremy Russell wrote:
Everything seems to work fine with this function except that when the
command runs and is to populate the "$scan_result" field. It doesn't Im
not sure why either. I also get an "End of file unexepected" error in
my apache logs as well.
Anybody have any advice.
Have you tr
Frank Tudor wrote:
This is more for a linux group post but I know someone can
provide enlightenment on this issue.
I have the latest version of apache and php I have created my
entire sie in a foxserv environment on windows but my production
environment is on mandrake linux 9.1
The globals are set
Stevie D Peele wrote:
[snip]
case "world":
$includes = "/includes/world.html";
break;
}
include ($include)
?>
It says Line 195 which is the ?>
Would it matter I don't have all of these files (i.e.
/includes/world.html) were uploaded yet?
Yeah. You need a ; at the end of the line
On Sat, 2003-09-13 at 11:08, Curt Zirzow wrote:
> * Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]):
> > > function &create_object() {
> > > [..]
> > > }
> > >
> > > $some_object =& create_object('some_object');
> > >
>
> This line should be:
> $some_object = create_object('some_object');
>
On Thu, 2003-09-11 at 18:02, John W. Holmes wrote:
> Jim Lucas wrote:
>
> >>> >>> $dins="Dinesh";
> >>> echo "";
> >>>?>
> >>
> >>Use double quotes for HTML attributes.
> >
> > Why do you say that?
>
> Yeah, I figured someone would ask that. :) I couldn't find anything
> definitive on w3c
On Wed, 2003-09-10 at 18:45, [EMAIL PROTECTED] wrote:
> i'mn about to learn some java, maybe swt in the eclipse environment, it
> would be nice if php could have the classes or the path precompiled in, so
> all you need to do is load the object ?
I think in php5 there will be a mechanism to handle
On Wed, 2003-09-10 at 17:58, [EMAIL PROTECTED] wrote:
> Hi there i was wondering is it more efficient to load class files and
> objects when needed per page or is it ok to include them in my main include
> file ?
It might be fine. If the class files are not that large, there might not
be much diff
Mark McCulligh wrote:
when I compiled with --with-mysql only, phpinfo() said:
Client API version: 3.23.49
I will recompile PHP with --with-mysql-sock instead.
I don't think this will change the client version. It is my
understanding that this will just tell the client to look in a specific
place
Bobby Patel wrote:
Hello Everyone,
I want to emulate session objects (as opposed to variables). I stumbled
upon creating multi-dimensional arrays, so I can do this:
$name = 'Bob';
$year = '2003';
$HTTP_SESSION_VARS[$user][$year] = 'registered';
which gives $HTTP_SESSION_VARS['Bob']['2003'] = 'r
Brad Pauly wrote:
CF High wrote:
why does PHP add 3 slashes to the following var:
$apostrophe = "I've got an apostrophe";
$slashed = addslashes($apostrophe);
echo $slashed;
Result: I\\\'ve got an apostrophe.
What's up with that -- why not just add a single
CF High wrote:
why does PHP add 3 slashes to the following var:
$apostrophe = "I've got an apostrophe";
$slashed = addslashes($apostrophe);
echo $slashed;
Result: I\\\'ve got an apostrophe.
What's up with that -- why not just add a single backslash?
Do you have gpc_magic_quotes enabled?
- Br
CF High wrote:
I split the number list to array -- $num_list_array = split("," $num_list)
Any ideas?
split uses a regular expression. I think you want to use explode here.
$num_list_array = explode(',', $num_list)
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
André Cupini wrote:
But what's the diference of the sintax:
function &bla(&$var)
That means the function will return a reference.
http://www.php.net/manual/en/functions.returning-values.php
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
Jennifer Goodie wrote:
I don't think I'd let someone pass any page they wanted via a get and just
include that page.
If you have URL fopen wrappers on I can create a page on my server and
include it to your page and pretty much execute any code I want on your
server.
example:
http://www.yourdomai
LoonySalmon wrote:
if page is defined in url, include page defined
else include home
You are on the right track. Take a look at the manual.
http://us4.php.net/manual/en/index.php
http://us4.php.net/isset
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
LoonySalmon wrote:
that isn't really what i want
i want to have a seperate file where i declare the variables.
what i'm getting at here is this, well, take a look at this page:
http://l33trus.servebeer.com/site/index.php
i just want to include a page into the table where it says that it's
included
Radek Zajkowski wrote:
Could someone pass on a snippet, a function or a technique for measuring
script times. It appears the host I am with is having some PHP engine
performance problems and I need to send them the figures.
Check out the user contributed notes on php.net for microtime().
http://us
Roger B.A Klorese wrote:
* Thus wrote zavaboy ([EMAIL PROTECTED]):
I have the following numbers:
12.400
666.75
23
369.2
3.234
How can I make them have at least 2 decimal places?
So, they will output:
12.40
666.75
23.00
269.20
3.234
What's so hard about this?
He wants two or more *significant*
Reuben D. Budiardja wrote:
I did strive for that. But whatever character I choose, the problem remains
that we can't guarantee that it's going ot be only used as deliminater, since
the deliminated string is an input from user. So the problem remains.
Are you adding the delimiter? If so, maybe yo
Johnny Martinez wrote:
Hi all,
I'm having an issue with quotes, slashes, and apostrophes being submitted
into text boxes and they are breaking my sql statements. So, I am trying to
do two things.
1. javascript form validation to prevent the double quotes and slashes
2. a sql_scrubber function to ha
Burhan Khalid wrote:
Listees,
Personally, I'm getting a little annoyed by this, and rather than
flame any thread in general, I would like to post this note
regarding some guidelines that I believe constitute responsible list
posting.
Here is a another resource on mailing list etiquette tha
caspar kennerdale wrote:
- I'm a little confused. The files are already in there real location. It is
just that someone may want to change that location at a later date.
e.g. they upload an image to a folder and two months later decide it is
better placed in a different folder.
Or am I missing some
Dan Anderson wrote:
I'm trying to split up a file and dump it into a mySQL database BLOB.
Wherever I run the query:
mysql_query("INSERT INTO table (field) VALUES ('{$buffer}')");
Nothing ever shows up in the table -- whethere field is a text or a blob
and whether I dump in text or binary. Oddly
Steve Jackson wrote:
I don't particularly need to *write* to the root directory. I do need to move the file to the root directory though as it's part of a CMS system. I can write the file to a directory which is adequately protected, but there has to be a way to move the file after it is written (t
On Tue, 2003-07-08 at 07:21, Steve Jackson wrote:
> If I set permissions of my server root to chmod 777 that's a security
> risk right?
> How do I set my server to allow me to write a file to my web root from
> another directory using PHP? Or is it a Unix problem?
>
> I have a generator file write
1 - 100 of 120 matches
Mail list logo