I'm still trying to get a file posted to another server, but I seem to have
run across an odd snag, and I was hoping someone can point out where I've
gone wrong. Here's the code:
$data = "mtype=XMLDOC&outfile=true";
$dataFile =
"http://www.healthtvchannel.org/courses/pay/data/t
At 11/26/2002 10:42 AM, Shane wrote:
It's been a while since I have done any PHP work. I am creating an online
employment application using multiple forms for a client. I was going to use
PHP. I don't remember if I need to pass variables along with the form for
each page, or can I just call them
At 11/28/2002 01:51 PM, Ernest E Vogelsinger wrote:
> $data = "mtype=XMLDOC&outfile=true";
> $dataFile =
>"http://www.healthtvchannel.org/courses/pay/data/test.xml";;
> $fileSize = filesize($dataFile);
Ah. It is a local file, I was just using an absolute reference for it
I'm getting a really weird return from Strpos. What I'm doing is this, and
anyone familiar with any of the table-runner programs for RPG's will know
what I'm getting at here, I have a fields, like [adjective], [noun], etc.,
which I need to pull out and replace with values from included php files
At 12/9/2002 07:20 PM, John W. Holmes wrote:
> It'd be easier to use a regular expression for something like this.
> Something like this would work (from PHP Architect):
I appreciate that, but considering I'm working from about 1200 files that
already exist and use [] to denote table names, I k
At 12/10/2002 03:43 PM, you wrote:
John's suggestion of using '{', and '}' as the tag delimiters was to simplify
the regex. You can continue to use '[', and ']' as your delimiters, just
change the regex accordingly -- and don't forget that '[', and ']' needs to
be escaped.
Ah, all right. That w
At 12/9/2002 07:20 PM, you wrote:
It'd be easier to use a regular expression for something like this.
Something like this would work (from PHP Architect):
$s = "I am going to be {a} years old on the {b}th of November, {c}.";
$a = array(
"a" => "one hundred",
"b" => "seventeen",
"c" => "two thous
At 12/11/2002 08:09 PM, you wrote:
Okay, so how do you know what to replace something like [author] with?
What exactly are you doing again? I've forgotten the original question.
:)
Ok, got a sentence, like:
a pile of [metal] 600 feet wide and 30 feet tall. On top of it is
a [monster].
At 12/14/2002 12:50 AM, John W. Holmes wrote:
> And here's a good example of why you should always test each solution
> and time it to see what's better. I was recommending a
> preg_replace_callback solution which I thought, as a lot of other people
> would also think, is a lot faster that your ow
At 1/3/2003 05:21 PM, you wrote:
I have split a page up into three sections, header, content and footer.
Header and footer are included in content via PHP. Header contains
Javascript functions. Content and header both call the javascript functions.
When i look at the source generated it looks exa
At 1/3/2003 12:25 AM, Lightfirst wrote:
Can someone explain to me why the loop that counts to 99 appears before the
5 by 5 grid in the following php code?
Yes.
## else {
## echo "";
## echo "";
## echo "Hello" ; $i++;
## } //for else
You start the tags, but whenever your conditional echoes
At 2/4/2003 06:46 PM, you wrote:
i am getting the following warnings after i try to inser data into some
table cells i created. i have PHP Version 4.1.2 and MySQL 3.23.55. Apache
1.3.23. Redhat 7.3. oh, and i have php 4.3.0 installed, but i dont know
how to make apche see it or use it. its ina
At 2/21/2003 05:29 AM, Jason Wong wrote:
> To round to the nearest 5:
>
> Divide by 5
> Round to the nearest integer
> Multiply by 5
Modulus by 5
Subtract the result from the original number.
Of course, my way depends on whether you're rounding up or down.
--
S. Keller
UI Engineer
The Healt
At 7/7/2003 03:07 PM, Apollo (Carmel Entertainment) wrote:
> If you are charing for your product and your source is not open, you
have no place on
> opensource lists.
Just out of curiosity, where did you get the idea this is an "open source"
mailing list? There are plenty of commercial PHP prod
At 7/7/2003 04:09 PM, Apollo (Carmel Entertainment) wrote:
> Well, lets see. I want free advertising too. How about I go to all the
lists I
> am member of and send emails like John from Rekall did "announcing"
widgets or
> services my company does. How will you react to that?
Your level of read
At 7/8/2003 03:30 AM, Hiren Mehta wrote:
> Thnx alot guys You have been of great help :D
And don't forget this list! There are a lot of really talented people on
this list, so if you're trying to figure something out and haven't been
able to find an answer on your own, don't hesitate to ask
At 7/8/2003 02:18 PM, jwulff wrote:
> I have an array exampled below. I want to remove and use certain nested
> arrays from the larger array where the key == title, size, day, etc... How
> does an idiot like myself accomplish this?
You can reference it the same as you reference any other array.
At 3/14/2003 12:53 PM, Ron Petty wrote:
> Here is the code, maybe I am just missing something (this is the part
> where it writes and then opens again...
>> for($i = 0; $i < count($users); $i++)
>> {
>> for($k = 0; $k < count($grouplines);$k++)
>>
At 3/18/2003 11:46 AM, Steve Keller wrote:
> >> for($i = 0; $i < count($users); $i++)
> >> {
> >> for($k = 0; $k < count($grouplines);$k++)
> >> {
> >>
At 3/13/2003 01:05 PM, Christopher J. Crane wrote:
> I am just getting into PDF creation and I am having some issues. Can anyone
> send me a simple script that creates a PDF doc. I would like it to open in
> the browser after creation, not create a file.
Try the EZPDF class. It does just that, ser
At 3/9/2003 09:11 AM, Niels Andersen wrote:
> LOL
>
> I like PHP, but I also like wet girlies. But the two are not interchangable,
> which is a pitty, becouse sometimes I really could use a wet girl, and I
> only have PHP
If god wanted geeks to procreate, women would be accept C includes.
--
S
At 3/18/2003 02:30 PM, Pete James wrote:
> Steve and Niels,
>
> I personally don't think that this sort of garbage has any place on this
list. The PHP lists
> are for the promotion and assistance of the PHP community. In our small
ways, we are
> all ambassadors for PHP and should behave as pro
At 3/28/2003 10:26 AM, Diksha Neel wrote:
> i have a simple program to open and write a file.
> but the file is not getting created.
> can anyone please spot the mistake?
> echo"hi?how are u doing??";
> $fp = fopen ("sandrew.html", "w");
> string="hii am
$string =
> fine";
> $contents=fwrite($f
At 3/28/2003 11:32 PM, Philip J. Newman wrote:
> Whats the best way to make a random password with 4 letters and 2 numbers?
I don't know what the "best" way is, but I had fun doing this one. I filled
the first 4 elements of an array with random letters by using the minimum
ASCII value of a lett
At 3/30/2003 12:42 PM, Lars Tvedt wrote:
> i would have used templates: heres one http://smarty.php.net
> "Liam Gibbs" <[EMAIL PROTECTED]> wrote in message
> > I'd store your themes in stylesheets instead.
Question, Lars, does Smarty allow for easy template changing? I haven't
used it very much.
At 4/1/2003 08:49 PM, [EMAIL PROTECTED] wrote:
> Also, I've not convinced anyone where I'm at now to use smarty. In my
> mind they are penny-wise and pound foolish. The real little extra
> time you might need to use a template system is richly rewarded in
> code re-use and future changes to the s
At 4/3/2003 01:14 PM, [EMAIL PROTECTED] wrote:
> We subscribe to a few email lists on various languages.
Why do people assume that because they subscribe to a mailing list with
their work address that the mailing list must hold to their company's
standards?
> This list would have to be the wor
At 4/4/2003 11:50 AM, Tim Haskins wrote:
> How does one create a statement that basically says:
>
> " )
> { ?>
You make a string with your dynamic statement and then EVAL it.
http://www.php.net/manual/en/function.eval.php
--
S. Keller
UI Engineer
The Health TV Channel, Inc.
(a non - profit organ
At 5/29/2003 01:55 PM, Edward Peloke wrote:
> Isn't php4.3.2 compiled with the gd library
Not necessarily. Run a phpinfo() and look in the configuration for --with-gd.
--
S. Keller
UI Engineer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Pkwy.
Anchorage, AK 99508
90
At 5/29/2003 01:55 PM, Edward Peloke wrote:
> I now have php 4.3.2
I'm sorry, I read the version wrong. Feel free to ignore me.
--
S. Keller
UI Engineer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Pkwy.
Anchorage, AK 99508
907.770.6200 ext.220
907.336.6205 (fax)
Emai
At 5/29/2003 02:42 PM, Edward Peloke wrote:
> Nevermind, I got it working with a few ini changes...
All rightee. Glad I could help.
--
S. Keller
UI Engineer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Pkwy.
Anchorage, AK 99508
907.770.6200 ext.220
907.336.6205 (fax)
At 5/30/2003 04:49 PM, Martin Helie wrote:
> function test() {
> static $i = 0;
> if( $i < 10 ) {
> $i++;
> test();
> }
> echo "I'm here";
> }
>
> I am a little surprised to find that even when $i < 10 and test() is invoked
> again, the current function call execute
At 5/30/2003 05:53 PM, Martin Helie wrote:
> In my test() function, I called test() again inside the if statement (which
> checks true for 10 iterations)
Yes. So you've called the statement 10 times.
> and I thought that the current function would immediately be terminated
> by calling itself (or
At 5/30/2003 06:27 PM, Martin Helie wrote:
> Thanks for explaining that once the function is called and
> completed, the rest of the first call continues executing
> normally. That is what surprised me.
Yup. It's what makes building function libraries a thing of art in PHP, you
can create smaller
At 6/1/2003 09:05 PM, zavaboy wrote:
> How can I strip ALL HTML tags, then turn UBB code to HTML. And I also want
> to know how to turn the HTML back to UBB?
http://us3.php.net/manual/en/function.strip-tags.php
http://promoxy.mirrors.phpclasses.org/browse.html/package/818.html
Google is your fri
At 5/30/2003 09:47 PM, David McGlone wrote:
> Basically what Im trying to do is when lets say "black" is selected from
the
> dropdown, then the price for a black shirt is grabbed from the database and
> inserted into a hidden field.
If you want this to happen dynamically, as the user is on the p
Just wanted to pass a little warning on to the list. I sent a reply to
David McGlone ([EMAIL PROTECTED]) and my email got forwarded to an
address at Bonzi.com. I'm not sure if they're using list replies to harvest
email addresses or not, but I'll definitely be watching my in-box.
From: TechSu
At 6/2/2003 02:44 PM, Vijay Avarachen wrote:
> I know I gotta do somethign with onchange=""
That's Javascript, not PHP.
> I was thinking perhaps I can just do somthing like
onchange="PHP_SELF?product=". No I
> know thats not the syntax but you get the idea =)
That won't "dynamically load" any
At 6/3/2003 04:24 PM, Ryan A wrote:
> I simply want to submit my form to either one.php or two.php or thr.php
> depending on which BUTTON is pressed (I am using html buttons type='submit' value='blah'>) I have 3 buttonshow do i set it?
You can do this one of three ways:
1. Instead of actuall
At 6/10/2003 02:56 PM, Stephen Goddard wrote:
> Can anyone tell me what this does ${varname}
> I cant find any information as to what the braces do.
Which is odd because searching for "braces" at PHP.net takes you the
"strings" section, which explains in detail several functions of curly braces.
At 6/11/2003 09:42 AM, Amanda McComb wrote:
> If I have multiple forms on a page, and each form has it's own name, how
> can I tell which form has submitted?
By its contents.
--
S. Keller
UI Engineer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Pkwy.
Anchorage, AK 99508
At 6/16/2003 05:45 PM, Suhas Pharkute wrote:
> I have a php script which generates a string which has php code in
it. I need to run that code.
http://www.php.net/eval
--
S. Keller
UI Engineer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Pkwy.
Anchorage, AK 9950
At 6/18/2003 03:22 PM, Logan McKinley wrote:
> the error checking include file just handles php errors, the javascript
> handles form validation. I believe the problem i am having is with the
> session not the error handling, because i removed all validation and it did
> the same thing.
Yes, that
At 6/18/2003 02:51 PM, Logan McKinley wrote:
> <-- the code in question >
> I have attached the actual files if that would be of more help,
> Thanks in advance for any help,
The first thing that I noticed is that you're doing error checking in
"registration_form.php", but your form i
At 6/19/2003 02:10 PM, Sparky Kopetzky wrote:
> 2. How do you put 2 items that you want to save in the cookie and
retrieve??
Smuch 'em together into a single variable with a delimiter you're sure
won't show up in either value, something like "#@@#", between them. Then,
when you read the cookie
At 6/20/2003 02:33 AM, Haseeb Iqbal wrote:
> yeah there is a way
No there is not a way. The way the web works is by sending your content to
someone else' computer. Once it's there, they have a copy, whether it's in
their cache or actually saved as a file. There's no way to prevent a
determined
At 6/19/2003 10:41 PM, Kyle Babich wrote:
> Inside of another file I'm trying to read setup.txt into $rawSetupData
and explode that with \r\n's
> into an array called $setupData.
Why on earth?
http://us4.php.net/file
>
> if (file_exists("setup.txt")) {
>$rawSetupData = readfile("setup.txt
At 6/25/2003 10:26 AM, Kevin Stone wrote:
> You're missing a starting bracket.
>
> You know this was WAY too easy to find. What kind of editor are you using
> that would miss something this obvious?
A little indenting goes a long way...
--
S. Keller
UI Engineer
The Health TV Channel, Inc.
(a non
Hey all, I need a little help with moving a file on the server after an
upload.
Our company site is hosted, so I don't have full access to the
configuration files, but I can do a PHP_info dump if you need more
clarification. Using 4.0.1pl2.
What I'm doing is uploading a file from a form, and
At 11:12 AM 8/26/2002 +0200, you wrote:
> I'm trying include .php files which reside in alternative directories or
> sub-directories. Such as a file which reside in www/chat/page.php, and for
> this page I would like to include a file which resides in www/forum/include/
Using $DOCUMENT_ROOT h
I'm hoping someone here might be able to spot what I'm doing wrong with my
installation. This is new to me and I've done the best I can by following
the documentation, but I can't find a solution to this problem anywhere,
even Googling for the error.
We're trying to upgrade our version of PHP
At 9/30/2002 04:39 AM, Rick Beckman wrote:
>On line "6", I have the list of musicians in the song.
>Example (ignore the quotes): "Doyle Lawson -- lead vocal; Dale Perry -- bass
>vocal"
>Is there a way to make it so that, when I include line 6 in my PHP template,
>the ";" will be replaced with a l
At 9/30/2002 06:17 PM, you wrote:
>Is there any version of php and apache for which there are no known
>vulnerabilities??
It's the vulnerabilities you don't know about that get you.
--
S. Keller
UI Engineer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Pkwy.
Anchorage
At 10/31/2002 03:00 PM, John Wards wrote:
On Thursday 31 Oct 2002 3:00 pm, jianking wrote:
> Who can tell me where I can get the cracked Zend Encoder 3.0 ?
Are you a muppet?
This list is run by the people who make Zend Encoder!
FOOL
Ah, my first laugh of the day.
--
S. Keller
UI Engineer
T
At 11/15/2002 06:09 PM, you wrote:
Don't know about a correct way but you can use if(empty($variable))
I may be crazy, but wouldn't if ($variable) work just as well? If the
string is empty it'll return a negatory on that check.
Lemme double check that.
$testVar = "";
if ($testVar) {
echo "
Err... sorry. The logic was there but my fingers got a bit ahead of my
brain. The check works, but if you want to just check if it's empty turn
the conditional to a negative, like so:
if (!$testVar) {
etc.
}
That makes it "If NOT $testVar"
> I may be crazy, but wouldn't if ($variable) work
At 11/18/2002 07:55 AM, you wrote:
I have document in encryption type : B*C*N**N but I don't know how do
abbab abbab
Well, assuming that the above isn't someone sending you The Kinks, and
flogging myself for replying to an off-topic post...
A simple Google search should have directed you rig
Ok, I'm going to break down and ask for help.
I'm trying to post an XML file to NetLedger through HTTPs, but cURL isn't
returning any errors when I run through PHP, and the file isn't getting there.
Can someone point me in the direction of a site with some *good* help on
how to do file posting
At 11/20/2002 08:46 AM, you wrote:
>Have you tried this:
>http://curl.haxx.se/libcurl/php/examples/
Yeah. That's where you end up from the Sourcefourge site. There's a sample on there
for a multi-part post, but I'm confused as to how it works.
>Would help if you posted some code, or errors or s
I apologize for being a pest about this, I'm just not getting it.
I'm attempting to open a connection to NetLedger to post an XML file. I'm
attempting this basic code, which is pretty much what I find everywhere:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://partners.netledger.com/
At 11/21/2002 11:55 AM, greg R wrote:
I don't think cURL is very intuitive.
Well, I'm glad to see someone else say that. Makes me feel less retarded.
Can you at least echo a response code from your
function, such as
$res = curl_setopt($ch, CURLOPT_URL,
"https://partners.netledger.com/SmbXml
At 11/21/2002 03:18 PM, Bret L Conard wrote:
Really appreciate the help Bret. But I've still got some problems:
(FYI - I am using authorize.net, so some of the response parameters may be
different for you)
Actually, I appreciate the fields demonstration because it made me realize
I was missin
At 11/21/2002 05:16 PM, Jonathan Rosenberg wrote:
> I suspect your problem is that CURL is not built with SSL support. To test
> this, replace the https:/.../ with a reference to a non-SSL URL
> (http://.../). If you get a return that, you need to build CURL with SSL
> support.
Indeed it does.
At 11/21/2002 06:21 PM, Bret L Conard wrote:
one of these should work to import the file
The following options expect a file descriptor that is obtained by using the
fopen() function:
CURLOPT_FILE: The file where the output of your transfer should be placed,
the default is STDOUT.
CURLOPT_INFILE
At 11/22/2002 04:30 PM, Duncan Ellwood wrote:
Can I personalise this a bit to display the From: as the email address that
the user has supplied i.e $Email
You can specify the "FROM" field in the headers before you call the mail()
function.
It's all in the manual.
http://www.php.net/manual/
Ok, here's the situation:
I've got a script that's catching a backdoor post from Verisign. The
script then generates an XML file based on the information that's posted.
The goal being to make Verisign and our online accounting system pseudo-
integrated so that as soon as a post comes through V
First, thanks to the people who've helped me so far.
I'm a UI designer who's suddenly found himself responsible for a very large
website that integrates services from no less than four different providers,
and I've been dumped into learning PHP on my own under a heavy deadline.
Anyway, I'm catch
67 matches
Mail list logo