It required creating my own 'Custom Profile' which allowed me to
manipulate the Font and/or Size. As soon as I modified those, it
worked fine.
Thanks for the assistance all. Pain in the butt issue!
/sf
On 3/3/08, Sancar Saran <[EMAIL PROTECTED]> wrote:
> On Monday 03 March
l Vogel <[EMAIL PROTECTED]> wrote:
> Richard Lynch schrieb:
>
> > On Sun, March 2, 2008 11:07 pm, Steve Finkelstein wrote:
> >
> >> Hi all,
> >>
> >> I know this isn't a forum for Zend IDE, but since there's probably a
> >>
]> wrote:
> Steve Finkelstein schreef:
> > Hi all,
> >
> > I know this isn't a forum for Zend IDE, but since there's probably a
> > decent population here using it, I figured I'd ask away.
> >
> > I'm using 5.5.1 Professional on Mac OSX
Hi all,
I know this isn't a forum for Zend IDE, but since there's probably a
decent population here using it, I figured I'd ask away.
I'm using 5.5.1 Professional on Mac OSX 10.5.2. My issue here is that
all left brackets, (eg: [ ) are not showing up in the code editor. I
have a screenshot of it
Hi all,
I've tried googling around to find some blogs with decent information
on whether Zend Eclipse is mature enough to make the jump over from
5.5.x just yet.
Admittedly, I've dropped Zend Studio as of late and been writing all
of my code in TextMate -- but at the end of the day when a project
Hi folks,
I just completed my first reading of Advanced PHP Programming by
George Schlossnagle and was very impressed and thankful for the wealth
of information with examples provided by George.
With that said, there is a chapter dedicated to Authentication using
client-side cookies and encryptin
return array(1,2);
}
list($a,$b) = test();
works as above. Works fine with complex arrays as well:
function test() {
return array(1,array('a','b'));
}
list($a,$b) = test();
steve
--
+--- my people are the people of the dess
quot;>$filename</a>
WARNING: This link will not be available anywhere else.
";
} else {
echo "Possible file upload attack!\n";
}
echo '';
echo 'Here is some more debugging info:';
print_r($_FILES);
print "";
?>
Thanks
quot;);
$filehead = fgets($fh);
fclose($fh);
echo "
$filehead
";
}
}
echo "
";
// close directory
closedir($dh);
}
}
?>
Thank you,
--
Steve Marquez
I think I may have written the question wrong. I only want to display the
first line. It is a news story with a headline. I only want to display the
headline in the link.
The output I want is:
The
But I am getting:
The file looks like this.
Does that make more sense?
Thanks,
--
Steve M.
on
Is it possible to read each line of data from a file?
I have a text file that has several lines on it. I only want to display the
first line only.
The
file I have
looks like this.
But outputs:
"The file I have looks like this."
Here is my code:
Breaking News
Please che
,
--
Steve M.
xt to nothing.
The cronjob could be written in any language, but since this is a PHP
list you'll have to promise to write it in PHP ;)
steve
--
+--- my people are the people of the dessert, ---+
| Steve Edberghttp://pgfsun.ucdavis
file.
I couldn¹t find anything like that there.
Thanks,
--
Steve M.
on 1/24/08 2:46 PM [EMAIL PROTECTED]
([EMAIL PROTECTED]) wrote:
> i believe you will find what you're looking for by searching or
> browsing the documentation found at:
>
> <http://www.php.net/manual/en
Does anyone know if there is a way to move all the files in one directory
into another?
Thanks,
--
Steve M.
Greetings,
Can anyone point me in the right direction on this?
I want a link to an image that appears below the link after it is clicked. I
think it would be an ³if² statement, but I am not sure where to start.
Thanks,
--
Steve M.
order in which each record will appear on
the page.
I hope this makes more sense. I wish I knew more, and then I would be able
to formulate my questions better. Thank you so much for your help.
Steve M.
on 1/17/08 10:07 PM David Giragosian ([EMAIL PROTECTED]) wrote:
> On 1/17/08, mike <
tion in name and order to update the database.
So far, I can only get one or the other. Is there a way to do this?
Thanks for your help.
--
Steve M.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that the user has the choice of any record. The idea
would be to order the content by the highest number.
I hope this makes more sense.
--
Steve M.
on 1/17/08 1:54 PM Richard Heyes ([EMAIL PROTECTED]) wrote:
>> > I am wanting to create an select menu for displaying the order of the ite
makes sense.
--
Steve M.
de isn't an
exact cut-and-paste, as using single quotes (eg,
mysql_pconnect('$host', '$login', '$passwd') does not interpolate
variables, so that line will not work unless your username is
actually '$login', etc. Which it probably isn't.
e's a possibly-useful article:
http://www.xmlhack.com/read.php?item=1681
Disclaimer: I've never used any of those tools, so YMMV, IANAL, RTFM,
LOL, etc...
steve
--
+--- my people are the people of the dessert, ---+
| Steve Edberg
s like xyz.php.txt .
>(otherwise I'd just use a straight str_replace).
Thanks
Guess i was just trying to over think it. Have not done much with files.
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a dir of html files that link to websites, i would like to read the dir
and print a list of those files as a link. Which the script i have does. I
would like to take this one step further and replace the ".html" extension
with ".com" so it winds up being:
website.com instead of website.ht
I take it back.. if I use --enable-apc-pthreadmutex I get file locks,
but if I don't use the option at all, I get pthreadmutexes. I'm
guessing pthead became the new default?
On Jan 7, 2008 1:59 PM, steve <[EMAIL PROTECTED]> wrote:
>
> When configuring APC 3.0.16 I see this
When configuring APC 3.0.16 I see this, which I don't recall seeing before:
checking dlfcn.h presence... no
configure: WARNING: dlfcn.h: accepted by the compiler, rejected by the
preprocessor!
configure: WARNING: dlfcn.h: proceeding with the compiler's result
checking for dlfcn.h... yes
Also --en
d the
> entire page.
>
> Remember it's all just Javascript trickery with CSS that works great
> on Safari browsers (and works almost identical actually now in
> Firefox...)
>
> It's very easy to implement, I had some initial confusion too how it
> routes the requests
Hi folks,
Probably the most impressive application I've run into for the iPhone has to
be Facebook's implementation. I'm looking for ways to improve my application
to be as responsive as theirs. Unfortunately it has quite a way to go. Does
anyone know how this form of 'routing' works?
For instanc
Thanks Tedd... looks like a promising link. I'll take a look!
On 12/12/07, tedd <[EMAIL PROTECTED]> wrote:
>
> At 5:36 PM -0500 12/8/07, Steve Finkelstein wrote:
> >Hey folks,
> >
> >One area I lack experience in is writting a solution to index/search on a
>
Hi everyone,
I was curious if anyone has had the opportunity to work with or for
heritage web solutions? If so, would you be able to share your two
cents with any experience with them?
Thanks!
- sf
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Hi all,
I'm having a brain freeze with some simple code that I wrote and now trying
to refactor.
I have a block of code that looks like this:
public function backup()
{
$fname = "$this->dbName.sql.$this->zip";
$this->cmd = "mysqldump -Q -u $this->dbUser -p$this->db
Hey folks,
One area I lack experience in is writting a solution to index/search on a
site. Would anyone be kind enough and point me in the right direction as far
as any books which discuss some simple solutions or articles/blogs on the
web? Clearly I'm not looking for anything as complex as Google
7, Daniel Brown <[EMAIL PROTECTED]> wrote:
> On Dec 6, 2007 3:23 AM, Jochem Maas <[EMAIL PROTECTED]> wrote:
> > Steve Finkelstein wrote:
> > > Thanks for your humble opinions. Appreciate the feedback!
> >
> > humble?
>
> People on this list a
Hi all,
Going to cut it short and to the point. Do most of you freelancers get
by with enough work that does not require front-end UI/design? Do you
find it easier to get more work when you're strengths in design are
just as creative as your programming capabilities?
These are questions I'm enter
e using 0/1 does have the advantage of 'doing the right thing'
if a "if ($_GET['foo'])" creeps into your code, though. As would
using 'Y'/''.
That being said, I've used 0/1 along with y/n in the past; it depends
on whether I'm thinking l
s to count for something :-)
Please keep all replies on the list, Jochem. ;-P
HA! It was too good not to share.
Programming Rocks you say? It's not that old...
http://www.rocksclusters.org/wordpress/
:)
It appears to be a Friday...
- steve
--
+--
7;=>'slurm', 'b'=>'fry', 'c'=>'leela');
$Keys = array_keys($NotJustNumbers);
$Count = count($Keys);
for ($i=0; $i<$Count; $i++) {
$value = $NotJustNumbers[$Keys[$i]];
if ($value == 5 && some_other_test()) {
Personally At 1:31 PM -0500 11/20/07, Jason Pruim wrote:
I prefer>Honestly for me... top posting,
side>On Nov 20, 2007, at 1:19 PM, Michael McGlothlin wrote:
posting.>>
>>I hate top posters. Pure evil.
-steve >>
Greetings,
I have a script that looks for the variable to be NULL and then execute. Is
there a way for the script to look for anything or something in the variable
and then execute?
Ex:
If ($a¹ == ANYTHING¹) {
some action
}else{
some other action
}
Thank you for any help.
--
Steve M.
mmand unknown"
error, type in "sudo chmod a+rx configure" and retry. Wait for the script to
complete.
6. Type in "make" and hit return/enter. Wait for the compile to complete.
Results, no compiled php to copy to!
Last login: Sat Oct 20 15:58:53 on console
Welcome to Darwin
Hi all,
I'm contemplating on a proper way of handling a counter for profile
views on my auto dealership website. I'm currently confused with the
type of algorithm to approach this with.
Say a user has a registered session, and views profile a). I can
increment the counter for that vehicle. The us
I'm trying to install Pear on OSX, but http://go-pear.org/ doesn't
seem to be resolving. Pear manual states I should:
curl http://go-pear.org/ | php
but this fails and
dig go-pear.org
reveals that the name does not resolve. Is there a package somewehre
I can download and install?
--
PHP Gen
Greetings,
I am attempting to alternate the colors of the container DIV. Anyone know
how to do this?
$optone
Edit
Delete
$study_title
$date
";
}
?>
Thank you very much,
--
Steve M.
Does anyone know how to create a field based on a menu choice?
When the menu is selected, then another field is created with an associated
number.
For instance:
Selection = Collie Field = 1
Selection = AkitaField = 2
And so on...
Thanks,
--
Steve M.
ost that old
(totters off to get some Geritol and scream at the kids on my lawn)
steve
--
+--- my people are the people of the dessert, ---+
| Steve Edberghttp://pgfsun.ucdavis.edu/ |
| UC Davis Genome Center
I've been doing a bunch of reading about objects and overloading in
PHP5, but I've got a couple of questions that I can't seem to find the
answer to online. Suppose the following code in PHP5.2.4:
$name to $val...\n";
$this->{$name} = $val;
}
public functi
Greetings,
I am running PHP 4.4.7 without the GD Library and need it to run.
I am very novice on PHP, and am using a Mac with 10.3.9.
Can anyone point me in the right direction?
Thank you so much,
--
Steve M.
How're you folks dealing with records that are auto incremented in MySQL
after a delete is made? I've noticed the only way to get a sequential order
back is to truncate the table completely.
Do you use logic in your code to find a missing ID and insert new records
based on that? Or do you just ign
Recently, I've been doing a lot of benchmarking with Apache to compare
different OSes and platforms. I did a stock install of Ubuntu 7.04
Server w/ Apache2 and PHP5. To do the test, I used ab to fetch the
following document:
PHP Web Server Test
I ran ab in a loop 12 times with 10,000 con
Hi all,
Can anyone suggest a photo upload/framework type library I can incorporate
seamlessly into a PHP project I'm working on?
I'd like for users to have an elegant UI to upload photos of their vehicles
into my application. Mutli-file and progress bars would be a plus. I'm
looking to integrate
Hi all,
This isn't a 'which framework is better than the other' question. I'm a
novice developer and I'm looking to conform to an MVC model for my
applications. I was wondering if anyone would be kind enough and has used
code igniter, to respond to me and let me know their thoughts on it, and if
i
sort ($file_array);
foreach($file_array as $key => $value) {
echo "".$value."";
}
}
}
echo "";
// close directory
closedir($dh);
}
}
?>
--
Steve Marquez
Hi all,
I have rudimentary application which has an index.php that looks like this:
ini_set( 'display_errors', true );
require_once'include/Model.php';
Immediately after that include/Model.php is processed, Model.php consists of
this:
require_once 'DB/DataObject.php';
Thi
'it just imports the first row of my file'
- as in, what does your LOAD DATA statement look like? Were there any
warnings/errors generated? You were doing a LOAD DATA on a tab- or
comma-delimited file, right? MySQL can't eat raw Excel files.
steve
--
+--
P can refuse to accept files larger than a specified size, which
isn't exactly what you're asking:
http://us.php.net/manual/en/features.file-upload.php
For more information, documentation sets in multiple languages are
available here:
http://www.php.net
Hi all,
I was curious if anyone could provide some insight on tools which allow
developers who strictly focus on server-side programming and not UI, to
quickly implement XHTML/HTML templates with proper div placement. Drag and
drop would be preferable.
I'm currently working on a project which no
Hi all,
This is more of a conceptual based inquiry. I'm currently working on
some projects which require me to build system 'X' prior to any
(X)HTML/CSS/graphics are available to me. A lot of the time, I just
garble up default tables/forms/images to replace what the designer will
be ultimatel
Greetings,
I am a very novice user of PHP. I have run PHP 4 on my Powerbook for about
three years. When I installed Mac OS 10.3.9, PHP does not work. I forgot how
to get it running again.
Can anyone help me with this?
Thanks,
--
Steve Marquez
All,
I'm terribly sorry if this is a redundant inquiry. I'm a rather
inexperienced developer who's catching on quickly, and looking for a
framework to build out a project I've been assigned. I'm more of a read
a book and try things out type of learner.
My question to those with more experien
without having to worry about different .htaccess files for each.
Ta
Steve
-Original Message-
From: Richard Heyes [mailto:[EMAIL PROTECTED]
Sent: 17 July 2007 12:25
To: Phil Princely
Cc: php-general@lists.php.net
Subject: Re: [PHP] magic quotes
> What do people on this list usually do w
Sorry, www.textit.biz
Cheers
-Original Message-
From: Dan [mailto:[EMAIL PROTECTED]
Sent: 13 July 2007 17:52
To: php-general@lists.php.net
Subject: Re: [PHP] SMS questions
Might want to retry that link, it's broken.
- Dan
""Steve Perkins"" <[EMAIL PROTE
M. Nixon
Sent: 13 July 2007 09:17
To: Steve Perkins [mailto:[EMAIL PROTECTED]
Subject: FW: [PHP] SMS questions
Hi Steve
Hope you're doing fine.
It is possible. In short, you have seen how a SMS message is sent using a
operators Name label i.e. the Messages says who it's from e.g. TE
PHP, or point the finger ! I suspect eliminate but you never
know..
That's where I think I'd start anyway. Send uz an update when you have some
answers.
Steve
-Original Message-
From: Tanner Postert [mailto:[EMAIL PROTECTED]
Sent: 13 July 2007 00:33
To: php-general@lis
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: 11 July 2007 21:29
To: Steve Perkins
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP5 objects access/instantiation model (correction)
You probably ought to have:
class mysql_driver extends generic_driver { }
Seems like that would be the
OK, so that came out fairly illegible. Try again:
Hi, new to PHP5 (and the forums evidently !) and I have a question about the
object model.
I want to be able to create a class which is allows abstraction from
specifics. So for one example, imagine a generic database connection wrapper
which can
Hi, new to PHP5 and I have a question about the object model.
I want to be able to create a class which is allows abstraction from
specifics. So for one example, imagine a generic database connection wrapper
which can have multiple drivers depending on the database used. Some of the
functionalit
At 7:37 PM -0400 7/5/07, Robert Cummings wrote:
On Thu, 2007-07-05 at 16:27 -0700, Steve Edberg wrote:
Proposal -
Perhaps we could separate Brain Teasers, Obfuscated PHP challenges,
and what-have-you to a separate mailing list, say php-fun (php-phun?
PHPhun?)? Maybe you could also include
y leads to
obfuscation. And one should eschew obfuscation.
- steve, eschewing away...
--
+--- my people are the people of the dessert, ---+
| Steve Edberghttp://pgfsun.ucdavis.edu/ |
| UC Davis Genome Center[EMAIL
urse >:) So really,
words are only offensive to those who somehow infer a secondary meaning.
What that inference is, I've yet to understand. I can say the baby
pooped, had a bowel movement, or dirtied its diaper, but as soon as you
say the baby shit its diaper... people give you a funny look.
D] think you [EMAIL
PROTECTED] are ??';
}
- st&[EMAIL PROTECTED]
--
+--- my people are the people of the dessert, ---+
| Steve Edberghttp://pgfsun.ucdavis.edu/ |
| UC Davis Genome Center[EMA
Hi all,
Does PHP happen to have something similar to Perl's File::Tail ->
http://search.cpan.org/~mgrabnar/File-Tail-0.99.3/Tail.pm?
I'm looking to be able to tail a file on the server side and somehow
figure out how to use AJAX to keep the file consistently updated through
to the client.
Any su
way to do this?
Thanks,
--
Steve M.
Greetings,
I am trying to get information (width, height, file size) from an image
before it is uploaded. Is there a way to do that?
Thank you,
--
Steve Marquez
I got it to work! I just had to place the HTML elements outside of the PHP
code.
Thanks for your help.
--
Steve Marquez
on 6/5/07 2:02 PM Jochem Maas ([EMAIL PROTECTED]) wrote:
> Robert Cummings wrote:
>> > On Tue, 2007-06-05 at 19:57 +0200, Jochem Maas wrote:
>>> >>
.)
> $image = "";
> if ($image == NULL) {
> print "False";
> } else {
>
> ?>
>
>
> }
>
?>
It works if $image is not NULL. However, if it is empty, then it gives me an
error. I am very much so a novice and appreciate your patience.
Thank
The following code works:
However, this does not:
²;
}
?>
It seems that if I add a string, rather than just the variable, then does
not work. I am getting an unexpected T_IS_EQUAL error.
--
Thanks,
Steve Marquez
/
- useful.
steve
--
+--- my people are the people of the dessert, ---+
| Steve Edberghttp://pgfsun.ucdavis.edu/ |
| UC Davis Genome Center[EMAIL PROTECTED] |
| Bioinformatics programming/database/sysadmin
That's why you comment your code. Take the extra time and put a bit of
effort into explaining yourself. Add in a paragraph explaining what's going
on, link to whatever solution you found on the web (who knows it might still
exist), and just outright bloat it with comments. You might find it anno
Very true. I completely forgot to mention that :(
"Chris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Steve wrote:
>> The way I handle it:
>>
>> Step 1-
>> Add SELECT SQL_CALC_FOUND_ROWS to the front of your initial query and add
&g
The way I handle it:
Step 1-
Add SELECT SQL_CALC_FOUND_ROWS to the front of your initial query and add
the pagination limit to the end (LIMIT 200, 400 or whatever range you want
to display.)
Step 2-
Do a 2nd query: SELECT FOUND_ROWS() immediately after.
What does this do?
It will return your
Hello -
I'm looking for recommendations on literature which will give me ideas
on best practices for design and implementation of web applications,
with if possible, PHP as its core reference language.
Syntax has never been the challenge for me, like for most, it's always
been the most practical
Might I suggest using an IDE to develop your code in. It would be able
to spot simple oversights such as syntax errors. I personally use Zend
Studio, however if you aren't looking to invest in a license, there are
plenty of open source solutions out there.
Cheers,
- sf
James Lockie wrote:
> Paul
Not that it really matters in this scenario, but if you rename a file to
.phps you should be able to navigate to it in a web browser and have nice,
highlighted syntax. It's pretty nice for internally viewing a file, but
obviously I wouldn't recommend doing this with live files that contain
sens
Might want to put a small bit of effort in first...
http://us.php.net/manual/en/function.mail.php
Example 1075
""Kuldip Mond"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi,
I am looking to send a HTML page via a PHP script.
The currentl method I use is :
mail(
If you're working under an NDA or on code that doesn't belong to you, you'll
most likely need to hit up the hobbiest side of programming to build your
portfolio. Sit down, plan some app that would make your life easier (or
someone else's), go through the design process, and then code it to
impl
You could always opt to use emacs or vi.
""Jonathan Kahan"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
>
> I beleive this is in the realm of php (I have learned my lesson from last
> time). Does anyone have recomendation for any free (I.E. permanently free
> not 30 d
Is it possible that your zip file is bigger than your max filesize allots?
Most likely isn't the problem, but worth doublechecking.
"Stephen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I have a form for uploading files. It is intended to upload photos. I have
>it listed at the
Maybe I'm way off here, but when you're looking for his numbered place in
the record set, can't you just count the people before him?
ID NAME STATE DATE
1 JoeMaine 2006-02-12
2 JimMaine 2006-01-12
3 James Maine 2006-03-12
4 John Maine 2005-05-12
5 Jordan Maine 2006-02-11
Pse
The way I organize my stuff is that I have all of my object code, functions,
and what not in a specific folder within their own separate files. If there
is enough of a certain category of files to flood the directory, I will
place those in their own subdirectory. I have separate grouping files t
Sorry for the really rough example. I just re-read my message and realized
how much stuff (closing tags, etc) I forgot to include. The general idea
should be fairly clear, though.
""Steve"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> The point
along and doesn't see the field name. They fill in their
username and password and hit submit. The information passed looks like:
$_POST['name'] = 'steve';
$_POST['password'] = 'mypassword';
$_POST['lastname'] = '';
All of the fields a
I read something (I think on Slashdot) a while back about another method
that could be used to avoid CAPTCHAs.
Basically on top of your standard form field, you place some input fields in
a javascript hidden div around your page conveniently named things like
"email", "address", or "phone." Bec
Doesn't that destroy the entire reason for having variables within a class
in the first place? Why not set them as private and use accessors and
mutators to mess with their values? If you aren't going to use those, why
not just create global variables and functions? You basically lose your
enti
teach yourself to do subconsciously, then I feel
it's definitely worthwhile to pursue.
""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Tue, March 13, 2007 9:31 am, Steve wrote:
>> This may or may not help, but here's a f
Instead of trying to call specific $_GET values, try printing out the entire
$_GET variable.
echo '';
print_r($_GET);
echo '';
Anything else there?
"Don Don" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> $query_string = 'testId='. urlencode(trim($tmpTestId)) . '&userId=' .
> u
For your filter to return only/no digits, I would recommend doing a bit of
reading on preg_replace ( http://us2.php.net/preg_replace ) while noting the
following flags:
\d
Matches any decimal digit; this is equivalent to the class [0-9].
\D
Matches any non-digit character; this is equivalent to
This may or may not help, but here's a few things to note:
1) I would avoid placing variable output in double quoted strings. While not
important for smaller scripts, doing a large number of outputs like this
causes a decent performance hit. In fact, I wouldn't use double quotes ever
in php. In
The way I see it, you have two ways to avoid that error:
1) If you want to preserve indexes:
foreach ($array as $index => $name)
{
if ($name->currentHP >0)
{
$newarray[$index] = $name;
}
}
2) If you don't care about indexes at all
foreach ($array as $name)
{
if ($name-
time.php
I think you'll find your work has been at least partially done for
you. And, see
http://php.he.net/manual/en/language.variables.scope.php
for more information on variable scope.
steve
--
+--- my people are the people of the dessert, -
SSLRequireSSL for the directories that should be SSL-secured.
steve
--
+--- my people are the people of the dessert, ---+
| Steve Edberghttp://pgfsun.ucdavis.edu/ |
| UC Davis Genome Center[EMA
201 - 300 of 1688 matches
Mail list logo