Can someone please point me to some PHP code or documentation for
accessing FileMaker Pro tables with PHP? So far googling Zend and
world-wide hasn't found me what I'm seeking.
Thanks,
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 11/12/2007 03:04 PM, Daniel Brown wrote:
On Nov 12, 2007 5:58 PM, Paul Novitski [EMAIL PROTECTED] wrote:
Can someone please point me to some PHP code or documentation for
accessing FileMaker Pro tables with PHP? So far googling Zend and
world-wide hasn't found me what I'm seeking
At 11/14/2007 01:02 AM, George Pitcher wrote:
Paul,
What I'm really looking for is a PHP class that will read FileMaker
files in their native format. I'm beginning to suspect that none
exists in the public arena. Someone please tell me there is!
...
I'm just exporting my tables (files
Looks like you are missing a comma on line 3.
James Lockie wrote:
I get a syntax error on strlen.
$newTypes = array();
$newTypes[0] = array();
$newTypes[0][0] = Starting with
$newTypes[0][1] = strlen( $newTypes[0][0] );
Missing semicolon;
Paul
--
PHP General Mailing List
that's empty if no
records were found or an error was encountered.
In my programming style, I can't imagine wanting to write this code
in such a way that lookUpData() didn't return some form of success or
error indicator.
Regards,
Paul
__
Paul Novitski
Juniper
knowledge and preferences.
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 5/30/2007 10:51 AM, Richard Lynch wrote:
On Wed, May 30, 2007 12:00 pm, Paul Novitski wrote:
[snip] use the archives
Good suggestion!
HOWEVER: it is not a good idea, imho, to always let the errors
bubble up to the outer layer, which is what Paul seemed to have
typed...
But didn't
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(a downloadable Windows application)
by Edi Weitz
http://weitz.de/regex-coach/
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and full stop are synonymous, and the
RegEx manual is throwing dot into the same bag.
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
\r although I can't recall which system uses it.
As an alternative to PCRE, we can pass arrays to PHP's replace functions, e.g.:
$txt = str_replace(array(\r\n, \n\r, \r), \n, $txt);
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
nearly identical logic in key functions, reducing programming,
debugging, and maintenance time. This technique is known variously
as 'unobtrusive javascript' and 'progressive enhancement.'
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
etc.
In PHP this could be:
intval(($month - .1)/3 + 1)
or:
intval(($month + .9)/3)
I believe you can use intval() and floor() interchangeably in this
circumstance.
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
At 7/3/2007 12:11 PM, Jay Blanchard wrote:
[snip]
if($x == 0.01 || $x == 1.0){
$y = in;
}
[/snip]
In for a penny, in for a pound. Metric, that is!
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List
? THE Ella Fitzgerald?? Yowsa!
Bemusedly,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 7/17/2007 11:46 AM, Tom Ray [Lists] wrote:
I'm a little unsure on how to do this but basically when someone
uses a form to upload a file I want to have a popup window come up
and so the process in percentage of the transfer. Anyone do this
before? Is it possible in PHP or do I need to do
At 7/17/2007 07:42 PM, you wrote:
Really people. I find it hard to believe that the otherwise-intelligent
people on this list have such a hard time with the concept that something
should not be done for reasons that don't involve physical property, just as
I find it hard to believe that making
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
://php.net/urlencode
heredoc syntax: http://php.net/heredoc#language.types.string.syntax.heredoc
isset: http://php.net/isset
file_exists: http://php.net/file_exists
readfile: http://php.net/readfile
@ Error Control Operator: http://php.net/@
Regards,
Paul
__
Paul
past an espresso bar that doubles
as an internet cafe. A customer had approached the counter and was
asking the barrista how to access his email because he couldn't find
Explorer, and she advised him to click on Foxfire. (Great movie, though.)
Regards,
Paul
__
Paul
-syntax.comments.php
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
between - and ?
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
Also, you'll want to check the incoming values to prevent SQL
injection (q.v.). If you insert unevaluated input into an SQL query
you're leaving yourself vulnerable to everything from data exposure
to data manipulation from outside sources.
Regards,
Paul
__
Paul
At 11:27 AM 7/13/2006, Michael B Allen wrote:
Let's say you have a Buy button that posts a form to a script that
inserts or increments the quantity of a record in a shopping cart
table. So you click Buy and then Checkout. Now if you hit the Back
button it asks the user if they would like to
Niels schrieb:
The problem: A function tries to update an existing value, but is only
allowed to write certain bits.
There are 3 variables:
A: the existing value, eg. 10110101
B: what the function wants to write, eg. 01011100
C: which bits the function is allowed to write, eg.
With
At 11:18 PM 7/28/2006, weetat wrote:
I have 2 array which populated from MYSQL as shown below :
My program will update status in the temporary table according to
compare of 2 arrays, for example from 2 array below:
in $temptablearr = there 3 elements
in $currenttablearr = there 2
At 12:20 AM 7/29/2006, Paul Novitski wrote:
You might consider concatenating all the elements in each sub-array
to make the comparison logic simpler, e.g.:
foreach ($currenttablearr as $key = $subarray)
{
$comparisonArray[$key] = explode(_, $subarray
At 09:59 AM 7/30/2006, Jochen Kaechelin wrote:
How can I call a JavaScript inside php?
You can't literally call client-side JavaScript from server-side PHP
because they're executing at different times and in different
computers. PHP executes on the server then downloads the page to the
At 10:31 PM 7/30/2006, weetat wrote:
I have problem when doing usort() when 'country' = '', i would
like to display records where country = '' last. Any ideas how to do that ?
...
$arraytest= array(
array
(
'country' = '',
)
,
array
(
At 05:40 PM 7/30/2006, Peter Lauri wrote:
function cmpcountry($a, $b)
{
$country1 = $a['country'];
$country2 = $b['country'];
if($country1=='') return 1;
else return ($country1 $country2) ? -1 : 1;
}
Good call, Peter; my suggestion was
At 12:22 AM 7/31/2006, Paul Novitski wrote:
I could make that last statement just a bit simpler:
function cmpcountry($a, $b)
{
$country1 = ($a['country'] == '') ? zzz : $a['country'];
$country2 = ($b['country'] == '') ? zzz : $b['country'];
return ($country1
At 01:14 AM 7/31/2006, weetat wrote:
Thanks Paul,
Very weird tried Peter's option, it doesn't work.
Btw , how to sort by ascending ?
Please explain what you mean. The current script DOES sort ascending
by country (except for the blank country fields which are placed at the end):
At 10/17/2006 12:39 AM, AYSERVE.NET wrote:
Please, I need help on how to to recognise url in a block of text
being retrieved from a database and present it as a link within that text.
Here's an illustration of your problem:
Input:
Text text http://example.com/directory/filename.html#anchor
At 10/25/2006 04:09 PM, Stut wrote:
Dang that's painful!! Try this...
?php
foreach (range(1, 31) as $day)
{
print 'option value='.$day.'';
if ($selected_day_of_month == $day)
print ' selected';
print ''.$day.'/option';
}
?
Ouch! Gnarly mix of
At 10/25/2006 04:09 PM, Stut wrote:
print 'option value='.$day.'';
if ($selected_day_of_month == $day)
print ' selected';
print ''.$day.'/option';
On Wed, 2006-10-25 at 17:35 -0700, Paul Novitski wrote:
print hdDay
At 10/25/2006 11:24 PM, Robert Cummings wrote:
Now, the thing that I dislike about heredoc for such small strings is
the switching between heredoc mode and the switching back. It's ugly on
the scale of switching in and out of PHP tags.
It's so interesting that some details bug some people and
At 10/26/2006 08:24 AM, tedd wrote:
At 1:04 AM -0700 10/26/06, Paul Novitski wrote:
My comparable example (but in an HTML context) would look like:
Hello span class=firstNameFIRSTNAME/span,
where the engine replaces the content of the span with the value
from the database based
At 10/26/2006 10:38 AM, [EMAIL PROTECTED] wrote:
what would be better solution to count records in table (e.g., how many
customers have last name 'Smith'):
$query = mysql_query(
SELECT COUNT(*) as NoOfRecords
FROM customers
WHERE last_name =
At 10/26/2006 11:16 AM, [EMAIL PROTECTED] wrote:
Would it be ok to use the same code to check if customer is loged in?
$query = mysql_query(
SELECT COUNT(Username) as NoOfRecords
FROM customers
WHERE Username = '$Username' AND Password =
At 10:23 AM -0700 10/26/06, Paul Novitski wrote:
For a robust general CMS, though, I want a completely unambiguous
demarcation of replacable content.
At 10/27/2006 09:01 AM, tedd wrote:
If you want a completely unambiguous demarcation then use xml with
a defined schema. I don't think you
On Thu, 26 Oct 2006 01:04:25 -0700, Paul Novitski wrote:
It's so interesting that some details bug some people and others bug
others. In an expression such as this:
echo 'option value=' . $day . '' . $selected . '' . $day
. '/option';
...I count eight transitions (instances
At 10/29/2006 01:07 PM, Dotan Cohen wrote:
The purpose of the ^ and the $ is to define the beginning and the
end of a word:
http://il2.php.net/regex
No, actually, ^ and $ define the beginnning end of the entire
expression being searched, not the boundaries of a single
word. Therefore
Paul Novitski wrote:
If you go this route, perhaps you could enclose each member of your
original array in \b word boundary sequences using an array_walk
routine so that you don't have to muddy your original array
declaration statement.
At 10/29/2006 01:54 PM, rich gray wrote:
IIRC
On Oct 29, 2006, at 2:00 PM, Børge Holen wrote:
Would you suggest to use a extra field to hold the table name as
default?
At 10/29/2006 04:16 PM, Ed Lazor wrote:
Definitely not. Review your design. If you need to know which table
data comes from, then perform table specific queries. If
At 10/29/2006 08:04 PM, Ed Lazor wrote:
That seems unreasonably harsh.
I can see what you mean, but don't take it that way. I was trying to
help.
Sorry, Ed, I had intended my reply to be friendly as well. I'm
allergic to smiley-face icons, but I should have tried harder to
convey my
At 11/4/2006 08:15 PM, John Meyer wrote:
I'm trying to create this encryption method for puzzles (nothing super
secret, just those cryptograms), but this seems to time out, can anybody
point out what I'm doing wrong here:
for ($i=1;$i=26;$i++) {
$normalAlphabet[$i] = chr($i);
At 11/10/2006 07:09 AM, tedd wrote:
Lastly, I think we all know that non-profit simply means that at
the end of the year you get to roll your profits over to the next
year without incurring taxes on the excess. Nothing more.
Plus, there's no limit or requirements as to the amount/percentage
At 11/13/2006 01:28 AM, Mel wrote:
Could someone please help me figure out how to show some description
(where applicable) at the same time as I show an image, when I click
on a link, without repeating the entire query?
The image and the description are both in the same table in my database.
I
At 11/14/2006 03:17 PM, Børge Holen wrote:
$number = 123456789
should print as following:
var1: 12345 (and it is this lengt witch varies)
var2: 67
var3: 89.
You can also do this with a regular expression:
$iNumber = '123456789';
$sPattern = '/(\d+)(\d{2})(\d{2})$/';
preg_match($sPattern,
At 11/14/2006 08:00 PM, Ed Lazor wrote:
I'm reading a book on CSS and how you can define different style
sheets for different visitors. I'm wondering how you guys do it.
The book recommends using Javascript functions for identifying the
user's browser and matching them with the corresponding
At 11/15/2006 02:06 PM, Børge Holen wrote:
Oh this was good.
I added a while loop to insert extra strings 0
in front of the number to add
if the string is less than 5 chars short.
I forgot to mentinon that the string actually could be shorter (just found
out) and the code didn't work with
At 11/16/2006 12:19 PM, Ashley M. Kirchner wrote:
Say I have an array containing ten items, and I want to display
them in a table as follows:
5 4 3 2 1
10 9 8 7 6
What's the best way to loop through that array to do that? My
thinking gets me to create a loop for 5 through 1,
At 11/16/2006 01:56 PM, Dotan Cohen wrote:
$text=preg_replace_callback('/\[([A-Za-z0-9\'.-:underscore:]+)\|([A-Za-z0-9\'.
-:underscore:]+)\]/i' , findLinks, $text);
This regex should match any pair of square brackets, with two bits of
text between them seperated by a pipe, like these:
On Thursday 16 November 2006 01:38, Paul Novitski wrote:
If you need to left-pad with zeroes, PHP comes to the rescue:
http://php.net/str_pad
However, if you're using the regular expression
method then you might not need to pad the
number. You can change the pattern from
At 11/16/2006 08:46 PM, Myron Turner wrote:
The underscore plus alphanumeric are included in \w, so to get a
regex such as you want:
[\w\s\.\-\']+
You should escape the dot because the unescaped dot stands for any
single character, which is why .* stands for any and all
At 11/16/2006 03:19 PM, Dotan Cohen wrote:
However, this function:
$text=preg_replace_callback('/\[([A-Za-z0-9\|\'.-:underscore:]+)\]/i'
, findLinks, $text);
Does what I want it to when there is no space, regardless of whether
or not there is a pipe. It does not replace anything if there is a
At 11/21/2006 03:02 PM, pub wrote:
Is it appropriate to ask your client to add Powered by your company
to the sites you design and maintain?
And when you see Powered by does it mean designed by or maintained
by or both?
'Powered by' sounds like an engine or a fuel, so I imagine it to mean
At 11/27/2006 11:21 AM, Ross wrote:
$text = $_REQUEST['text_size'];
if ($text) {
echo $text;
}
I send the $text_size variable to the browser with lines like...
a href=? $_SERVER['PHP_SELF']; ??text_size=small class=size1
id=oneA/a
When the page initially loads I get a undefined index
At 11/27/2006 02:11 PM, Ross wrote:
$text_only = isset($_GET['text_only']) ? $_GET['text_only'] : 1;
if ($text_only==1) {
?
a href=?php echo $_SERVER['PHP_SELF'];??text_only=0off/a
// import css here
?
}
else {
?
a href=?php echo $_SERVER['PHP_SELF'];??text_only=1on/a/span
// import css here
Hi all. I am building a web app and as part of it advertisers can upload
their ad image and website URL to go with their ad. Is there a good way to
detect whether that site is a porn site via php?
If the sites home page contains the words sex, babes, and a few other
choice words, which I'll
At 11/28/2006 11:57 AM, Rory Browne wrote:
I didn't mean something quite that simple, or as an absolute solution.
I meant something slightly more advanced, but based on that idea.
From a robot point of view, what do you think is the difference
between the php archives and a porn site?
What
At 11/28/2006 05:05 AM, Satyam wrote:
May I invite you to check http://satyam.com.ar/pht/? This is a
project I started some time ago to help me produced HTML in a more
clean and efficient way. Usually, producing good HTML involves
running a sample output through some HTML validator or
At 11/29/2006 01:51 AM, Robin Vickery wrote:
Cubist Porn - very big in certain 'artistic' circles.
What, both eggs on the same side of the sausage?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 11/29/2006 05:13 AM, Satyam wrote:
- Original Message - From: Paul Novitski [EMAIL PROTECTED]
What I find to be a much greater problem is the
human readability of logic code when HTML is
mixed throughout. Your innovation is helpful
here, as you're nearly making HTML tags into
PHP
At 11/30/2006 01:52 AM, Satyam wrote:
And, stepping back, you're perpetuating the embedding of markup
with logic so that it will still take a PHP programmer to modify
the markup of one of your pages. Do you not see the advantage in
separating the two layers?
Yes, I do, and I would recommend
On Thursday 30 November 2006 18:51, Paul Novitski wrote:
With respect to separating code and markup, you said sometimes there
are reasons not to do so, for example, web services. What are some
of those reasons?
At 11/30/2006 10:57 AM, Sancar Saran wrote:
What about performance ?
Web
At 12/1/2006 10:17 AM, Scott wrote:
For a project of mine, I need to keep the connection information to
a MySQL server database on another server.
I'm sure there are more efficient ways to do this, but here's a fall-back:
Write a PHP program (web service) to run on the server where the
At 12/1/2006 02:22 PM, Richard Lynch wrote:
On Thu, November 30, 2006 6:47 pm, Paul Novitski wrote:
A templating system requires the processor to merge content with
template. An inline markup assembly system requires the processor to
build the markup from function calls. Where
At 12/4/2006 01:08 PM, Jay Blanchard wrote:
[snip]
Is there any way for PHP to know whether it is being called due to a
browser refresh versus a mouse click? I think the answer is no but I
just want to be sure. Thanks.
[/snip]
Not unless you specifically capture and send a JavaScript onClick
At 12/18/2006 10:14 PM, clr wrote:
Please can someone advise me on heredoc and its shortcommings,
I am designing a complex site and elected to use DIV's as opposed to frames.
Heredoc seems to be ideal in that I can do all processing first and
then layout with relative ease.
I was wondering
On 12/18/06, Fahad Pervaiz [EMAIL PROTECTED] wrote:
I have written a framework for internationalization. Now i have incoorperate
it into and existing system that is huge and it will take alot of time to
change ECHO to a function call, so i want to override its implementation so
that i can use
At 12/19/2006 11:01 PM, Ashley M. Kirchner wrote:
I'm starting to log weather data to a database and I'm trying to
figure out what's the best way to create the tables. The reports
are coming in every minute, of every hour, 24 hours a
day. Eventually, I'd like to do some calculations on
RAFMTD (Ian) wrote:
...
$name = mysql_real_escape_string ($_POST['name']);
...
mysql_connect(humbug,$username,$password);
...
the script fails with the following report Warning:
mysql_real_escape_string(): Can't connect to local MySQL server through
socket '/var/run/mysqld/mysqld.sock'
At 12/23/2006 10:33 AM, Jean-Christophe Roux wrote:
Hello, I have this php script of 3,500 lines with a big switch that
is such that on each pass maybe 300 lines of codes are executed at
most. The current speed of the file is ok. I like to keep the file
like that because at each pass there is
At 12/28/2006 03:51 PM, Skip Evans wrote:
chocked ?
chocking ???
RTFM:
http://php.net/chocked
Warm regards,
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 12/30/2006 10:56 AM, tedd wrote:
Why can't the php script redirect the browser when called via ajax ?
Ajax is giving PHP control over just that byte-stream that ajax is
receiving and perhaps inserting into the page, not the full page itself.
Say you use javascript to set the src of an
At 1/2/2007 12:24 AM, Le Phuoc Canh wrote:
Can we use php to detect client screen resolution? Please help me ?
Do you really want screen resolution or do you want browser window
size? Not every PC user keeps their windows maximized, and I have
yet to meet a Mac user who attempts to do so.
I've recently discovered a tool that I recommend for web work:
ServiceCapture by Kevin Langdon
http://kevinlangdon.com/serviceCapture/
It acts as an HTTP proxy, inserting itself between browser and the
net, and logs the details of http requests and responses.
It's been a great help to me
, comma
; semicolon
: colon
http://www.usask.ca/its/courses/cai/javascript/js_semicolon.html
http://en.wikipedia.org/wiki/Punctuation
http://www.cogs.susx.ac.uk/doc/punctuation/node00.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
At 1/15/2007 01:52 PM, Otto Wyss wrote:
When values are entered on one of my page I submit the result back
to the same page (form action=same_page). Unfortunately each submit
adds an entry into the history, so history back doesn't work in a
single step. Yet if the count of submits were known I
At 1/16/2007 12:54 PM, Jason Pruim wrote:
First off, thanks to everyone who helped me get started with a
thumbnail gallery that would display info you could just copy/paste
into a weblog (Or any webpage) and have the picture display.
I am moving along with a few additions and seem to be running
At 1/18/2007 02:56 PM, Chris W. Parker wrote:
I'm currently working on trying to find a solution that is both simple
and flexible for storing the data of a complicated set of dynamic
options for some of our products. My current thinking is that I will use
Modified Preorder Tree Traversal to
At 1/20/2007 02:14 PM, Andre Dubuc wrote:
However, checking the live version, I get an secure-error_log entry:
PHP Warning: session_destroy() [a
href='function.session-destroy'function.session-destroy/a]: Trying to
destroy uninitialized session
Question is: didn't the session_start(); on the
At 1/21/2007 01:54 AM, pub wrote:
I am working on my query as you suggested. I have a joint query that
seems to work except that I get the name of the company repeated for
each job. Could you please help me figure out how to make it echo the
company once and list all the jobs next to it on the
putting the attribute values in double quotes and see if that helps:
a href=person.php?id=123 target=_blankview details/a
How does your page validate? http://validator.w3.org/
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
I've got a simple script running as a cron job that's getting
intermittent Lost connection to MySQL server during query errors.
The script sends out listserve messages, 50 BCCs each minute,
sleep()ing for 60 seconds between sends and updating a data table
after each send. The whole BCC list
At 6/18/2008 04:49 PM, Shiplu wrote:
why don't you edit your code?
foreach (recipients as batch)
{
mail() using batch of recipients;
mysql_query() update table;
if(mysql_errno()==ERROR_CODE_YOU_GET){
of names
arbitrary, even random, and often incorrect relative to their
origins. Good luck! But don't give up -- as Xeno will attest, your
earnest attempt to reach the tree with your arrow will gain praise
even if it's doomed never to actually arrive.
Regards,
Paul
__
Paul
At 6/18/2008 02:47 PM, Paul Novitski wrote:
I've got a simple script running as a cron job that's getting
intermittent Lost connection to MySQL server during query errors.
At 6/18/2008 10:43 PM, Chris wrote:
You need to do a
mysql_close();
mysql_connect(...)
before mysql_query works again
.',
),
);
This is the right PHP syntax, except that you've got an extraneous
comma before the closing parenthesis of each array that's going to
throw a parse error.
Regards,
Paul
__
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General
At 6/19/2008 07:36 PM, Robert Cummings wrote:
54321 = array(
'mail' = '[EMAIL PROTECTED]',
'companyName' = 'Asdfu Corp.',
),
);
This is the right PHP syntax, except that you've got an extraneous comma
before the closing parenthesis of each array that's
At 08:57 AM 3/6/2006, tedd wrote:
What I find interesting in all of this exchange -- however -- is
that everyone agree's renumbering the id of a dB is something you
don't do, but no one can come up with a concrete (other than
relational) reason why.
It's simply -- concretely -- inefficient
At 05:05 PM 3/7/2006, Kevin Murphy wrote:
Well, part of the issue is that I want to be able to use this as part
of the link:
/news.php?article=2006-03-05a
/news.php?article=2006-03-05b
With respect, I too think you should re-examine your reasons for
wanting to number (or letter) the links
At 07:41 AM 3/8/2006, Jabez Gan wrote:
Sorry im new but, how do we read from a file to an array? I've studied C but
not with PHP and it's not working for me... Suggestions?
file()
Reads entire file into an array
http://php.net/file
Doesn't require open close.
Paul
--
PHP General Mailing
At 10:27 AM 3/8/2006, Rory Browne wrote:
$filename = filename.txt;
$file_content = join(\n, array_reverse(file($filename)));
echo $file_content;
Rory,
I think you've got the logic right.
Tangentially, however, I recommend that you break it out into
separate statements and not throw
At 07:05 PM 3/8/2006, Jabez wrote:
I used the following code that Paul suggested, but it didn't reverse my
content.
The file I would want to have the content reversed is as attached. Chinese
characters is in the file so...
Suggestions?
Jabez,
The data in your file is all in one text line.
At 07:06 PM 3/15/2006, Chris Kennon wrote:
when is using heredoc advisable over Double-Quotes?
I love using heredoc primarily because it helps me separate logic
from markup when generating HTML. The text in a heredoc expression
is vanilla, no escape sequences needed, so there's less worry
At 10:57 AM 3/28/2006, ngwarai zed wrote:
hi, I omitted a semicolon ; at the end of a php statement on purpose to see
what the error looks like. I ran the script and a blank page just came
out.No error message. I then edited php.ini and set Display_errors = On and
errror_reporting = E_ALL
At 11:08 PM 4/5/2006, John Taylor-Johnston wrote:
How can I take enquiry:
input name=searchenquiry type=text value=john
or
input name=searchenquiry type=text value=john johnston
and parse its value to come up with this to do a boolean search
+john
or
+john +johnston
John,
If you're
1 - 100 of 221 matches
Mail list logo