Greetings All!
Recently I've been hit by a strange problem while coding a
file indexing system. I have a source directory of the following
format:
/files/0-9
/files/0-9/0-90
/files/0-9/0-91
/files/a
/files/a/a0
/files/a/a1
/files/b
...
/file/z
ok you got the picture I hope. nothing difficult. n
time()+86400?
- Original Message -
From: "WreckRman2" <[EMAIL PROTECTED]>
To: "'Php-General@Lists. Php. Net'" <[EMAIL PROTECTED]>
Sent: Saturday, January 20, 2001 4:56 PM
Subject: [PHP] Cookies...
>
> Currently my cookie expires in 1 hour, How can I make it expire in 1 day?
>
> setco
Nothing special, just add at the beginning of what you're trying to
send as HTML. Always worked for me?
Kristi
- Original Message -
From: "Pascal Clerin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 20, 2001 8:46 PM
Subject: [PHP] Sending a mail in HTML format
>
i have the following problem:
i have the possibility to create 100 different
pop-boxes and 100 different email-addresses.
the pop-boxes must have the following name:
wp-jk, wp-info and so on where
stands for my custumer number an the text
after the '-' for the part of the email-add
> I grab this line and try to make it an array like this:
print "line: $thelinefromfile\n"; //Check the line
> $var1 = trim($thelinefromfile);
> $var2 = split(" ", $thelinefromfile);
> $count = count($var2);
Are you sure $thelinefromfile is actually being set correctly?
Regards,
Sean
-
php-general Digest 21 Jan 2001 05:40:35 - Issue 467
Topics (messages 35815 through 35880):
Re: HELP!. INstalling PHP4 on a Cobalt RAQ 2!
35815 by: Rasmus Lerdorf
Re: Help w/ regular expressions for banned words
35816 by: Team JUMP
35818 by: Romulo Roberto Pereira
Steve,
If you're using MySQL, it has some built-in encryption functions that
would be slightly better than trying to implement XOR encryption in
PHP. The best solution would be to use PGP or GPG (GNU Privacy Guard) to
encrypt the credit card numbers before you put them in the
database.
Regards
im trying to build an array from an entry in a file and im having some
trouble with it.
in a file i have a line similar to:
1234 hello 123456 12345678
I grab this line and try to make it an array like this:
$var1 = trim($thelinefromfile);
$var2 = split(" ", $thelinefromfile);
$count = count($var
I'm actually using code from the web - sympoll from www.ralusp.net and
authlib, both give me errors and neither seems to be writing cookies... I
note in PHP the session save path is /tmp, where should this folder live?
-Original Message-
From: Markus Fischer [mailto:[EMAIL PROTECTED]]
Sen
Hello Jero,
(J == "Jero") [EMAIL PROTECTED] writes:
J> checking for Apache module support via DSO through APXS... apxs:Error:
J> Sorry, no DSO support for Apache available
J> apxs:Error: under your platform. Make sure the Apache
J> apxs:Error: module mod_so is compiled into your server
J> apxs
sniper Sat Jan 20 20:00:32 2001 EDT
Modified files:
/php4/ext/bz2 config.m4
Log:
Remove double 'yes' output.
Index: php4/ext/bz2/config.m4
diff -u php4/ext/bz2/config.m4:1.2 php4/ext/bz2/config.m4:1.3
--- php4/ext/bz2/config.m4:1.2 Fri Jan 19 21:09:0
In a message dated 21/01/2001 03:43:19 GMT Standard Time,
[EMAIL PROTECTED] writes:
<< if( eregi( "^([^@]+)@([^@]+)$", $email, $match)) {
$email_user = $match[1];
$email_domain = strtolower( $match[2]);
echo "$email_user at $email_doma
On Sun, Jan 21, 2001 at 04:24:09PM +1300, Lucas Young wrote :
> I think most of the problems I am having with PHP and sample code not
> working seems to be because cookies arent being generated
> I'm using php.ini in it's default config
> Windows 2000 Pro IIS PHP 4.0.4pl1
> PHP seems to be workin
On Sat, Jan 20, 2001 at 09:10:45PM -0500, [EMAIL PROTECTED] wrote :
> I have a form which users enter their email address, once submitted I need a
> way to chop it up and put it in lowercase. So that if a user submits
> [EMAIL PROTECTED] I want PHP to throw out Website4S and then make the rest
On Sat, Jan 20, 2001 at 05:57:25PM -0800, PHP List wrote :
> dump a table to a file on my server:
> $sql = "SELECT * INTO OUTFILE '/tmp/test.txt' FIELDS TERMINATED BY '\t'
> LINES TERMINATED BY '\n' FROM table_name";
>
> Problem is that once I have created the dump file, it will not allow me to
Hi all
I think most of the problems I am having with PHP and sample code not
working seems to be because cookies arent being generated
I'm using php.ini in it's default config
Windows 2000 Pro IIS PHP 4.0.4pl1
PHP seems to be working fine otherwise... I did the installshield install
then unzipped
Feel free (as in public domain) to use this function:
http://www.nirvani.net/software/misc/xor_string-1.0.0.inc.asc
Jeremy
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more
- - - - - - - - - - - - - - -
What you could do is have a bad word and a reallybadword list. Wank could
be a bad word and if it didn't appear along (ie. whitespace on either
side, or in plural) then it is ok. In really bad word, say F*ck, then it
couldn't appear at all...( ie. f*ckville would be invalid).
It would mean a se
Hi,
I have a form which users enter their email address, once submitted I need a
way to chop it up and put it in lowercase. So that if a user submits
[EMAIL PROTECTED] I want PHP to throw out Website4S and then make the rest
lowercase so I would get @aol.com
I know how to get the string to lo
Hi list,
I have scoured the archives with no good game plans.
Here is what I am trying to accomplish:
dump a table to a file on my server:
$sql = "SELECT * INTO OUTFILE '/tmp/test.txt' FIELDS TERMINATED BY '\t'
LINES TERMINATED BY '\n' FROM table_name";
take the file and email it to someone:
u
On Sat, Jan 20, 2001 at 06:46:39PM -0700, Pascal Clerin wrote :
> I want to send a mail in HTML format with the mail() function.
> I have tried to send html stuff in the message parameter, but when I read it
> in my hotmail account, I just see the html code and not what the html is
> supposed to
Hello,
I want to send a mail in HTML format with the mail() function.
I have tried to send html stuff in the message parameter, but when I read it
in my hotmail account, I just see the html code and not what the html is
supposed to show.
I suppose that it is necessary to send some additional head
Hi-
I'm new to this list. I'll start out with hopefully a good question. I have
a project coming up where I need to take some form input insert it into a
premade template and create a custom pdf for a user. The pdf will then be
e-mailed to the user or a link to download it e-mailed to them.
My q
Just go to one of those raunchy porn sites and pull the words out of thier meta tags
or "hidden" word list (i.e. white text on white background) buried in the HTML.
;-)
> hey,
>
> does anyone have a big compiled list? like a profanity library?
>
> maybe even a multi-lingual one!
>
> hey, i
On Sat, Jan 20, 2001 at 05:20:53PM -0800, Alex Black wrote :
> no without submitting information to the server with get or post.
>
> for example, if a bit of javascript you have comes up with some value, the
> only way you can get it to the server is to put it in a get and send the
> user to tha
>>> is there any benchmarks or proof that I should host a high traffic site on a
>>> FREEBSD/APACHE instead of a redhat Linux/Apache server?
I have _heard_ that linux is great under medium load, but does not deal as
well with super-high loads as well as freeBSD. that has not stopped me from
using
no without submitting information to the server with get or post.
for example, if a bit of javascript you have comes up with some value, the
only way you can get it to the server is to put it in a get and send the
user to that url:
http://www.mysite.com/index.php?your_js_var=your_value
etc.
_a
hey,
does anyone have a big compiled list? like a profanity library?
maybe even a multi-lingual one!
hey, it would be fun to make :)
_alex
--
Alex Black, Head Monkey
[EMAIL PROTECTED]
The Turing Studio, Inc.
http://www.turingstudio.com
vox+510.666.0074
fax+510.666.0093
Saul Zaentz Film Ce
> $i = 1;
> foreach ($dirs as $value) {
> if ($i == ($numberofelements-1)) $lastdir = $value;
> if ($i == $numberofelements) $file = $value;
> $i++;
> }
I don't think the foreach is necessary - Why can't you just say:
$lastdir = $dirs[$numberofelements-1];
$file = $dirs[$numberofelements];
T
Hello!
> whats the easiest way to go from "/dir1/dir2/dir3/hello.php" to "dir3/" ?
> dirname will cut off hello.php but i want to cut dir1 and dir2 as well
I believe that this will do the job
Mike,
Looks like your slashes are backwards use "\" instead of "/" to escape characters.
You will notice that "/" is used in UNIX directories and HTML tags.
Here is the corrected code:
print "\">Click Here";
I assume "PID" is a variable. If so, it should be noted as "$PID".
A really good
sterlingSat Jan 20 15:42:03 2001 EDT
Modified files:
/php4/ext/sablotsablot.c
Log:
Fix the scheme handler support and make it compile on win32 systems.
Index: php4/ext/sablot/sablot.c
diff -u php4/ext/sablot/sablot.c:1.32 php4/ext/sablot/sablo
Cool, so just iterate through the array and sort it into the template
assignment - quite nice!
Thanks for the pointers Kristi!
Regards,
Jaxon
On 1/20/01 3:37 PM, "Kristi Russell" <[EMAIL PROTECTED]> wrote:
> while ( $rowData = mysql_fetch_array($result))
> {
> list($fieldName, $fieldValue)
whats the easiest way to go from "/dir1/dir2/dir3/hello.php" to "dir3/" ?
dirname will cut off hello.php but i want to cut dir1 and dir2 as well
Thanks!
- Noah
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
I had the same problem, i ended up placing the php4apache.dll in the
apache/modules directory where the rest of the modules for apache are
stored.
Then change the entry in httpd.conf to: LoadModule php4_module
modules/php4apache.dll
everything worked then :)
good luck
Morkai
> I have PHP wor
Actually, it's excepting the time/date.
It's the path/domain that is creating a problem.
For some reason your original suggestion of
leaving the domain out is working today.
setcookie("ecb",$val,$expires,"/");
I could not get this to work for the life of me
yesterday. Either I was overworked/tir
I have some Delphi code that uses the XOR, if that would help.
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators
Hi,
I am trying to conect to a MySQL db and no matter what code I use I am always
getting denied, I know the password is correct as I have tested it elsewhere.
Just wondering if this could be caused by the fact that the password has a +
and a . in it. Would that get me denied, and how can I ge
> Currently my cookie expires in 1 hour, How can I make it expire in 1 day?
>
> setcookie("MemberLogin",$value,time()+3600); /* expire in 1 hour */
> setcookie("MemberLogin",$value,time()+3600,"/",".combatfs.com",1);
24*3600
-Rasmus
--
PHP General Mailing List (http://www.php.net
Currently my cookie expires in 1 hour, How can I make it expire in 1 day?
setcookie("MemberLogin",$value,time()+3600); /* expire in 1 hour */
setcookie("MemberLogin",$value,time()+3600,"/",".combatfs.com",1);
WreckRman2
Combat Flight Center
http://www.co
Hi
I'm looking for some free opinion polling code using PHP and MySQL. I've
checked a number of scripts and they haven't been up to scratch - I'm just
after a simple poll that allows a user to vote once (selecting yes or no)
and then for the remainder of their session they can only view the poll
I am trying to store some credit card numbers in a database, along with the rest of
the data (dangerous, I know). Unforunately, I am using a provider that doesn't have
the mcrypt functions compiled into PHP, so I guess I am stuck using the swiss-cheese
like XOR method of encryption. My client i
I am wondering if it would be more efficient to store the integer value that
the php function time() returns when a transaction is inserted into the
database and then when querying the database to get certain transactions
just use basic math functions to get the certain transactions.
For example
while($row = mysql_fetch_array($id,MYSQL_ASSOC)) {
foreach($row as $index=>$value) {
$z[$index][] = $value;
}
}
For a table with 3 rows and fields abc and def in each row this would
produce an array like this:
$z[abc][0]
$z[def][0]
$z[abc][1]
$z[def][1]
$z[abc][2]
Hello Everyone,
I am trying to make a page that will interact with mysql. I need to be
able to access the result of my mysql_query by using a for loop. I made a
little function that will sortof do this, but it returns a numeric array.
Of course, I want an associative array (becauses things
chagenbuSat Jan 20 12:50:00 2001 EDT
Modified files:
/php4/pear/HTTP Compress.php
Log:
whitespace
Index: php4/pear/HTTP/Compress.php
diff -u php4/pear/HTTP/Compress.php:1.1 php4/pear/HTTP/Compress.php:1.2
--- php4/pear/HTTP/Compress.php:1.1 F
while ( $rowData = mysql_fetch_array($result))
{
list($fieldName, $fieldValue) = each($rowData);
$template->assign("$fieldName", $fieldValue);
}
- Original Message -
From: "Jaxon" <[EMAIL PROTECTED]>
To: "Kristi Russell" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday
Hi,
How about this: Save the "last action time" as a session variable. Whenever
the user hits a page, check that session variable against the current time.
If the "last action time" is more than 5 minutes older than the current
time, log them out/unset session variables.
Should work I guess.
""
Christian Reiniger wrote:
>
> On Thursday 18 January 2001 23:05, Noel Akins wrote:
> > Question 2:
> > Is there a way for php to detect the cpu speed of a users computer?
>
> If you're on a Linux machine you can read /proc/cpuinfo and pick out the
> speed entry.
Linux on the sun sparc64 archite
Hello,
I plan to use session variables to identify if a user is logged in... I
know there is an option to set the life of the session but I am looking for
a way to end the session five minutes after they have did there last
"transaction" with my site...
I don't want people that are actively us
Edit your php.ini file and edit your sendmail_path directive. The default
is "sendmail -t -i". Add the correct -o switch (don't remember it
offhand) to have sendmail just queue the email instead of trying to
deliver right away. Then set up sendmail to deliver the queue at regular
intervals.
-R
I am facing a problem where some users on the server are using php
mail() function to mail a list of users in taken from mysql db(around
5000 users, but not spam), but this is getting the system crashed due to
excessvie loads and if I limit the delivery load on exim than even
geninue mail is getti
11 % 3
On Sat, 20 Jan 2001 [EMAIL PROTECTED] wrote:
> Lets say I have 11 / 3
>
> answer is 2.667
>
> what if I want to get the remainder of it
> so 11 / 3 would be 2
>
> is there a built in function for this in PHP?
> kinda like MOD in Visual Basic?
>
> - Thanks
>
> --
> PHP General Mailing
Lets say I have 11 / 3
answer is 2.667
what if I want to get the remainder of it
so 11 / 3 would be 2
is there a built in function for this in PHP?
kinda like MOD in Visual Basic?
- Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For add
Hello,
I am trying to compile PHP with the option "--with-apxs" to be able to
use both PHP 3 and PHP 4 on the same server.Unfortunately, if I try to
use configure with that option
./configure --with-mysql=../mysql --with-ldap=/usr --with-apache=../apache
--enable-track-var --with-imap=../i
Nik Gare <[EMAIL PROTECTED]> wrote
> Does anyone know where I could find a text list of every
> word in the English language ;-)
You could try (also) getting hold of ispell
a search on www.google.com/linux
or sunsite should get it.
You'll need something capable of uncompressing tar archives t
I have PHP working like a champ on my WIN 2K computer with IIS. Now I
would like to have it on my notebook, so I loaded Apache and have
following the instructions from Shanx; however, I get the message that
Apache cannot load php4apache.dll. It shows the correct path.
What is the best source fo
Hi,
I have used the following code to open a file
$fd=fopen("words.txt", "r");
$words = fread($fd, 100);
I then convert a string which is passed in a form to this script
$FirstName=strtolower("$FirstName");
And now I check to see if the lowercase version of $FirstName contains any of
the
No, it didn't work. I've tried [:space:]$bannedwords[$i][:space:],
\<$bannedwords[$i]\>, and \b$bannedwords[$i]\b. It doesn't detect anything.
I'm reading a list of banned words out of a text file and putting them into
$bannedwords. I'm pretty sure $bannedwords is right, since I've tried stuff
Mike,
Read and print this out :
http://www.zend.com/zend/tut/using-strings.php
It will increase your happiness.
Philip
On Sat, 20 Jan 2001, Mike Yuen wrote:
> I realize my slashes are most likely in the wrong spot and i'm new to this
> PHP stuff so a little help would be appreciated. I
www.thickbook.com is a good start. Last I looked it covered Flash 4, and
Flash 5 is quite a bit different.
Basically you have PHP print the variables in HTML and Have Flash parse
that. Flash can't directly parse PHP variables. It's not difficult once you
figure it out.
Mike
> From: "Abe Asghar"
At 11:25 20/01/01 -0700, Mike Yuen wrote:
>I realize my slashes are most likely in the wrong spot and i'm new to this
>PHP stuff so a little help would be appreciated. I get a parse error
>
>print "/">Click Here";
You've got the wrong type of slashes - use backslashes within the string -
e.g. p
I posted this twice on PHP-Install and got not a single reply back.
So, I'm trying here:
--
I've installed Sun's JSDK v1.3.0 onto my system (an Intel running
RH), and compiled PHP 4.0.4 with the --with-java=/usr/java flag. When I
look in php.ini, I see the following refere
Kristi,
That makes more sense, thanks, but one problem - I don't want to have to do:
$template->assign("FIELD2", $row[fieldname2]);
If I've already called mysql_fetch_array, then I have an array like this:
field1:field1_data
field2:field2_data
field3:field3 data
Is there any way to use the ar
Yup, the issue really seems to lie with
the path and domain.
I may just resort to;
header("Set-Cookie: ..")
-Brian
> -Original Message-
> From: DanO [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 19, 2001 7:10 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] cookies - not work
the slashes ate no the correct escape slashes...
the correct would be:
print "\">Click Here";
- Original Message -
From: Mike Yuen <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 20, 2001 1:25 PM
Subject: [PHP] What's wrong with this link?
I realize my slashes ar
The complete snippet is
= 5) {
$val = 1;
} else {
$val = $ecb;
$val++;
}
} else {
$val = 1;
}
$expires = mktime(12, 00, 00, 12, 31, 2005);
setcookie("ecb",$val,$expires,"/",".domain.com",0);
?>
I've gotten around it for the moment by using
a browser detection
I realize my slashes are most likely in the wrong spot and i'm new to this
PHP stuff so a little help would be appreciated. I get a parse error
print "/">Click Here";
Thanks,
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
Just create it online in such a way that you can spider your whole site and
burn it to CD. Granted you will lose the searchability of the DB, but the
contents would all be there, and could easily be indexed so that you could
still find what you are looking for.
Create one page that has a link to
This might help.
$no_trailing_zeroes = preg_replace("/0+$/","",$trailing_zeroes);
> Dear friends,
>
> I am accessing MySQL database using apache and php.
> I have to display a double integer field without trailing zeros.
> The number of digits after the decimal point varies.
>
> I have tried se
try this; I am working on the last word... ereg replace is not finding the
REGEX "\.$" - anyone has a clue?
";
echo $string."";
for($i=0;$i<$num;$i++) {
$string = eregi_replace("{$bannedwords[$i]}","[censored]",$string);
}
*/
echo $string."";
// take out the damn ; . : chars on the end of th
Ok,
I am now using the following code to check if there is any profanity in the
$FirstName however it just doesn`t work when testing, I am thinking it has
something to do with the way I`m loading the file, any better ways.
$words=file('words.txt');
$done=false;
while ((list($key, $val)=each($w
sbergmann Sat Jan 20 09:41:55 2001 EDT
Modified files:
/php4/pear/CacheFunction_Cache.php
Log:
Next time without the 'Oops!'.
Index: php4/pear/Cache/Function_Cache.php
diff -u php4/pear/Cache/Function_Cache.php:1.3 php4/pear/Cache/Function_Cache.php:1
sbergmann Sat Jan 20 09:40:06 2001 EDT
Modified files:
/php4/pear/CacheFunction_Cache.php
Log:
Fixed two small glitches. Note: The Shared Memory version of Function_Cache does not
work correctly at the moment, but I'm on it.
Index: php4/pear/Cache/Fu
Thanks for your help. Unfortunately, [:space:]$bannedwords[$i][:space:]
would not work, since I need to also check for the first and last word. In
a last-case scenario I could write special code for the first and last word,
but that may get ugly with bug-checking... but I've already tried
"\s+$b
Can you install flex and bison?
On Sat, 20 Jan 2001, Trunkz Santai wrote:
> Hi Im trying to isntall PHP4 on my Raq 2 but Im not having much luck. I was
> wondering if someone here could assist me.
>
> I uploaded apache and configured it and it worked fine. Its running in
> /usr/local/apache-x.x.
php-general Digest 20 Jan 2001 17:24:25 - Issue 466
Topics (messages 35781 through 35814):
Re: Classes question.
35781 by: Matt McClanahan
IMAP_HEADER
35782 by: Jochen Kächelin
IMAP_HEADER NEW!!
35783 by: Jochen Kächelin
Re: Date/Time Formatting
35784 by:
require "xtpl.p"; //include XTemplate engine
//don't need this - wrong.
> require "html.xtpl"; //html layout file with field names e.g. {firstfield}
You need to create a new instance of the Xtemplate class so:
//assign the new instance to a variable name you'll use - I called it
$template
//and
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
(Team JUMP) wrote:
>$num=count($bannedwords);
> for($i=0;$i<$num-1;$i++)
> {
> $string =
> eregi_replace("\b$bannedwords[$i]\b","[censored]",$string);
> }
>
>
> For whatever reason, no wor
Hi Im trying to isntall PHP4 on my Raq 2 but Im not having much luck. I was
wondering if someone here could assist me.
I uploaded apache and configured it and it worked fine. Its running in
/usr/local/apache-x.x.x
I uploaded the php zipped binary by ftp to /home/sites/home
then
mv php-4.0.4.tar.
Plain Text Dictionary:
http://www.mso.anu.edu.au/~ralph/OPTED/
Word list:
http://www.antionline.com/archives/text/word-lists/
I just found these by searching through Google you may find better.
Kristi
- Original Message -
From: "Nik Gare" <[EMAIL PROTECTED]>
To: "PHP User Group
Hi Debreceni,
I need to use a template parser, and XTemplate looks like it will do what I
need, but I'm not sure how. I can use mysql_fetch_array to produce an array
of field_name:value. If I use {field} names in the html template, can I use
XTemplate to take the array and parse?
This is what
Hi,
I`m trying to use the code below for my profanity checker but it keeps
returning a parse error on the second line 'while ((list etc'
Can anyone see anything wrong??
TIA
Ade
<< $done=false;
while ((list($key, $val)=each($words)) and $done===false)
{
$done=strpos(strtolower($name), $va
Hi.
I'm tearing my hair out trying to get UltraDev to talk to MySQL and I know there are
some Dreamweaver and MySQL users here.
I think I need some help installing a JDBC driver for this product.
Any help or sympathy is greatly appreciated.
Thanks,
Murph
$num=count($bannedwords);
for($i=0;$i<$num-1;$i++)
{
$string =
eregi_replace("\b$bannedwords[$i]\b","[censored]",$string);
}
For whatever reason, no word in $bannedwords will match in the string. I've
tested it with simple expressions like
There you go:
WHERE ;
// execute query
$query_result = mysql_query ($query,$dbconnection) or die ("Couldn't execute
query in Database.");
// fetching values with while
while ($row = mysql_fetch_array ($query_result)) {
$VAR1= $row["COLUMN1"];
$VAR2 = $row["COLUMN2"];
}
ec
Linux , Apache, MySQL
I have a problem in my database(MySQL), this is the senario:
I made an update statement on my table by wrong, then I restor my backup
copy by copying the backup files on the exist ones without stopping the
MySQL.
Now I have problems in searching data:
for example when I made
When uploading a file, the built in functions let you get the filename,
size, type. If the file is an image, is it possible to also get the width
and height of the image?
Right now we are giving input boxes for the user to enter the correct
values, but I'd rather that my code do it for them. Th
Do you mean, like if they are editting their profile, their existing one
shows up in the text box?
Here is a chunk of code I wrote to do that this morning:
---
"); ?>
PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTE
I've a mySQL db with user information (e.g.: name, address, phone, etc.).
I'd like to pre-load an HTML form with the existing user information in
order to enable the users to update some of the information.
Are there any PHP sample scripts that I may look at to do this?
Thank you!
--
PHP Ge
WAHO! It works! Thanks Alex!!
Fraser
On Fri, 19 Jan 2001, Alex Akilov wrote:
> Fraser,
>
> Yes, you must set your LD_LIBRARY_PATH prior to running ldd. In a terminal,
> export
>
>LD_LIBRARY_PATH=/home/local/java/jdk1.2.2/jre/lib/i386:/home/local/java/jdk1.2.2/jre/lib/i386/class
Hey!
Is it possible to get the names of the variables allocated in the memory?
thank you,
Rom
Richard,
THANK YOU!!!
I agree -- this method provides many security vulnerabilities and I appreciate the
warning. The database is definitely secure -- from web-surfers and others. Also, I
intend to parse the information going into the database myself -- using a simple parse
engine I will cr
In article <[EMAIL PROTECTED]>,
Brandon Orther <[EMAIL PROTECTED]> wrote:
> Check here, I have never messed with it just ran into it the other day.
> I hope it helps.
> http://www.php.net/manual/en/ref.pspell.php
Sort of. Thanks go to Kristi as well for spotting this, PHP has so many
bult i
In article <94adfp$5le$[EMAIL PROTECTED]>,
Stephan Ahonen <[EMAIL PROTECTED]> wrote:
> I'd make it an array:
> $filter = array(moron, idiot, pratt);
> foreach($filter as $badword) {
> if (strstr($name, $badword)) {
> do this if it contains one of the bad words
> }
> else {
> do this if
> Strange, I compiled it at home, and it gave me no troubles, must be a
> wrong regexp to replace spaces by tabs then. I'll look into it later.
Another issue is the lo_lseek() call. The third and fourth
parameters are prototyped as int, but you are passing in
char *.
- Sascha
On Sat, 20 Jan 2001, Sascha Schumann wrote:
> > +PHP_FUNCTION(pg_lolseek) {
> > + val **pgsql_lofp, **seek_offset, **seek_whence;
> ^^^
> > + gLofp *pgsql;
> ^
> > + long int offset;
> ..
> > + ffset = lo_tell((PGconn *)pgsql->conn, pgsql->lofd);
> ^
> > + ETURN_LONG (of
> +PHP_FUNCTION(pg_lolseek) {
> + val **pgsql_lofp, **seek_offset, **seek_whence;
^^^
> + gLofp *pgsql;
^
> + long int offset;
..
> + ffset = lo_tell((PGconn *)pgsql->conn, pgsql->lofd);
^
> + ETURN_LONG (offset);
^
Derick, this patch is completely brok
sas Sat Jan 20 02:10:50 2001 EDT
Modified files:
/php4/ext/pgsql pgsql.c
Log:
Revert last completely broken patch.
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.83 php4/ext/pgsql/pgsql.c:1.84
--- php4/ext/pgsql/pgsql.c:1.83 Thu Jan 1
I know this must have been asked before so I apologize in advance...
Is there a way to flush the $PHP_AUTH_USER / $PHP_AUTH_PW vars? I have a
routine where someone can logon to my admin section as a guest and enter a
new username/password. Is it possible for him to then logout (flushing the
guest
1 - 100 of 112 matches
Mail list logo