reader returns for a
> finger print and put it in a webpage form???
>
> There has to be a way to do it...
>
> --
> Joe Harman
> -
> Do not go where the path may lead, go instead where there is no path
> and leave a trail. - Ralph Waldo Emerson
>
> --
>
why you're only getting the second item.
-TG
= = = Original message = = =
Hi, all,
This might look like a mysql problem but I assure you it's my botching
the PHP which is the problem!
I'm building a part of a page with info from three tables: art, media
and media_art. Media_art
use a COM
connection to handle this.
First, maybe check out the Excel Writer PEAR package. Here's a link to a post
I made about it a while ago with instructions on how to install it:
http://marc.theaimsgroup.com/?l=php-general&m=111409575703230&w=2
Excel Writer uses another PEAR p
That looks like some of my code.. or a derivative of my code. For some
reason, my PC at work here is having issues with PHP instantiating with COM so
I can't test this, but the code you posted is conspicuously missing all the
braces { }. I'm guessing that's not your issue th
do that when you can share the Calendar over outlook?
On 6/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
> That looks like some of my code.. or a derivative of my code. For some
> reason, my PC at work here is having issues with PHP instantiating with COM
> so I can
ntval('NULL') === 0
= = = Original message = = =
Run this code:
";
else
echo "'NULL' != 0";
?>
Is this just a case of PHP converting variable types for comparison?
thnx,
Chris
--
PHP General Mai
ured with the same profile?
Thanks
Justin
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, 7 June 2005 1:01 AM
To: php-general@lists.php.net
Cc: Baiocchi, Justin (CSIRO IT, Armidale)
Subject: Re: [PHP] Displaying an Outlook Calendar on a webpage using P
:
Please reply to [EMAIL PROTECTED]
if you feel this message to be in error.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP doesn't really have anything to do with IE or Firefox working or failing to
work, it's all about the HTML that PHP generates.
What does your tag look like? That's probably more the issue than your
button or anything having to do with PHP.
If you have no tag, then the br
e or pear class or anything that does this?
I am guessing I have to use COM, but this is all new to me. I am expert PHP
and OO level though.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the same effect.
I want to find a smart way to do this trimming in order not to have any
side effects.
[/snip]
Trim it to 25 characters? I think we may be missing the point of your
question. Can you clarify this for us? Are you wanting
This is regular text with som
e text inside a spa
Not really a PHP question, but you could look to see if your friend has a GPS
enabled phone and phone service and if there's an API for pulling the location
from the phone co's systems. Then you could see if there's a PHP solution for
interfacing with that API.
Some cell phon
as to maybe check out the PHP extension Winbinder:
http://www.hypervisual.com/winbinder/
But while it gives you access to low level Windows API functions, it might take
some hacking to get it to get you a screenshot.
A non-php solution might be to use something like WinBatch. It's a
You might get a cold response because it sounds like you're asking if you can
write a program in PHP that harvests email addresses from web pages. Typically
this would be used for mass email marketing aka 'spam'. Not a lot of people
want to support that kind of programming proj
Free download at http://www.ePrompter.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Don't forget also that if you're running on a Windows platform, you can use the
php-win.exe to avoid having any console window appear at all.
-TG
= = = Original message = = =
Steve Buehler wrote:
> At 04:54 AM 8/1/2005, you wrote:
>
>> Shit shit shit!!! I completell
Just looked into this recently and here's a brief rundown of what I've found:
1. If you run PHP on a non-Windows system, your only option seems to be making
a connection to a remote ODBC data source (hosted on a Windows machine
presumably). There was something..err.. ODBTP (?) that
th "orders" and "special_orders_instructions" right? You can
just link on that without needed to add any special columns. Try something
like this:
SELECT o.order_id, o.otherordercolumn, soi.order_id,j
soi.otherinstructioncolumns
FROM orders AS o LEFT JOIN special_orders_instructions AS soi ON o.ord
Could be that he's trying to use PHP to restart the server. Or could be using
php via command line or through a system like GTK or Winbinder. It's worth
noting that you should make sure you're restarting the machine you think you
are, but the question still remains... is th
Yeah, you can connect to Oracle remotely. The standard PHP functions should do
it probably, but I've done it using ADODB.
I don't know if this is the same on a *nix box, but I was running PHP on a
Windows box and needed special Oracle stuff installed on my machine to connect
to the
type conversion though.
the triple equalsign deal should work since it forces PHP not to convert types.
-TG
= = = Original message = = =
>> No, Christopher, that is not a bug. As long as the var is empty, and if
>> you try to compare with 0, or false, it will report true in the
>>
Just to clearify what you're trying to do. Maybe LDAP (or the ADLDAP?
suggestion) isn't what you need.
Are you trying to have a user type their username and password into a web form
and have PHP pass that information to an active directory server? Or are you
trying to make sure tha
So their page POSTs to a PHP page that you've created? I'm not seeing where
headers come into play there, they're on output, not input. Maybe I just
stayed up too late last night, but I'm having trouble wrapping my brain around
the problem.
One thing I did notice was yo
BTW: I made a mistake last time. Apparently with CLI there are headers. You
can use "php -q" to suppress headers when using PHP via CLI. Odd. Not sure I
had to do that when I wrote a few CLI scripts before. Oh well, something to
play with another day (don't have time to che
(fputs($fp, $_XML_REQUEST_HEADER . $_FULL_XML_REQUEST) === FALSE) {
exit("Failed to send request...");
}
while(!feof($fp)){
~
// "@" error suppression used on fgets() due to bug in PHP that reports the
following waring:
// Warning: fgets(): SSL: fatal protocol error in
ected. The DSN has the correct
data and it works when there are fewer users, but for some reason it
says that the db has not been selected.
So it seems that the cause of that error is in the connect method of the
mssql class. We are using persistent connections but for some reason
when it goes
-Original Message-
From: zedleon [mailto:[EMAIL PROTECTED]
Sent: 17 August 2005 21:30
To: php-general@lists.php.net
Subject: Re: [PHP] Help correcting a form mailer problem...
thanks for the reply...
after using the print_r($_POST['gmev']); and selecting all the checkboxes to
Hi
If the checkbox exists in the array it is selected... if it isn't there it's
not selected
That's my experience :)
-Original Message-
From: zedleon [mailto:[EMAIL PROTECTED]
Sent: 17 August 2005 21:30
To: php-general@lists.php.net
Subject: Re: [PHP] Help correctin
I do apologise... it's been one of those days and the form I was thinking of
didn't actually have any values attached to the checkbox
Ignore me :)
-Original Message-
From: Jordan Miller [mailto:[EMAIL PROTECTED]
Sent: 17 August 2005 22:28
To: [EMAIL PROTECTED]
Cc: p
server is rebooted again the application starts without errors.
> Pls help me what will be the problem.
> Sangram.
_______
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Damn... you said those words "cross platform".. But I'll still take this
opportunity to plug Winbinder again. If you're just working with a Windows
platform, Winbinder has it all!Fantastic interface, very self contained,
just a great PHP standalone/app/etc exten
What I've done with it hasn't included any compiling or code obscuring, but
there are a number of PHP code protection schemes that may work with this. I
havn't kept up on recent developments, but I've seen the question ask a number
of times if you can compile or at least
lock if indeed $a == ($b + $c) ?
Thank you for your help.
Brian
___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
To elaborate on Philip's response (which is correct)...
Anything in double quotes (" ") will be interpreted by PHP before figuring out
what the actual value is. Items like \n, \t, etc are therefore converted to a
newline (\n) or a tab (\t) before assigning to the variable. V
.
-TG
= = = Original message = = =
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> To elaborate on Philip's response (which is correct)...
[]
>
>
> I've read "never use double quotes unless you have to" because it could
> potenti
The closest you get to 'cut' in PHP is probably the 'explode' command. It
splits a string by a delimiter like 'cut' does, only it dumps the results into
an array:
$etcpasswd = "username:passwd:123:345::/home/username:/bin/sh";
$pwdarr = explode(":&
;
I think $arr1 is only a temp-var, so the assignment won't reflect on
$_SESSION['arr1'] . Is that right?
Surely I can do it with a for-loop, but those arrays are a bit complex
and a foreach would be much easier to rea
I've used PHP on Windows systems quite a bit and have had very little problem.
But then again, many times it's been for small projects that didn't have a
chance to develop any nasty 'gotchas'.
First thing that comes to mind to investigate further, though, is Zend
arry of chars to replace with array(a,b,c,d,e)
what function do I need to replace all chars from one arry to the other that
are found in the var $contents
Thanks
M
___
Sent by ePrompter, the premier email notification software.
Free d
Havn't done it myself, but why not try pasting a link in IM and have it go to a
php script that does a var_dump (or print_r) of $_SERVER. Think that's where
the referrer data is.
It may not show any referrer information since it's coming from an IM, but who
knows.. would be
I believe you're right, they used to include it with PHP. I believe the PEAR
docs even say something about it being included. Maybe they don't anymore so
you have to go to the PEAR site to get the latest installer. That way they
don't get people using an older installer/packa
Nope.. you're pretty much stuck using Javascript or processing it all on the
back end with PHP as you described. You could store the data in a database or
a $_SESSION variable but without using something client-side, you're going to
have to juggle it all with PHP.
-TG
= =
ly.
> >
> > and where on the page would that need to go? Within the head tags?
> > and would it need to be within
>
> Right after this line:
>
> mail ($to, $subject, $msg, $mailheaders);
>
> And you will already be within PHP interpretation.
>
> C
d and no white space involved. What would I need to put tin the
exit()/die() function?
--
::Bruce::
___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP General Mailing
_______
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nsfered.
I need to detect file size before all file is transfered, in order to
cancel it and preserve server resources.
Any ideas?
Thanks in advance
Ruben Rubio Rey
___
Sent by ePrompter, the premier email notification software.
Free dow
ce($tags, $userinfo, $templte);
}
Is that the answer you were looking for?
-TG
= = = Original message = = =
Is there a search & replace PHP command?
An example I am needing this for would be:
My name is replace_with_real_name
I want to retrieve replace_with_real_name from a mySQL datab
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
number are not
going to be carried over from one script execution to another.
If I recall properly, lets say script1.php opens a file, that's resource #1,
then it opens a database connection, that's resource #2, etc..
Now let's say script2.php opens a database connection first, tha
First, I want to beat everyone to the punch in yelling at you.. "This is not a
PHP question!!! RTFM STFU NOOB" or something stupid like that. hah
But, maybe it seems like it COULD be a PHP question. And it's definitely
relevant to PHP development, so how about we give a REAL an
itting to a database.
I want to remove quite a bit of the array but using the KEYs not the
values. I know the keys I want to keep and I know the keys I want to get
rid of. I want to keep the structure and sequence of the array in tact.
All of the array traversing functions in PHP seem to either
for($i=1;$i if(!is_array($args[$i])) continue;
> foreach ($args[$i] as $key => $data)
> if (isset($originalArray[$key]) && !isset($res[$key]))
> $res[$key] = $originalArray[$key];
>
>
>
with
a starting/ending ip address range>>
Thanks,
Dave
___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ing a PHP script to attempt to find the info.
Or just call Ford directly and ask for a directory of registered dealerships.
They might be able to email you a complete list.
-TG
= = = Original message = = =
Hi All,
My company is trying to send an offer email to all Ford dealers in USA.
We don
It's because PHP is trying to convert different var types into a common var
type and then compare them when you use ==. === means compare value AND type
so that's why it fails.
Your string, 'Some kind of string' is getting converted down to the lowest
common denominator,
somevalue";
if (is_empty($value1)) {
$value1 = "NULL";
} else {
$value1 = "'" . $value1 . "'";
}
if (is_empty($value2)) {
$value2 = "NULL";
} else {
$value2 = "'" . $value2 . "'";
}
$qid = mysql_query(&
tabase with your application, then don't confuse
strings with integers.
Actually, it might be better for your own
education/sanity/comprehension/documentation/code to not confuse
strings and integers with '' around integers in the SQL, but if
everything ELSE is good in your code, an
Search the machine for "php.ini", I'm guessing that you'll find one in your
main PHP directory as well as in your main Windows directory. I believe the
Windows directory copy is read first. I'm not sure why.
At any rate, if it looks like it's reading the wrong co
eplication, you can do this realtime (or at least semi-realtime), but you
could simulate replication in your PHP script as well.
The idea is to see what INSERT, UPDATE, DELETE and ALTER (maybe some other)
commands are run on SourceDB and perform the same actions on DestinationDB.
This can be
y
dimensions.
For each room I need to insert the values to the database, however I cant
think of a way to do this. All one can do with php is a foreach on the
$_POST values whereas I need to process two at a time i.e. one insert of the
x and y values per room. Here is the form
might speed up your process a little and if it
> doesn't use any more memory, then why not?
I could make a buffer of N lines and read them, I guess.
I kinda figured at 1 line a second, PHP and the OS would have no
problem buffering from the disk.
> Another thought.. can you use dat
ometimes not) a "command" branch. This
is what's run when you select that option from the right-click menu. And
voila! We find that the command to use Acrobat to print (which can be executed
from command line on a Windows machine) is:
"C:\Program Files\Adobe\Acrobat 5.0\Acroba
WEB
>SERVER, then your best bet is probably to figure out how to print that
>PDF from MS-DOS and then to use http://php.net/exec to print it, I
>would guess...
>
>
It's from a cli PHP install on a local machine :-)
>You might be able to use PHP to open up a COM object t
xt = trim($text); ?
~ */
~$string = explode(" ", $text);
~
~/*
~ * For better programming practice, you should initialize $trimed
~ * I believe if you turn on error_reporting for all in php.ini
~ * PHP will display all warnings and errors.
~ */
~for ( $wordCounter = 0
o . $pos_three] . $tmpoutput;
}
if ($x > 1) $tmpoutput .= " " . $places[$x];
array_unshift($outarr, $tmpoutput);
//$output = $tmpoutput . " " . $output;# Can just use this instead of
"array_unshift" if you don't need to put comma dividers
fication software.
Free download at http://www.ePrompter.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e you saying that it would be good to have an active
> moderator on this list? ;)
only if he is truely sadistic :-)
anyone fancy giving John karma? ;-)
oh hand on ...Jay Blanchard is the one with his hands deep inside
IIS these days, sounds like a sadist if evcer I heard one.
>
__
, stripslashes($subject), wordwrap($message, 60), "From:
$from\r\n");
I change this line to:
mail($to, stripslashes($_POST["subject"]), wordwrap($_POST["message"],
60), "From: $_POST["from"]\r\n");
and I get:
Parse error: parse error, unexpected
Yay! Useless Trivia Time!
That big nasty word is apparently the name for "::". Here's a PHP manual page
explaining how it's used. I'd recommend looking for a misuse of the "::"
operator in your code.
http://www.php.net/manual/en/keyword.paamayim-nekudotayi
=
Hello
I'm trying to extract some text between two tags:
Example
I have this string :
$text='
1234
';
And I want to retrieve the number 1234 between and
Any idea??
Normmy.
___
Sent by ePrompter, the premier email
TED]
"The prolonged evacuation would have dramatically affected the
survivability of the occupants."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
___
Sent by ePrompter, the premi
-Original Message-
From: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED]
[snip]
application/text isn't a MIME-Type, is it? Do you mean text/plain?
[/snip]
Or maybe text/html?
Sent: 12 November 2005 22:46
To: Todd Cary
Cc: php-general@lists.php.net
Subject: Re: [PHP] Printing
ree download at http://www.ePrompter.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
field name. Is there a way around this?
Thanks for your help.
Shaun
___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubs
Probably because the apostrophe aka single quote is used the same way it and
the double quotes (") are used in PHP, as a string delimiter.
What you're ending up with is:
SELECT nameOfPedigree FROM tbpedigrees WHERE SUBSTR(nameOfPedigree,0,1) = '
What you'd want is somethin
rpret it in your head
like the computer would.. like by line.. maybe you'll see where something is
ambiguous and under certain conditions creates a fail.
Let us know what you find.. kind of curious myself.
-TG
= = = Original message = = =
So... I have this script (being called in a per
ment you might want.
One other side nugget related to this (formatted and spaces and all that
nonsense), you can use the tag to tell HTML not to word-wrap the
text within it. Comes in handy when you want to force a column heading to be
one line even though it's got a space in it and yo
test
Hello
Is it good to use exception handling for error handling or I should use only
for exceptions?
For example:
Is it good to throwing user input errors with throw new Exception().
Thanks
_______
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
quot; without
walking through each value?
___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
uch text with a scrip is very difficult. Does anyone knows a
good exaple of such script?
___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP General Mailing List (http://www.php.ne
e an image from
everything between the table tags with php so I can make it link to another
page, is this possible?
Thanks for your advice
___
Sent by ePrompter, the premier email notification software.
Free download at http://www.
___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x27;s better not to answer than to start a flame war.
I took this question to be along the lines of "How would you get PHP to send
POST variables" where as another solution (probably the better and simpler) was
"Yeah.. just put the full path of the other server in your FORM tag as
veryone on the ass by getting offended
by "happy holidays"?? holy buddah!)<--- not RFC 12345 ("Rant")
compliant
= = = Original message = = =
[snip]
> Your best bet may be AJAX. Google has tons of information.
>
> PHP is not well suited for triggering a client
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ns the right result, a new array.(outputs Array). So what
> exactly where you saying 'Taint so' Al? I'm confused since Jochem's
> email about how to properly copy an array seems correct.
>
> James Kilbride
>
>
>>-Original Message-
>>From: Al [mai
ding) and
just use PHP to pad the numbers for display purposes too.
Just some random thoughts.
-TG
= = = Original message = = =
Ave,
Now that is an interesting perception. I didn't think about that. Well I can
always change it to five or six. Let me re-assess this with the concerned
pers
If all you want to do is pass an unknown number of arguments to a function,
this looks like it demonstrates what you're doing:
Found it at:
http://www.php.net/manual/en/function.func-num-args.php
= = = Original message = = =
"PHP does not support function overloading."
S
It'll be disregarded since it's not 'contained'
inside any tags.
Cheap hack, but should work fine.
-TG
= = = Original message = = =
Hi,
I am posting a request to a server from a PHP and getting a result. When I
trap the response, it comes with all the contents. Is there a met
No.. it sounds like he wants to make function calls to PHP from another app..
kind of the reverse of using PHP's COM calls.
I'm not aware that PHP has any registration in an OS or any kind of inherent
"listening" mechanisms like COM has (I'm phrasing that poorly but
me to send some xml data but that's all.
Anyone know how to send POST vars?
Big probleme here is also that i have to connect via SSL.
Many thanks for any help.
Greetings
~Barry
Here is my code:
blablubb";
# array with the options to create stream context
$opts = Array();
# compose HT
PHP might not be sending you an error, are warnings turned on in php.ini? if
not turn the on and see if you get any errors
On 12/18/05, David Hall <[EMAIL PROTECTED]> wrote:
>
>
> > >if ($_POST["$submit"])
> >{
> > $Name = $_PO
ECTED]> wrote:
>
> I've got this down to a bare bones test but am still stumped. Can anyone
> explain why I get the behavior I do?
>
> I have a frameset with 3 frames:
>
> testing
>
>
>
>
>
>
>
> test1.php and test2.php are bot
7;t have any.
Dr. Joseph Dolan: No children?
Fletch: No, elephant books.
___
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 12/28/05, PHP Superman <[EMAIL PROTECTED]> wrote:
>
> I agree with Greg, if you guys don't care about new versions lets all
> downgrade to Pentium 1 computers using dial up, if we don't move from PHP 4
> to PHP 5 now, then when PHP 6 comes with a truckload of n
you are not missing anything, you are actually adding to much. Using "new"
is for making objects, if you take away the "new" in the $result variable
declaration it should work fine.
On 12/28/05, Erik Saline <[EMAIL PROTECTED]> wrote:
>
>
> - Original Message
Hey everyone, is there a way to return all the variables from a string into
an array, for example
$Var1="Yo";
$Var2="Man";
$SQL="SELECT * FROM tblname WHERE 4=$Var1 AND WHERE 3=$Var2";
$AllVars=MySpecialFunction($SQL);
print_r($AllVars);
would ideally print an array like:
{
array
$Var1="Yo"
$Var2=
What OS are you using? I think that you entered the wrong filename. for
windows i use php_mysqli.dll . Somewhere in php.ini there is a list of
extensions you can use, uncomment the php_mysqli.dll , copy php_mysqli.dll
to the php install directory and change the php.ini extension setting to
your
801 - 900 of 2184 matches
Mail list logo