Look up using the mysqli libraries. This was about a 30 second php.net
search.
http://us3.php.net/manual/en/mysqli.insert-id.php
Cheers,
Curtis
On 6/26/2013 1:33 PM, Tedd Sperling wrote:
Hi gang:
What's the most-current way to get the ID of the last recorded inserted in a
dat
Ethan Rosenberg wrote:
> Dear List -
>
> My
mysqli extension seems to have gone away.
>
> $host =
'localhost';
> $user = 'root';
> $password = 'SdR3908';
> echo "hello2";
>
var_dump(function_exists('mysqli_connect'));// this returns boo(false)
> $db = 'Store';
> $cxn =
mysqli_connect($host,$use
Matijn Woudt wrote:
> On Mon, Aug 19, 2013 at 9:40 PM, Ashley
Sheridan
> wrote:
>
>>
>>
>> Matijn Woudt
wrote:
>> >On Mon, Aug 19, 2013 at
8:55 PM, Ashley Sheridan
>>
>wrote:
>> >
>> >>
>> >>
>> >&g
debugging. I've used PHPEdit,
Zend, Bluefish, Eclipse and a couple others. Bluefish works better
on Linux than it does on Windows.
Use the tool for the job at
hand.
Just my $0.02 worth.
cheers,
Curtis
Tim Streater wrote:
> On 20 Aug 2013 at 23:59,
PHP List wrote:
>
>>
While
Sebastian Krebs wrote:
> 2013/8/21 Curtis Maurand
>
>>
>>
>>
>> Sorry in advance for the top post.
>>
>> Use the right tool for
>> the Job.
I've use Java, C# and PHP.
>>
>> 1. I hate the
>> Perl-like object calls in PHP.
Is the subdomain also in a subfolder of the main domain?
Jim Giner wrote:
> I have a main domain (of course) and a sub
domain. I'm really trying to
> steer my personal stuff away from
the main one and have focused all of
> my php development to the
sub-domain.
>
> Lately I noticed that google
On 9/20/2013 1:24 PM, Joshua Kehn wrote:
On Sep 20, 2013, at 1:23 PM, Larry Martell wrote:
On Fri, Sep 20, 2013 at 11:16 AM, Joshua Kehn wrote:
I'm in my 20's and rarely, if ever, use a dedicated mouse. I've transitioned to
having all my workstations be laptops of one sort or another and th
how about creating two arrays, one empty one.
pop the elements
you want out of the first array and push them to the second. skip
the push on the elements you don't want in the second array?
Just a thought.
--curtis
Paul M Foster wrote:
> On Mon, Mar 14, 2011 at 09:34:33PM +0100, Pe
to it. I still like my Zimbra server idea, better for this.
--Curtis
Stuart Dallas wrote:
> On Thursday, 17
March 2011 at 16:56, Negin Nickparsa wrote:
> internal messaging
system
>
> In that case it's simply a matter of creating
a table structure to hold
> the messages and b
I would suggest Zimbra. It just gets it done. Run it on
Ubuntu Server or CentOS.
--Curtis
Negin Nickparsa
wrote:
> I'm Negin
> what is Squirrel Mail ?
> On
Thu, Mar 17, 2011 at 7:55 PM, NetEmp
wrote:
>> @Nergin: are you trying to create an application like
Squirrel
Zimbra Server.
Negin Nickparsa wrote:
> :( maybe
it's ticketing i don't know exactly!!!:"(
> here are the
things that i must do:
>
> receiving mails and return of
mails
> showing emails 2 staff
> when a mail received it
can be viewed in a moment(like ajax)
> drafts and upload and
download from
Its a free exchange server replacement. It has shared folders,
shared documents, email, calendars, shared calendars, notifications, etc.
etc. etc.
http://www.zimbra.com
--Curtis
Negin Nickparsa wrote:
> can u explain zimbra server 4 me?
>
> On Thu, Mar 17, 2011 at 9:44 PM, Curti
You might also look at CRM applications such as Sugar CRM.
--Curtis
Negin Nickparsa wrote:
> can u explain
zimbra server 4 me?
>
> On Thu, Mar 17, 2011 at 9:44 PM,
Curtis Maurand
> wrote:
>>
>> Zimbra Server.
>>
>> Negin
Nickparsa wrote:
>>>
ut, is there a way a script can
write or copy within its own dir?
>
Not unless it has
permission to do so. Most likely, however, it can write to the temp
space such as /tmp or /var/tmp.
--Curtis
while loop and it's made no difference.
thanks in advance,
Curtis
$dbhandle2 = mysql_connect($hostname, $username, $password)
or
die("Unable to connect to MySQL");
//echo "Connected
to MySQL";
//select a database to work with
$selected = mysql_select_db("databas
st a
typo or your actual
> code? Array elements really should be
referenced by square brackets.
>
I made the change
from the curly braces. I didn't actually write the code. I'm
thinking of re-writing this code using the PEAR MDB2 libraries and
mysqli. Would that help?
--Curtis
ction at "0x0096c1bf" referenced
memory at "0x100058a8". The memory could not be "written".
Thanks in advance,
Curtis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I had allways used PHP as an Apache module up intil now. They seem
incompatible.
I reinstalled PHP as a CGI binary. PHP inserts the following:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
ScriptAlias /php/ "C:/Program Files/PHP536/"
Action application/x-httpd-php "C:/Program Files/PHP536
brary several years back (NPTL), Theading works. I use
the threading version of apache and threading is enabled in PHP.
It works pretty well until its under attack by the spammers.
--Curtis
?
>
> b.
>
>
> On 29 March 2011 01:14, Curtis Maurand
wrote:
>
>>
>>
>> Nathan Nobbe wrote:
>> > On Mon,
Mar 28, 2011 at 3:34 PM, Bostjan Skufca
>> wrote:
>> >
>> >> If you need
high performance you probably already know
seems to me that you have an array with integers as the keys.
$desired_key = rand(0, count($array));
$desired_value =
$array[$desired_key];
Cheers,
Curtis
Simon J Welsh wrote:
> On 9/04/2011, at 3:39 PM, Scotty Logan
wrote:
>
>> On Apr 8, 2011, at 8:20 PM, Kirk Bailey
w
Curtis Maurand wrote:
>
>
>
> seems to
me that you have an array with integers as the keys.
>
>
$desired_key = rand(0, count($array));
sorry, I hadn't had
coffee, yet. The line above should be:
$desired_key = rand(0, count($array) - 1);
>
> $desired
to be. I can't seem to set the delimiter to '" "' I can't seem
to find any good
examples, either.
I can't split on spaces, because the user
agents generally have spaces in them.
I was trying to use
explode.
print_r(explode('" "', $line);
Any help
would be appreciated.
thanks,
Curtis
nevermind. There is a function: fgetcsv();
Thanks,
Curtis
Curtis Maurand wrote:
>
>
> Hello,
> I'm trying to run through an apache log
file in an attempt to
> get all of the user agents.
>
> The question is how do I split the
> string? I can't
seem t
Stuart Dallas wrote:
> On Monday, 11 April 2011 at 02:12, Curtis
Maurand wrote:
> nevermind. There is a function: fgetcsv();
>
> Ewww!
Say what you want, it works. Your
solution is way more elegant. regex's are not my strong suit.
I have to have the regex pocket reference t
I have the following code which should increment the value of the array
$iplist if there is a value there. When I walk the array at the end,
all the values = 1. What am i doing wrong?
--Curtis
while (!feof($INPUTFILE))
{
$chunks = fgetcsv($INPUTFILE, " ", '"')
engine=
--C
Grega Leskov¹ek wrote:
> Can smbd please look at this sentence - I got an error and do
not
> know how to fix it - I am still very unfamiliar with
MYSQL:
>
> CREATE TABLE log ( idlog int auto_increment
not null, imepriimek
> varchar(50), clock timestamp, action
varchar(30), o
econd on mysql goes from roughly 4 per second to about
12,000.
Does anyone have any ideas?
Thanks,
Curtis
Marc Guay wrote:
>> Does anyone have any ideas?
>
> Sounds like it's getting caught in a loop. Post the whole script
for
> best results.
>
It looks like the site is
under attack, because I keep seeing the query, "SELECT catagory_parent FROM
t_catagories where catagory_ID=" .
$_currentCat"
wh
Marc Guay wrote:
>> Does anyone have any ideas?
>
> Sounds like it's getting caught in a loop. Post the whole script
for
> best results.
>
It looks like the site is
under attack, because I keep seeing the query, "SELECT catagory_parent FROM
t_catagories where catagory_ID=" .
$_currentCat"
wh
Tim Streater wrote:
> On 11 May 2011 at 19:25, Curtis
Maurand wrote:
>
>>
$_cartTotal="$0.00";
>
> Surely that should
be:
>
> $_cartTotal = "0.00";
Good
pickup. I missed that. I didn't write the code, I'm just
trying to figure out what's going on.
Thanks, I'll look at
that. --C
{
$_parent =
"0";
}
}
and that solved the
problem.
Thank you, everyone for your help.
Curtis
$_SERVER['HTTPS']
--Curtis
On 5/26/2011 3:37 PM, Geoff Shang wrote:
Hi,
Apologies if this is covered somewhere but I've searched fairly
extensively and not found anything.
I'm working on an application which has a function for redirecting to
a given URL. This i
There's an interesting discussion on this page.
http://www.linuxquestions.org/questions/linux-software-2/pdf-to-png-converter-57142/
Cheers,
Curtis
Sean Kenny wrote:
> Outside
the box a bit, but is there perhaps a web-service that does
>
this, something like http://www.thumbali
Jim Giner wrote:
> outlook doesn't offer an option for
that.
ctrl-END gets you to the bottom of a message.
the
constant and try to access a variable with that name.
Any ideas?
echo XYZ . "\n";
--Curtis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Constants in strings
>>
>> On
Wed, 06 Jul 2011 12:56:21 +0100, Stuart Dallas wrote:
>> >
My guess is that the preceding $ causes PHP to interpret the next
>> token
>> > "{XYZ}" as a variable or a
constant, but without that preceding $ it
>
Leonardo wrote:
> Dne středa 03 srpna 2011 15:22:44
Matty Sarro napsal(a):
>> Hey everyone,
>> I am a
super newbie just beginning to learn PHP. Awhile ago, I had
>>
used aptana for dabbling with php and was amazed to find out that it
>> had a built in php interpreter so I could do some minor
tes
Mike Hansen wrote:
>>
> I mostly use VIM.
However, I did play with PHP Storm, and it's pretty
> nice. It
also has a plug-in that emulate vi/vim.
>
> I've used
Komodo in the past. It's also good.
>
I've used and like
Quanta Plus (KDE on Linux). I've used Bluefish on Windows and Linux,
Notepad++
try http://localhost/test.php
Mateus Almeida
wrote:
> Yes, I've put the "test.php" in the htdocs.
> The server works with an html file, but it doesn’t work with
the php.
>
> -Mensagem original-
> De:
Bastien [mailto:phps...@gmail.com]
> Enviada em:
terça-feira, 20 de setembro de 2011
You've got a configuration issue. You'll need to add a
directive to execute CGI scripts to the httpd.conf or
whereever the equivelent file is. Normally, I would tell you to
download and install xampp which will give you a working setup out of the
box.
--Curtis
Mateus Almeida wr
There are tons of (free) jquery gadgets that do image rotation. All
you'd need to do is push the list out to the jquery script.
Cheers,
Curtis
On 10/15/2011 10:50 AM, d...@nkmo.com wrote:
We have a simple script which rotates and image to a random value, saves
it to a cache director
little apps and scripts that I've written to work from the command line
that way. On top of that, PHP executes so much better than Perl that I
don't write much in Perl any more. I just wish PEAR had better
documentation.
Cheers,
Curtis
--
PHP General Mailing List (http://w
Robert Cummings wrote:
Robert Cummings wrote:
>
>
Given the discussion, I think the following is in order: BAZINGA * 2
And what does any of this have to do with PHP? It's time to
end this thread.
--Curtis
On 11/22/2011 7:15 AM, Judson Vaughn wrote:
Isn't Eastern time zone minus 5 not plus 5 hours of GMT?
Jud
It depends upon your point of view. ;-)
It's generally understood that EST5EDT is GMT (UTC) -5 because eastern
time is 5 hours behind.
+5 puts you in India somewhere.
Chee
nything helpful, yet.
Have I overlooked something or is there another way to identify the server?
php_uname('n'); http://php.net/php_uname
folks try:
$_SERVER['SERVER_NAME']
Cheers,
Curtis
It seems to me that the file structure should be in the source code
somewhere and you can download that.
--C
On 11/27/2011 7:28 PM, David McGlone wrote:
On Mon, 2011-11-28 at 01:15 +0100, Camilo Sperberg wrote:
You can export the bookmarks as a json or html and then read it easily with php
Store everything in the database in an encrypted form.
Stuart Dallas wrote:
> On 22 Dec 2011, at 19:34, Paul M Foster
wrote:
>
>> I have concerns that the items in a
session buffer can be copied and
>> used to spoof legitimate
logins. This is harder to do when the info is
>> held in a
database
it will be somewhere in php's search path. you'd be better off trying
search for a file of the same name.
cd /usr/lib/php5
find . -iname "vB_ProfileBlock*"
if you have locate installed, try: "locate vB_ProfileBlock"
Cheers,
Curtis
On 1/6/2012 6:11 AM,
Make sure IIS is not running. That'll cause all kinds of trouble.
Tim Streater wrote:
> On 13 Jan 2012 at 15:05, David
Savage wrote:
>
>> I open
the html file up from a windows explorer window (Q:\asterisk\),
>> and so
>> IE opens it up, but the problem lies in
the fact that I cannot find
>>
Tim Streater wrote:
> On 13 Jan 2012 at 15:05, David Savage
wrote:
>
>> I open the
html file up from a windows explorer window (Q:\asterisk\),
>>
and so
>> IE opens it up, but the problem lies in the fact that
I cannot find
>> apache
>> service running in the
background...haven't figured out wh
On 1/15/2012 8:48 PM, Chris Payne wrote:
Hi Jason,
I've tried lots of different things, including:
echo "" . round(68500, 1000) . " ROUNDED";
thinking that might be it, but i'm stumped
This is the example I was given (And have to go by):
"If the loan amount is $68500.00, the insurace will
On 1/15/2012 9:24 PM, Robert Williams wrote:
On Jan 15, 2012, at 19:00, "Simon J
Welsh"mailto:si...@welsh.co.nz>> wrote:
On 16/01/2012, at 2:48 PM, Chris Payne wrote:
"If the loan amount is $68500.00, the insurace will be based on
$69000.00 as the amount is always rounded up to the next $100
Xavier Del Castillo wrote:
> On 01/23/2012 10:28 AM, Donovan
Brooke wrote:
>> Hi, is anyone else having problems with
PHP.net today?
>>
>> Donovan
>>
>>
> Working fine from here. Do a traceroute to the site,
it might an ISP
> related problem.
>
>
It
came right up for me.
--Curtis
"C:\/Program\ Files\\..."
--C
Negin
Nickparsa wrote:
> I can't move Gams because it has many dll files
which should be in there.
> gams.exe should be execute in that
path file in program Files
> one time I tried to do it and when It
shows me missing files I copy pasted
> many files but It need
rsync is your friend.
--C
Stuart Dallas
wrote:
> On 26 Mar 2012, at 14:53, rene7705 wrote:
>
>> My last thread got derailed into a javascript and even
photoshop
>> discussion, and while I can't blame myself for
that really, this time I
>> would like to bring a pure PHP
issue to your scrutiny.
rene7705 wrote:
> On Tue, Mar 27, 2012 at 1:21 PM, Peter Ford
wrote:
>
>> On 27/03/12
12:13, rene7705 wrote:
>>
>>> hey, I just read
the rsync man page for the first time, and while it
>>>
sure
>>> looks simple enough for my taste, wouldn't updating
multiple remote
>>> domains
>>> be like a
who
On Thu, 10 Feb 2005, Richard Lynch wrote:
>
> In honor of our recent Super Bowl, here is a slow-motion instant replay:
>
> Bob: "Well, it's a great day so far for PHP today, isn't it Jim?"
> Jim: "You've got that right, Bob! Now let's check out this play."
> Bob: "Watch as the user surfs right t
On Thu, 10 Feb 2005, Richard Lynch wrote:
> Ed Curtis wrote:
> > On Thu, 10 Feb 2005, Richard Lynch wrote:
> >>
> >> In honor of our recent Super Bowl, here is a slow-motion instant replay:
> >>
> >> Bob: "Well, it's a great day so far f
I need a way to make sure an upload has been "uploaded" correctly to my
server.
I know version 4.2.0 has the $_FILE['userfile']['error'] directive but
unfortunately I'm stuck with verision 4.1.2 at the moment and upgrading
may be a way off for me.
Should I use file_exists($_FILES['userfile']['tm
skyward quash obsolescent menopause capacious bum ringside stripy ministry deleterious
prepare chou buttress truism coronate summate dominion absorptive bookshelves
humidify spew dogma bob cufflink cosmology guthrie sainthood emily dynamism heat levin
sleepy yon addison bijection cognizant re
Hi
Anyone know how to clip the number of characters in a string? For instance,
I have a string carrying a long piece of text, say, of 200 characters, but I
want to reduce this to just the first 100 characters.
Thanks in advance.
Russell
--
---
Russell Curtis
Hi
Anyone know how to clip the number of characters in a string? For instance,
I have a string carrying a long piece of text, say, of 200 characters, but I
want to reduce this to just the first 100 characters.
Thanks in advance.
Russell
--
---
Russell Curtis
Wow, that was fast - many thanks.
Cheers
Russell
--
---
Russell Curtis
M +44 (0) 7796268780
www.russellcurtis.com
www.buildingdetails.co.uk
"Torsten Roehr" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Russell Curtis&qu
I'm trying to use the split function to identify the extension of an
uploaded file:
$file_name = $_FILES['userfile']['name'];
$pieces = explode(".", $file_name);
$file_extension = $pieces[1]; // piece2
Which will work, providing that the uploaded file only has one full-stop in
the name (
Many thanks - just what I was looking for!
Cheers
Russell
--
---
Russell Curtis
M +44 (0) 7796268780
www.russellcurtis.com
www.buildingdetails.co.uk
"Ewout" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> - Original
I'm having some trouble echoing a value to a file that is being pulled
from a MySQL database. I've included my code below I'm sure it's something
really simple but I'm not seeing it. $row['users.name'] and
$row['users.company'] echo nothing while $row['cnt'] echoes it's expected
values. If anyone
On Mon, 12 Jul 2004, Pablo Gosse wrote:
> Try changing:
>
> fputs($ap, $row['users.name']);
> fputs($ap, $row['users.company']);
>
> To:
>
> fputs($ap, $row['name']);
> fputs($ap, $row['company']);
>
> That should do the trick.
>
> Cheers,
> Pablo
>
That did the trick! I knew it was something sim
base (Trying out the)
What exactly do I need to do to the text so that any quotation marks
(single or double) get input into the database.
TIA,
Ed Curtis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 16 Jul 2004, John W. Holmes wrote:
> Let's say you have $_POST['text'] from the user.
>
> To display the value back to the user with magic_quotes_enabled, you'd
> do this:
>
> echo htmlentities(stripslashes($_POST['text']));
>
> To put the value into a hidden form element, you'd do this
On Fri, 16 Jul 2004, Justin Patrin wrote:
> This is why he said: "Since you seem to have magic_quotes_gpc enabled,
> you can put the value directly into your query."
>
> You shouldn't use htmlentities when putting it into the DB. Use it
> when displaying the text.
I tried it both ways and it on
On Fri, 16 Jul 2004, John W. Holmes wrote:
> Ed Curtis wrote:
> > On Fri, 16 Jul 2004, Justin Patrin wrote:
> >>This is why he said: "Since you seem to have magic_quotes_gpc enabled,
> >>you can put the value directly into your query."
> >>
>
I'm currently running Debian Woody with PHP 4.1.2 installed by default.
It's really stable and I like it alot. Would I run into any problems
upgrading it to say 4.3.0. There are some functions I need in it that
4.1.2 doesn't have. I'm not ready to make the jump to PHP5 yet. I've
tried it on a t
Ben wrote:
It really depends on your situation.
We are an ISP hosting lots of website. Upgrading from 4 to 5 means a lot of
sites will have trouble.
Personally I have some problem of upgrading from 4 to 5.
The below codes work on 4:
include("DB/DataObjects.php");
$pro = DB_DataObject::facto
I'm converting upper case characters in a string to lower case and am
coming up with an empty string.
As I've done a million times before with other non-numerical strings.
$thisStr = "CL22";
$strLow = strtolower($thisStr);
echo $thisStr;
Why does $strLow come up empty?
Thanks,
Ed
--
PHP
Richard Heyes wrote:
Ed Curtis wrote:
I'm converting upper case characters in a string to lower case and am
coming up with an empty string.
As I've done a million times before with other non-numerical strings.
$thisStr = "CL22";
$strLow = strtolower($thisStr);
echo
Michael Kubler wrote:
Does :
/echo strtolower("CL22");/
work?
You could also try :
/var_dump($strLow);
/
Ed Curtis wrote:
Richard Heyes wrote:
Ed Curtis wrote:
I'm converting upper case characters in a string to lower case and
am coming up with an empty string.
As I
I'm trying to use preg_match to find a string in a system path.
What I need to do is see if the string '/realtors' exists in a variable
named '$path'.
I know '/' is used as a container within the command itself. How do I
escape it to find the string '/realtors'?
Thanks,
Ed
--
PHP General
Christian Haensel wrote:
Hi Ed,
did you try the backslash as escape character?
That's what did it. I was thinking the \ was the escape for the
command but wanted to make sure.
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I know this is probably simple as all get out but it's early and I can't
find an answer anywhere after searching for a while
I need to assign a number to a variable and then use that variable in a
session to store an array. It's for a shopping cart system I'm building.
What I've got is:
> Just make $item a 2-dimensional array, with the first diemnsion addressed by
> $count; so:
>
> $item[$count][] = $_POST['phone'];
> $item[$count][] = $_POST['category'];
> $item[$count][] = $_POST['copy'];
> $item[$count][] = $_POST['pic_style'];
> $item[$count][] = $cost;
> $item[
ust match it
against a mime type your looking for.
Ed Curtis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can you call getimagesize() multiple times in one script? I'm trying to
use it multiple times but it only seems to work in the first loop I call
it in. I read something in the docs about it cacheing the results and
didn't know if this has something to do with it.
I also tried creating an array
I've got this chunk of code (included) that used to work fine in a
script up until a couple of weeks ago. Nothing has changed in the php
page at all, it just quit working. If I take this chunk of code and
place it alone in a php script it works just fine, but only by itself. I
don't understand
Is there a way to make readdir output filenames alphabetically?
Thanks,
Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ed Curtis wrote:
Is there a way to make readdir output filenames alphabetically?
Thanks,
Ed
Never mind. I figured out how to do it using an array and sort.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Make sure you use imagecreatetruecolor() with GD when resizing images or
you'll get some undesirable results. Imagemagick's convert and mogrify
worked well for me although I was resizing an uploaded image.
Ed Curtis
On Thu, 26 Feb 2004, Will wrote:
> Thanks!! I found some doc
Does anyone happen to have the link on microsoft's support site that
addresses the problem with the latest IE 6 hotfix and incomplete headers
being sent? I can't seem to find my bookmark and I can't access the
archive site to find it.
Thanks,
Ed
--
PHP General Mailing List (http://www.php.net/
On Tue, 30 Nov 2004, Ahmed Abdel-Aliem wrote:
> Hi,
> i have a tables in database which fields is
> id - title - category
>
> what i want to do is to display the categories entered in the
> categories fields, without repeating any of them
> for eample if the records is like follow
>
> ID
I've been looking at the docs and found preg_match and preg_match_all but
these functions only seem to match 1 specific search item. I want to make
sure a variable (say $mlsnumber) contains only numbers and no spaces. What
would I use to accomplish this?
Thanks
Ed
--
PHP General Mailing List (
On 5/29/05, Andrew Brampton <[EMAIL PROTECTED]> wrote:
> Warning: filemtime(): Stat failed for master.log (errno=75 - Value too large
> for defined data type) in test.php on line 5
>
> when I do the following line of code:
> filemtime ('master.log');
> My code was working fine until the file rea
$errorstring[1] = "Your first pick and second pick are the same.";
}
I still get the error. Anyone have any ideas? These two valuse mustbe evaluated as
different.
Thanks in advance
Curtis
That was the solution. It worked like a charm.
$cmpresult = strcmp($pick1,$pick2);
if $cmpresult == 0)
{
my code;
}
Can I also write that like the following?
if (strcmp($pick1,$pick2) == 0)
{
perform some action;
}
Will that work?
Curtis
- Original Message -
From
> that will work, but I prefer
> Can I also write that like the following?
>
> if (!strcmp($pick1,$pick2))
> {
>perform some action;
> }
Thanks. That works for me.
Curtis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROT
look at the syntax for locking the tables.
Curtis
- Original Message -
From: "Christian Dechery" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 11, 2001 7:14 PM
Subject: [PHP] transactions
> Hi,
>
> I was reading mysql's manual,
I am trying to process a form using text/html and mail().
The resulting email continues to have an ! inserted randomly
into the email. Does anyone know how to avoid this??
__
Lorenzo Curtis
Website/Database Developer
prexar - internet and beyond
[EMAIL PROTECTED
I don't think it's a bug in my code... I have gone through it
dozens of times and there are NO exclamation points...
__
Lorenzo Curtis
Website/Database Developer
prexar - internet and beyond
[EMAIL PROTECTED]
(207) 974-4334
-Original Message
Does anyone know of a good PHP HTML parser out there that I can use?
Thanks,
Curtis.
Is your boss reading your email? Probably
Keep your messages private by using Lycos Mail.
Sign up today at http://mail.lycos.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
101 - 198 of 198 matches
Mail list logo