I think this is what you mean
-Original Message-
From: Philip J. Newman [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 15, 2003 8:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Confused a little with = to and grater than ...
Importance: Low
Well i thought about changeing access level
Hello,
Guys i try to join to tables
slides:
id
userid
file
moment
users
id
username
As there few slids per user and i want to get only last one, i use following
sql query, but it fetches me first slide. How can i make it fetch last one
please?
SELECT slides.file, slides.moment, users.id, us
Check the permissions on the directory you are trying to upload your
files. The host I am using required me to either chmod the upload
directory to 777 (not what I wanted to do) or run PHP with cgi-wrap
enabled - this allowed my PHP application to run as the user and
therefore had permission to
Storing the results of a function in a variable and referencing the
variable will almost always be faster, this should be no surprise
because instead of executing the function PHP just has to return the
variable's value.
In #1 since you only call the function once the function is only
executed onc
On 15-Mar-2003 CF High wrote:
> Hey all.
>
> Quick question:
>
> If I have a function that, say, prints out the months in a year, and I
> call
> that function within a 10 cycle loop, which of the following is faster:
>
> 1) Have function months() return months as a string; set var
> string_
RIghto then. Just make a nice website, on my windows box and everything and
when i moved it to the live server, the things that didn't work where file
uploads. What (if any) settings do i have to use for a Linux dir ..
to allow access for the file to be uploaded?
--
Philip J. Newman.
Head
Well i thought about changeing access levels into numbers so that only
LARGER numbers can access lower numbers and Lower numbers can't access
anything higher ... if that makes sence ...
So 3 can access 2 and 1,
2 can't access 3, but can access 2 and 1 and one can't access 2 or 3, but
can 1 ...
as
Hi,
Sunday, March 16, 2003, 10:52:49 AM, you wrote:
RD> Hi ... PHP newbie here.
RD> I'm migrating from ASP/vbScript.
RD> I'd like to set up a subroutine that will change several variables at once.
RD> In VB, I can say:
RD> Private Sub Change_Variables ($variable1, $variable2)
RD> $variable
"Jome" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Robert Dyke wrote:
> > Hi ... PHP newbie here.
> >
> > I'm migrating from ASP/vbScript.
> >
> > I'd like to set up a subroutine that will change several variables at
> > once.
> >
> > In VB, I can say:
> >
> > Private Sub Change_
Hi,
Sunday, March 16, 2003, 8:20:49 AM, you wrote:
CK> Tom,
CK> This seems like what I need exactly, but I am having a bit of trouble
CK> getting it to work.
CK> Here is how I have worked around this, but I know there is a 'real' way
CK> to do this. Any thoughts? I had to set the variables, or
Robert Dyke wrote:
> Hi ... PHP newbie here.
>
> I'm migrating from ASP/vbScript.
>
> I'd like to set up a subroutine that will change several variables at
> once.
>
> In VB, I can say:
>
> Private Sub Change_Variables ($variable1, $variable2)
> $variable1 = "Something different from it's origi
Hi ... PHP newbie here.
I'm migrating from ASP/vbScript.
I'd like to set up a subroutine that will change several variables at once.
In VB, I can say:
Private Sub Change_Variables ($variable1, $variable2)
$variable1 = "Something different from it's original value"
$variable2 = "I'm chan
what is the best way to check, if a value is NOT in an array?
the purpose is to take results from a webpage and check one-by-one if they
are in the txt file already. if they are not, i have to write them there..
If they are in there then i just want to leave them alone.
this is what i came up with
> When my PHP page sends text that is being passed in, it places an "/"
in
> front of the apostrophe. How do I encode or decode this when I am
> outputing
> the variable?
www.php.net/stripslashes
They are added to GET, POST, COOKIE data according to the
magic_quotes_gpc setting in php.ini.
---J
As noted earlier, in the manual
and please don't cross post.
Miles
At 05:37 PM 3/26/2003 +, shaun wrote:
Hi,
i would like to list all of the tables and field names in my database
e.g.
table 1
field 1
field 2
field 3
table 2
field 1
field 2
field 3
table 3
field 1
field 2
Hi All,
When my PHP page sends text that is being passed in, it places an "/" in
front of the apostrophe. How do I encode or decode this when I am outputing
the variable?
Thanks,
Doug Coning
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
Last time i checked, Google does infact query strings. As some of my
searches have lead to forums where the url is
www.someurl.com/viewtopic.php?f=3&t=345 ect.
I also belive there is a tutorial somewhere on the internet which converts
the variables into folders, so it looks like the article is in s
If the SMTP server is running on your machine, or you have access to it's
configuration. Create an e-mail address specificaly for PHP to mail from, as
i had trouble authenticating. But if i created the mailer address as a
local user on my SMTP server, it'd be allowed through. I believe it's a
metho
Tom,
This seems like what I need exactly, but I am having a bit of trouble
getting it to work.
Here is how I have worked around this, but I know there is a 'real' way
to do this. Any thoughts? I had to set the variables, or should I just
use the variables as ${dra_0} etc.?
// get the values f
php-general Digest 15 Mar 2003 21:51:12 - Issue 1940
Topics (messages 139791 through 139810):
Re: need a new challenge
139791 by: Dominik Werder
How to write a module for php?
139792 by: hzqbbc
Re: str_replace
139793 by: Jason Sheets
139805 by: Sebastian
SM
This is a sad day, indeed.
It seems that web developers tend to skip reading books to improve
knowledge, and rely on web/google/this newsgroup, etc
Alexandru
--
Alexandru COSTIN
Chief Operating Officer
http://www.interakt.ro/
+4021 411 2610
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROT
duplicate POST from php.db
"Shaun" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> i would like to list all of the tables and field names in my database
>
> e.g.
>
> table 1
> field 1
> field 2
> field 3
> table 2
> field 1
> field 2
> field 3
> table 3
> field
> Is or has anyone here been part of or started a PHP user group? I am
> thinking it would be a great thing to get started in my area (maybe
one
> already exists?) and I was looking for suggestions on how to go about
> it and things to know before getting started, etc.
> BTW. I live in Southern New
Hi all,
Is or has anyone here been part of or started a PHP user group? I am
thinking it would be a great thing to get started in my area (maybe one
already exists?) and I was looking for suggestions on how to go about
it and things to know before getting started, etc.
BTW. I live in Southern N
Hey all.
Quick question:
If I have a function that, say, prints out the months in a year, and I call
that function within a 10 cycle loop, which of the following is faster:
1) Have function months() return months as a string; set var
string_months = months() outside of the loop; then echo st
Thank you, that seems to work fairly well :)
cheers,
- Sebastian
- Original Message -
From: "Ernest E Vogelsinger"
| At 07:23 15.03.2003, Sebastian said:
| [snip]
| >doesn't work but also doesn't give any errors, I will try to explain what
I
| >am
The most efficient way to solve your problem is with a PHP extension I
developed. It handles constants and provides a type of persistent variable
too. It has been immensely useful for my projects.
http://pwee.sourceforge.net/
Lance
> -Original Message-
> From: Mike Mannakee [mailto:[EMAI
Hi,
Sunday, March 16, 2003, 4:52:10 AM, you wrote:
CK> Hi all,
CK> I have an array that gives me this when I do:
CK> print_r($my_array);
CK> Array
CK> (
CK> [0] => Array
CK> (
CK> [dra_id] => 5
CK> )
CK> [1] => Array
CK> (
CK> [dra
With the apparent very sad demise of Wrox (http://www.webstandards.org/
for details. This has also been reported on the webdesign list, although
the Wrox website itself doesn't seem to have anything) does anyone know
if "PHP MySQL Website Programming Problem-Design-Solution" will be
published?
Acc
Hi all,
I have an array that gives me this when I do:
print_r($my_array);
Array
(
[0] => Array
(
[dra_id] => 5
)
[1] => Array
(
[dra_id] => 8
)
[2] => Array
(
[dra_id] => 9
)
)
using a foreach() I wa
A better solution - make your pages look like static
html pages:
Search Engine Friendly PHP Pages
http://zend.com/zend/spotlight/searchengine.php
Search Engine-Friendly URLs
http://www.sitepoint.com/article/485
How can I pass variables to a script in the url like
/script/var1/var2?
How can I pas
Hi,
Dynamic queries are googled as far as I know (*old* search engines
probably didn't do this).
Search InterAKT and you'll see that we have all the pages indexed - and
our site is completely dynamic. (index.php?page=4_5, etc)
Alexandru
--
Alexandru COSTIN
Chief Operat
There is another php mailer class which is really good (and includes
authentication among alot of other things).
http://phpmailer.sourceforge.net
"Aitor Cabrera" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi, I'm trying to use the mail() funtion but I can only use this funtion th
Hi,
i would like to list all of the tables and field names in my database
e.g.
table 1
field 1
field 2
field 3
table 2
field 1
field 2
field 3
table 3
field 1
field 2
field 3
etc
is there a simple way to do this?
thanks for your help
--
PHP General Mailing List (http://ww
Hi All;
I am trying to decide how to lay out a site with a lot of articles, and I am
wondering if query strings get spidered by Google. I was thinking it would
make for an easy search engine if I could put the articles in fulltext
searchable MySQL columns, but I do not want to lose the ability of
Hello,
On 03/15/2003 01:43 PM, Aitor Cabrera wrote:
Hi, I'm trying to use the mail() funtion but I can only use this funtion the email myself (the same email that I put in the php.ini file). I f I try to email someone else I get an error
530 delivery not allowed to non-local recipient, try authe
Hi, I'm trying to use the mail() funtion but I can only use this funtion the email
myself (the same email that I put in the php.ini file). I f I try to email someone
else I get an error
530 delivery not allowed to non-local recipient, try authenticating -7
How can I authenticate myselft? Which
You could put logic in your header and footer file not to display output
if $_GET['action'] == 'print'.
Jason
On Fri, 2003-03-14 at 23:23, Sebastian wrote:
> doesn't work but also doesn't give any errors, I will try to explain what I
> am trying to do:
>
> I am trying to remove the header and foo
Hi all:
I want to write a small module for php and reduce some overhead while doingthe same
job with PHP scripts.
But i'm new to php dev, and even don't konw about the archtecture of phpmodule.. So
could anybody tell me where and how to get help to write a smallmodule?
Is there any sampl
Hi Chris (and all others),
This seems to me a very common "problem". I managed it too with different
approaches including complete on the fly code generation, but I don't think
that I have already the perfect solution.
Does anyone have more information on this topic?
bye!
Dominik
Metatable
Supp
php-general Digest 15 Mar 2003 09:30:16 - Issue 1939
Topics (messages 139763 through 139790):
Re: OT? Dynamic Page Setup in IE please help
139763 by: David T-G
inserting parameters into URLs dynamically
139764 by: Maureen Roihl
139766 by: Ernest E Vogelsinger
At 07:23 15.03.2003, Sebastian said:
[snip]
>doesn't work but also doesn't give any errors, I will try to explain what I
>am trying to do:
>
>I am trying to remove the header and footer to create a "printer friendly
>page" with just the content, here's what m
You can split $_SERVER['REQUEST_URI'] on the /'s to get the directories, eg:
http://site.com/info/your_pet/dogs/page.html would result in
/dir/anotherdir/page.php
So, (untested code):
Should echo something like:
'Name of My Site / Info / Your Pets / Dogs'
All you need to to do is echo $titl
Commonly, you don't need to encrypt it.
just md5() the password before inserting it, so you only store the md5'd
password.
then, to check on login, md5() the password they enter into a form... if
they match, then they are the same.
heaps less code, no need to mycrypt libraries to be installed, e
on 14/03/03 2:09 AM, -{ Rene Brehmer }- ([EMAIL PROTECTED]) wrote:
> Jumping in...
Jumping in also:
http://www.killersoft.com/downloads/pafiledb.php?action=file&id=4
This is a PHP port of a well respected Perl script which CHECKS THE FORMAT
OF THE EMAIL ADDRESS AGAINST THE RCF SPEC.
I use it E
As explained already, not a good idea :)
Also, if someone makes a copy of your form and excludes one of the fields,
then it won't be set in POST at all.
Keep an array of the fields you have in the form. I choose to set the field
as the key, and then for the value either 1 (required) or 0 (not re
46 matches
Mail list logo