Thank you Nilesh, but ftp_ssl_connect is my problem! I know what it does
now - I'd like to extend it. From that manual page:
"ftp_ssl_connect() opens an explicit SSL-FTP connection to the
specified host."
Todd
From: Nilesh Govindarajan
To: Todd Nelson
Cc:
ce if desired. Thank you.
Todd Nelson
to spend extra time doing
it the right way or not.
Thanks very much for your interest in helping.
- Original Message -
From: "Robert Cummings"
To: "Todd Dunning"
Cc:
Sent: Tuesday, September 22, 2009 5:22 PM
Subject: Re: [PHP] Basic of Basics
Todd Dunning wrot
Just put yourself in these shoes:
1. It's before you learned SQL.
2. You can declare variables and call includes and that's about it.
3. Your site looks great, the includes are ready. The variables are already
in the includes.
4. You have a delimited file, 15K rows, 30 columns.
5. You have to g
Hi All,
Does anyone have code and/or advice for how to get get the current
week (with a passed current day, say) and what then end date is at
Saturday.
So take today: Tuesday March 17, 2009
I want to get:
Sunday March 15, 2009
Monday March 16, 2009
Tuesday March 17, 2009
Wednesday March 18
Hi All,
Does anyone have classes for creating a nice daily calendar? I can put
the data in MySQL and be queried, etc.
Something that when I add events to the calendar it puts them in the
right time slot, etc, etc.
I can do the rest of the coding
Free is best!
-Jason
--
PHP General Mail
if (empty($_POST[PASSSWORD]))
{ $GERROR="TRUE";}
If that's a direct copy/paste from your actual code, there is an extra
S in PASSWORD. Also, you should enclose the array key in quotes:
if (empty($_POST['PASSWORD']))
{ $GERROR='TRUE'; }
It is official I am a DOPE! Thank you, yes, I did not s
Hi All,
I have an input field with type="password".
I am trying to do some error checking to see if the user puts a value
in after they submit the form (i.e not left it blank)
Here is what I have:
on form:
Password: size="15">
In PHP error checking:
if (empty($_POST[PASSSWORD]))
{ $GERRO
> -Original Message-
> From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of
> Daniel Brown
> Sent: Wednesday, March 04, 2009 10:16 AM
> To: Robert Cummings
> Cc: PJ; Boyd, Todd M.; php-general@lists.php.net
> Subject: Re: [PHP] whoami explanation
>
>
> -Original Message-
> From: PJ [mailto:af.gour...@videotron.ca]
> Sent: Tuesday, March 03, 2009 5:56 PM
> To: Boyd, Todd M.
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] whoami explanation
>
> Boyd, Todd M. wrote:
> >> -Original Messag
ey although I have occasionally needed the ~ key for
> Windows
> > stuff.
> >
> > --
> >
> > Phil Jourdan --- p...@ptahhotep.com
> >http://www.ptahhotep.com
> >http://www.chiccantine.com
> >
> >
> You tinker on Unix and you only e
isual studio gui
> editor)
Having used Eclipse, Netbeans, JGrasp, Visual J#/J++, and Processing.org's
notepad, I've got to say:
Developing UIs is easiest in Netbeans. Sorry. :(
// Todd
> -Original Message-
> From: Michael A. Peters [mailto:mpet...@mac.com]
> Sent: Monday, March 02, 2009 4:42 PM
> To: Boyd, Todd M.
> Cc: PHP General list
> Subject: Re: [PHP] Javascript question
>
> Boyd, Todd M. wrote:
> > Before some of you newbies feel
> -Original Message-
> From: Robert Cummings [mailto:rob...@interjinn.com]
> Sent: Monday, March 02, 2009 4:18 PM
> To: Boyd, Todd M.
> Cc: PHP General list
> Subject: Re: [PHP] Javascript question
>
> On Mon, 2009-03-02 at 16:11 -0600, Boyd, Todd M. wrote:
> &
y--just curious as
to whether or not anyone knew if this will invoke browser validation
events or not. Comments and questions are more than welcome, though. :)
Cheers!
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If set, this boolean attribute allows multiple selections. If
not
> > set, the SELECT element only permits single selections.
> >
>
> However, all the options should be closed.
>
> Instead of: History
>
> Use: History
>
> Also, you should move the Choose Catego
> -Original Message-
> From: mike [mailto:mike...@gmail.com]
> Sent: Monday, March 02, 2009 12:59 PM
> To: Boyd, Todd M.
> Cc: PHP General list
> Subject: Re: [PHP] upload progress (was www.soongy.com)
>
> On Mon, Mar 2, 2009 at 7:45 AM, Boyd, Todd M. wrote:
>
9 at 12:07 PM, German Geek
> wrote:
> >> >>>
> >> >>> Also check this one out: google uses it in gmail:
> >> >>
> >> >> >
> >> >>
> >> >> http://code.google.com/p/jquery-multifile-
> plugin/downloads/detail?name=multiple-file-upload.zip&can=2&q=
> >> >
> >> > Understood, but I don't think either of these do what the OP
> wanted,
> >> > whcih
> >> > was a real time file upload progress bar.
// Todd
> -Original Message-
> From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
> Sent: Saturday, February 28, 2009 4:14 AM
> To: Andrew Ballard
> Cc: Boyd, Todd M.; PHP General list
> Subject: Re: [PHP] Re: How important is your Express or Web
> Editiondatabase? Pl
> -Original Message-
> From: Andrew Ballard [mailto:aball...@gmail.com]
> Sent: Saturday, February 28, 2009 12:05 AM
> To: a...@ashleysheridan.co.uk
> Cc: Boyd, Todd M.; PHP General list
> Subject: Re: [PHP] Re: How important is your Express or Web Edition
> data
compared to the commercial versions of
> the products) I've not heard of "Web Edition", but I have heard of
> both SQL Server and Oracle Express. I haven't used them, but I guess
> the idea I have in mind is of products that are supposed to be just
> good enough to use in either embedded apps or else to entice
> developers into wanting the full version for server apps.
I use SQLExpress (SQL Server Express) all the time at work for prototyping and
such... although, I have to say--if my company hadn't installed it on my
machine to begin with, and they weren't running SQL Server 2005 on the
production servers, I would rather just use a private MySQL installation for
prototyping and then push to a MySQL production server. Alas...
// Todd
> -Original Message-
> From: Bob McConnell [mailto:r...@cbord.com]
> Sent: Friday, February 27, 2009 9:56 AM
> To: PHP General list
> Subject: [PHP] Development methods (was: "use strict" or similar in
> PHP?)
>
> From: Boyd, Todd M.
> > Well, t
e already using
an MVC design pattern/framework or a template system. If you are just
worried about displaying garbage and not about performing logic while
the page is being output to the browser, then I'd say use an output
buffer. If something bad happens, just clear the buffer out rather than
send it to the user, and forward to your error page instead.
http://www.php.net/ob_start
HTH,
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> -Original Message-
> From: Chris [mailto:dmag...@gmail.com]
> Sent: Thursday, February 26, 2009 8:48 PM
> To: Daevid Vincent
> Cc: php-general@lists.php.net; Shawn McKenzie
> Subject: Re: [PHP] Re: How do I remove an array element from within a
> recursive function?
>
> Daevid Vincent wr
> -Original Message-
> From: Chris [mailto:dmag...@gmail.com]
> Sent: Thursday, February 26, 2009 6:38 PM
> To: Boyd, Todd M.
> Cc: PHP General list
> Subject: Re: [PHP] Re: catch the error
>
> Boyd, Todd M. wrote:
> >> -Original Message-
> >
> -Original Message-
> From: Chris [mailto:dmag...@gmail.com]
> Sent: Thursday, February 26, 2009 4:16 PM
> To: Boyd, Todd M.
> Cc: PJ; PHP General list
> Subject: Re: [PHP] Re: catch the error
>
>
> > In examples sent to you, people foolishly replaced you
gt;
> >>>>> Phil Jourdan --- p...@ptahhotep.com
> >>>>> http://www.ptahhotep.com
> >>>>> http://www.chiccantine.com
> >>>>>
> >>>>>
> >>>>> --
> >>>>> MySQL General Mail
#x27;ve worked with XPath query strings, but I believe ".[name()]"
will get you the current element's tag name. Keep in mind: I'm not sure if this
works with namespaced tags (like ), but I have not tested
this to be sure.
HTH,
// Todd
www.jampmark.com
> >>>>
> >>> I prefer calling C and C++ as Framework of Assembly language.
> >>>
> >>>
> >> Hahaha that was a good one Shawn. I almost fall of the chair :-) .
> >
> > What's so funny? Assembly is just a framework for microcode.
> >
> > Cheers,
> > Rob.
>
> So, what is the level that actually polarizes the sectors on the hard
> drive?
>
> Anything more abstract then that is then an API right?
It's all just a neat wrapper for exchanging electron positions.
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nd on this list... that's why so many of the
discussions that would probably be passed over entirely on other lists
are discussed in great detail and from a wide variety of perspectives.
:p
(And yes, I realize you were [probably] joking.)
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ullPathFrom As String, ByVal FullPathTo As
> String) As
> > Integer
> >
> > So, I was hoping to be able to call that DLL in PHP and pass it the
> two
> > values I specify in my application.
> >
> > In order to be used by COM is the DLL required to be placed in th
with it is a wonderful benefit to any application's security procedures.
The salt itself could be considered security by obscurity, since it is
being passed through the same algorithm as what you're hashing to begin
with. This might be a stretch, though. :)
I say, "Huzzah, tedd. Good idea."
Hash + Obscurity > Hash + Nothing
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ou are trying to use actually supports COM. I know
> some don't.
>
> 2) I'm pretty sure that the string you pass to new COM('...') should
> be the name the class as registered with Windows, not the actual file
> name. They are usually something like 'Scripting.FileSystemObject',
> 'word.application', 'ADODB.Recordset', etc.
I believe you can also call it by its Public Key Token (a GUID), though that
may be a new convention introduced with the .NET framework that is not
backwards-compatible with "plain" COM objects...
// Todd
rameters are
> needed to maintain backwards compatibility yet get new functionality
> too.
Just tell 'em that .NET already has it; that'll light a fire under them!
:D
C# can do function calls like:
FunctionName(VariableName:=Value);
I wholeheartedly prefer PHP to .NET fo
to call it
> to check
> >> parameter counts on a php3 server :(
> >>
> >>
> > I am sure you have some good reasons for keeping php3 right?
> >
> > Why don't you consider updating to at least php4 ??
> >
> > PHPv3 is not even maintained
uration File: /etc/php.ini
>
> Thoughts on what's happening would be awesome! Thanks in advance.
In addition to what's already been said, you could try forcing a php.ini
file in the current directory by trying the -c command line option. I've
done it to try messi
leted).
I suppose you could also do it yourself with PHP code when a failed link
is turned up, but why bother separating DB logic from the DB itself? :)
HTH,
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
#x27;s not a server error message? If it's the
results you were looking for (but in XHTML format instead of XML), I'll
bet it's a User Agent thing.
Just a thought...
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
end a couple extra
cycles to relieve myself of an extra 20 lines of code, I think I'll
sleep just fine. :)
Now, if I was programming embedded systems or time-critical transaction
processing software, that might be another story. (Then again, if that
were the case, I might not be playing with an interpr
Hi All,
I am looking for an open-sourced CMS that is PHP/MySQL based.
I would like something simple to setup, but also would be good for a
storefront as I want to use it for my indie business.
Thoughts?
-Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://
but the switch block can be used like so:
switch(true) {
case (x < y):
dosomething();
break;
case (y == 0):
dosomethingelse();
break;
default:
somethingelseentirely();
break;
}
> -Original Message-
> From: Stephen [mailto:stephe...@rogers.com]
> Sent: Wednesday, January 28, 2009 4:40 PM
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] New to PHP question
>
> Boyd, Todd M. wrote:
> >
> > Finally, just because IE8 is (su
just want stuff
to be in a grid and the structure has no bearing on the content, then
it's time to weigh in.
Finally, just because IE8 is (supposed to be) fully CSS standards
compliant doesn't mean anything for IE7, IE6, IE5, etc.
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nt only the two file types specified to
> trigger a return. They are the only two valid php types on this
> server.
>
> Your suggestion worked like a charm! Thank you very much!
Upon reading this, I realize that I over-thought my suggestion.
/^c:\\inetpub\\wwwroot\\folder\\(?:entry|edit)\\(\w+\.(?:php|pdf))$/i
That's my final answer. :)
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The (?=entry|edit) group is the look-ahead. If folder\\ isn't followed
by entry or edit, the look-ahead fails. The (?:php|pdf) group uses the
?: syntax to tell the regex engine not to save this capture group. You
could just as easily remove the ?: and ignore the extra capture in your
code (as y
> -Original Message-
> From: Chris [mailto:dmag...@gmail.com]
> Sent: Tuesday, January 27, 2009 4:04 PM
> To: Boyd, Todd M.
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Global Changes With Loop To Allow Nulls In A
> Table...
>
>
> >> The other
27;t write a script that ran through my entire database and opened
> every column in every table to accept.
I just thought I'd throw this out there...
A lot of people who post questions on this list are programming their
algorithms and structuring their applications in a certain way because that's
what the client wants, or that's what their boss told them to do. Yes,
accepting NULL values in a database is frowned upon (unless the table is a
transaction table)... but I doubt his boss or his client cares in the least.
My 2 cents. ;)
// Todd
e
> >> >> to method="post" in the form.
> >> >> 3. If you want to keep the .html extension for the page, then
> you'll
> >> >> probably need to send the post to another script with a .php
> >> >> extension.
> >>
g them encoded, and then
decoding them when that language is requested. There will be overhead
involved in the codec operations, obviously, but you could help to curb
that with client- or server-side caching.
Just a thought. It might not be feasible for your situation at all...
// Todd
--
P
like he wants to know which process he should watch to
determine the performance of Apache v2.2.
I believe it's "httpd".
HTH,
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> -Original Message-
> From: Boyd, Todd M.
> Sent: Friday, January 23, 2009 1:44 PM
> To: 'Bastien Koert'
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] Java / PHP Bridge
>
> > -Original Message-
> > From: Bastien Koert [mailto:phps
n get what you want.
> >
> > Note that this is all hearsay on my part.
> >
> > ymmv
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> Is that hear
totype built in jQuery, call it using a PHP SOAP interface,
reference it directly in other ASP.NET projects, and so on and so forth.
You'll get a wealth of benefits aside from making your life easier with
bridging the two languages. :)
HTH,
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ewrite rules. If
you're going to use any sort of MVC-based URLs in IIS, this library is a
must-have.
1. http://www.codeplex.com/IIRF
2. http://www.regular-expressions.info
HTH,
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> -Original Message-
> From: Boyd, Todd M. [mailto:tmbo...@ccis.edu]
> Sent: Friday, January 16, 2009 2:13 PM
> To: php-general@lists.php.net
> Subject: RE: [PHP] preg_match_all question
>
> > -Original Message-
> > From: Robert Cummings [mailto:
quot; (the index in the root directory of the server) as opposed to
"somefolder/index.php" (the index in a subfolder of the current directory named
'somefolder').
* http://www.google.com/search?q=php ... absolute path (yes, it's a URL, but
treat it as absolute)
* https://www.example.com/index.php ... absolute path (yes, it's a URL, but to
the local server)
* /index.php ... absolute path (no protocol given, true absolute path)
* index.php ... relative path (relative to current directory on current server)
* somefolder/index.php ... relative path (same reason)
That is indeed a nifty use of look-ahead, though. That will work for any anchor
tag that doesn't reference the server (or any other server) with a protocol
spec preceding it. However, if you want to run it through an entire list of
anchor tags with any spec (http://, https://, udp://, ftp://, aim://, rss://,
etc.)--or lack of spec--and only mess with those that don't have a spec and
don't use absolute paths, it needs to get a bit more complex. You've convinced
me, however, that it can be done entirely with one regex pattern.
Ooh--one more thing I noticed: If the href attribute is not surrounded in
quotes (as the OP said it might not be in certain cases), then the remainder of
the URL should be discarded... but your regex will also discard the remainder
if it HAS been enclosed in quotes. (http://www.google.com/search?q=php
is cool"> is totally valid, and will work by converting the " " to "+" [or
maybe %20] when it is requested.)
I don't really have the time right now to further the regex, but you can bet
your shirt I'm going to give it another look when I get home. :)
// Todd
ast }} is included,
> can
> > anyone point out where I am going wrong?
> >
> > preg_match_all("/\{\{lang:(.*)\}\}/", $str, $tags);
>
> You need the ungreedy modifier:
>
> preg_match_all("/\{\{lang:(.*)\}\}/U", $str, $tags);
FWIW, you can tell ju
> -Original Message-
> From: Shawn McKenzie [mailto:nos...@mckenzies.net]
> Sent: Friday, January 16, 2009 1:08 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Parsing HTML href-Attribute
>
> Shawn McKenzie wrote:
> > Boyd, Todd M. wrote:
ute path for the purpose of this algorithm)
if($anchorText[0] != '/' && preg_match('#^\w+://#', $anchorText) == 0)
{
# add current directory to the beginning of the relative path
# (nothing is done to absolute paths or URLs with protocol spec)
$anchorText = $curDir . '/' . $anchorText;
}
echo $anchorText;
?>
...UNTESTED.
HTH,
// Todd
s without incident (although Base64 is adding
quite a few bytes to be transferred beyond just the underlying data).
Use at your own risk. Hopefully, this will spark someone else to take
the algorithms a bit further. :) I may do so myself if I find time, but
I've been very busy with other projects lately [3].
Links:
1. http://www.devx.com/java/Article/17679/0/page/3
2. http://iharder.sourceforge.net/current/java/base64/
3. http://sites.google.com/site/rexcrawler
HTH,
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
h have to be opened
> which drags down framework numbers the most. When I wrote C code, the
> CPU would blaze through the actual code, but file opens and reads
> consumed far more time than in-memory code execution.
http://www.giveupandusetables.com
'nuff said.
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
r your Standard DES and MD5 labels are actually both MD5.
Also--there is more than just Standard DES. Once DES was determined to
be relatively IN-secure, more algorithms like Triple DES, G-DES, DES-X,
LOKI89, and ICE were created. You might be looking at a Triple DES hash.
HTH,
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
its not working.
>
> My module page has to go live tomorrow morning, I am stuck, please
> help.
$_GET['var'] is used for GET-method data retrieval. You have specified
POST-method data in your form. Try $_POST['myname'] and see if that
doesn't grab the value you're looking for.
HTH,
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n a different account on the same machine other than
the one logged in)...
start /min /b php myscript.php
The "/b" option MIGHT prevent pre-Vista machines from showing the user
that a task is being executed. If it doesn't, then at least "/min" will
keep the window minimiz
e of our OCR
solutions because it is just too... well, crappy. The image quality is
nowhere near what it should be for a successful OCR pass.
As for client expectations: hell yes--tell them not to use a fax machine
in the digital age. Scan the document and e-mail it or something. Where
I work, we've d
Mike -- I've "bottom posted" my reply, as is the convention for this list (and
most others). Scroll down.
From: Mike Peloso [mailto:mpel...@princeton.edu]
Sent: Thursday, December 18, 2008 9:56 AM
To: Boyd, Todd M.
Subject: Php question from Newsgroup
Todd,
I have attache
Hah! Forgot to add the link:
1. http://php.net/ini_set
How would you guys have ever figured out that was the page on PHP's
website you need to visit in order to view information about the
ini_set() function?!
;)
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubs
a bit about how to set that
particular option in an .htaccess file:
set PHP_INI_PERDIR settings in a .htaccess file with 'php_flag'
like this:
php_flag register_globals off
php_flag magic_quotes_gpc on
If you can get at your .htaccess, maybe you could do it that way (since
I don't believe you can change magic_quotes_gpc using ini_set() or
similar methods).
HTH,
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x27;;
These are all untested, but hopefully I've given you a nudge in the
right direction. If you are still getting strange behavior out of your
PCRE engine, then perhaps you have a different version installed than
what I'm used to--all of the above should work (perhaps with some very
minor changes) in PHP.
HTH,
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
only to that directory...so by end of day yesterday I
> downloaded
> the zend and will attempt to see what I can do with it, I want off
this
> windows box but that isn't going to happen anytime soon ...sigh...
I recommend the Ionic ISAPI Rewrite Filter [1]. Also, this [2] webpage
st delete that student and
> all related data how would you know this?
>
> You could also have a 2nd database with the same table structure and
> move old/delete data into there.
You are describing a data warehouse, or a data mart. That is not what
transactional databases are there for. Make a historical database, and make a
transactional database... but don't make one that tries to be both, or you're
just shooting yourself in the foot.
// Todd
stion
comes up. Has anyone used one of the underdog frameworks that are sprouting up
at the fringes?
PRADO?
Yii?
Simple PHP Framework?
Akelos (Ruby on Rails port)?
Seagull?
BlueShoes?
EvoCore?
PHOCOA?
Zoop?
Stratos?
Picora?
SOLAR?
FLOW3?
Maintainable?
Adventure-Framework?
...the list goes on.
I thought Yii [1] seemed interesting, at the least.
1. http://www.yiiframework.com
// Todd
ulk SMASH!
Anyway, moving on...
I believe "ffmpeg -i " should give you frame count
information (along with a bunch of other stuff). It will have to be
parsed, of course, but... meh. Also--were you aware that there is an
ffmpeg PHP extension? It's even got a nifty instance->fr
of
"hacker," and that a "hacker" is not malicious; but that is stupid. Cracking
started out dealing with cryptography in my experience, and that's how I will
continue to identify it.
Think about it--people were "safe crackers" (discovering the combination to
safety deposit boxes) before there were computers in existence.
My 2c,
// Todd
> -Original Message-
> From: Boyd, Todd M. [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 10, 2008 8:28 AM
> To: php-general@lists.php.net
> Subject: RE: Re: [PHP] file_exists and wildcard/regex
>
> FWIW, I would probably do the file search like this (UNTESTE
$found = true;
}
}
closedir($dir);
}
}
?>
If you want back more than the first match, do away with the $found -related
stuff.
1. http://docs.cs.up.ac.za/programming/asm/derick_tut/syscalls.html
HTH,
// Todd
Conny,
Can you explain how to do an address now into City, State, Zip
Like: cortland, ny 13045
$string = "cortland, ny 13045";
$search = array(", ", ",");
$replace = array(" ", " ");
$newString = str_replace($search, $replace, $string);
$array = explode(" ", $newString);
Ah ha! Nice that ma
Konrad,
On Dec 5, 2008, at 4:22 PM, Konrad Priemer wrote:
$array = explode(" ", "Jason Slack");
Awesome, thanks, yup that does it.
Can you explain how to do an address now into City, State, Zip
Like: cortland, ny 13045
It has a comma and a space!
-Jason
--
PHP General Mailing List (htt
How might I also parse and address like: SCOTTSDALE, AZ 85254
It has a comma and a space
-Jason
On Dec 5, 2008, at 4:02 PM, Jason Todd Slack-Moehrle wrote:
OK, making good learning progress today.
I have a string that is: Jason Slack
and I want it broken at the space so i get Jason and
OK, making good learning progress today.
I have a string that is: Jason Slack
and I want it broken at the space so i get Jason and then Slack
I am looking at parse_str, but I dont get how to do it with a space.
The example is using []=.
Then I want to assign like:
$fname = "Jason";
$lname
Hi Eric,
So do I still use move_uploaded_file?
Absolutely. I just didn't see anywhere in your code where you were
checking for an error with the file upload itself or that it did exist
on the server before moving it.
Got it, thanks!!
-Jason
--
PHP General Mailing List (http://www.php.net
Hi Eric,
'tempUploads/1425182872.xlsUploaded The File.'
http://us2.php.net/manual/en/function.is-uploaded-file.php
http://us2.php.net/manual/en/features.file-upload.errors.php
So do I still use move_uploaded_file?
-Jason
Here is the output I am printing:
'tempUploads/1425182872.xlsUploaded The File.'
What is the issue?
-Jason
On Dec 5, 2008, at 2:11 PM, Jason Todd Slack-Moehrle wrote:
Hi All,
I am uploading a file and it says it worked, but I dont see it in
the directory
Here is my c
Hi All,
I am uploading a file and it says it worked, but I dont see it in the
directory
Here is my code so far:
$allowed_ext = array('csv','xls');
$ext = end(explode('.',$_FILES['uploadedfile']['name']));
$ran2 = rand().".";
$target = "tempUploads/";
Hi All,
I installed PEAR fine.
How I need to install OLE and Spreadsheet_Excel_Writer and I dont see
how
pear install .
fails every time with channel errors and not found errors.
I have downloaded the .tgz files, but I dont know where to put the
contents.
Any thoughts?
-Jason
t however you format it
(text, XML, whatev).
iText - http://www.lowagie.com/iText/
PHP/Java bridge - http://php-java-bridge.sourceforge.net/pjb/
HTH,
// Todd
. What do we do? In the PHP docs
> lookup escape sequences:
>
http://www.php.net/manual/en/language.types.string.php#language.types.s
> tring.syntax.double
>
> Note that:
> \x[0-9A-Fa-f]{1,2} the sequence of characters matching the
> regular
> expression is a character in hexadecimal notation
> You have an expression which is basically the same as:
> 'C:'."\xa".'ampp\htdocs\dox'; where the first and last part work as
you
> intended, but the second one gets replaced by the char with ordinal 10
> (which is a space. A in hexadecimal notation is 10 in decimal).
>
> Fix your definition of it (ie. use SINGLE quotes, or double escape it
> to
> look like \\xa so the interpreter won't see it as a special escape
> sequence anymore.
Lots of good points there. I think it's also worth mentioning that
mixing back slashes in file paths with forward slashes is a terrible,
terrible idea. Pick one and stick with it. To be honest, I'm not even
sure Windows-branded PHP is capable of dissecting a local file system
address when it uses forward slashes.
So.. yes, the \xa is being turned into hexadecimal garbage... but if you
continue to have errors after replacing it with \\xa (and doubling up
all of the other back slashes in your paths), try:
C:\\xampp\\htdocs\\dox\\th_dsc_076.jpg
Instead of
C:\\xampp\\htdocs\\dox/th_dsc_076.jpg
HTH,
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
oduct of decisions taken before that
time.
Well, as far as in IE, you can fake it with Javascript:
http://me.eae.net/archive/2005/12/29/canvas-in-ie/
Yes, this is another patchwork circumvention routine to drag IE, kicking
and screaming, into the world of web browsing that exists outside of
Quirks Mode... but it works.
HTH,
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ss I can understand.
(And don't get me wrong--I had tons of problems with Chrome; mostly
about crashing unexpectedly.)
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in a table and assume that Saturdays/Sundays
are not workdays unless they have a corresponding entry in the same table that
holds the holidays. Call the table "exceptions." The exception to a workday is
a holiday. The exception to a weekend is a workday. :)
HTH,
// Todd
log/php/extracting-text-from-word-doc
uments-via-php-and-com-81/
You will need an MS Windows machine for this solution to work. If you're
using *nix... well... good luck.
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
openssl, any
> sample command ?
> and how to use ?
>
> i am using Windows (WIN32)
> apache2.2+php5
I'm not sure I entirely understand your question... but here goes:
Yes, you can make your own CRT/KEY/CER files using OpenSSL.
http://www.freebsd.org/doc/en/books/handbook/openss
ublished RSS standards being compatible:
> http://diveintomark.org/archives/2004/02/04/incompatible-rss
> I personally found this blog post "brilliant"
> YMMV
You are correct. Some feed readers will just throw everything in a
block away. It can be useful when you are the only
hp
http://www.w3schools.com/sql
http://www.php.net
http://www.mysql.com
most important link:
http://www.google.com
Get comfortable with programming; with algorithms; with data structures;
with databases; with client-server relationships.
HTH,
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> -Original Message-
> From: Ashley Sheridan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 19, 2008 1:43 PM
> To: Boyd, Todd M.
> Cc: PHP General Mailing List
> Subject: RE: [PHP] Re: anchor name on URL
>
---8<---
> > > Don't forget Konquero
are theoretically just passing your SQL server a query string--it
handles the rest. (Yes, it's a bit more complex than that... but that's
the brass tacks.)
HTH,
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ame and password as part of a URL, so
> > shouldn't the username and password be urlencoded? I'm thinking it
> > will work if you replace the '#' sign with %23.
> >
> > Andrew
> >
>
> I only tried thworing urlencode on everything, which obviously didn't
> work.
>
> Both ways worked, using %23 for '#' and the snippet from Nathan.
>
>
> Thanks a lot everyone, I was about to build all the headers and stuff
> :P
"All the headers," meaning 2? :) Glad to hear you've solved your
problem, anyway..
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
From: Terion Miller [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2008 9:39 AM
To: Boyd, Todd M.
Cc: PHP General Mailing List
Subject: Re: [PHP] Invalid Arguements
I've been trying to catch on to php on the fly, I started with Cold fusion
years ago then did asp for a long time
??!
I'm beginning to think people put a bit too much "faith" (no pun
intended) in Google. Ugh.
// Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Taking this back on-list...
From: Terion Miller [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2008 8:44 AM
To: Boyd, Todd M.
Subject: Re: [PHP] Invalid Arguements
I don't know how to run is_array this is the problem I'm a designer that
is stuck doing a coders job
On W
1 - 100 of 779 matches
Mail list logo