is being generated by Apache and is therefore nothing to do
with the phpMyAdmin configuration file. My guess is that you have the
case wrong. Try http://localhost/~pgarcha/phpMyAdmin/index.php
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
/zend-accelerator.php
I hope that helps.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e. A sizable chunk of the text at the start of the variable has been
lost and I cannot figure out why. Can anyone give me any pointers?
Thanks.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
absolute path to the image on the server, not
URL.
Is there a way to get the script to load in the new photos?
When you create the src tag in for the image, add a random number query
string - that will cause the browser to request the image instead of
using the cached version. I.e...
echo
ay nothing.
If i have register_globals=on, then the echo command displays the
value buy this way is deprecated.
How can i run the script without problems having register_globals=off?
p02.php code:
...
...
echo $_GET['pp'];
...
...
--
Stuart
--
PHP General Mailing List (http://www.php.
ster_globals on.
--
Stuart
p02.php code:
...
...
echo $_GET['pp'];
...
...
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
okies, etc). You can use other variables in the same
way as you ever did.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
won't probably find it there, you'll have to copy it there yourself.
The easiest way to find out where PHP expects your php.ini to be is to
create a page that calls phpinfo() - the configuration file location is
near the top of the output.
--
Stuart
--
PHP General Mailing List (http://w
cript
containing extra URL's for the robot.
The best way I've found of doing this is to include the links as 1x1
transparent gifs on the index page.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Rodney Green wrote:
$blah = shell_exec ("echo %ComputerName%");
Eww, evil. Try http://php.net/getenv
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A. Mikkelsen wrote:
But when I ECHO 'new_loc_path' in a function I get
S:\\Script\\License\\
But I want go get
S:\Script\License\
http://php.net/strip_slashes
You might also want to look into the magic_quotes_gpc option in php.ini.
--
Stuart
--
PHP General Mailing
Stuart wrote:
http://php.net/strip_slashes
http://php.net/stripslashes (oops, sorry)
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
how big the file will be. Try the following...
http://www.google.com/search?q=php';
$fp = fopen($url, "r");
while (!feof($fp))
{
$buffer = fread($fp, 1024);
echo $buffer;
}
?>
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nick Wilson wrote:
* and then Stuart declared
2) If you want to query google you're better off using the google SOAP
API - it's legal for a start. See the following for more info...
http://www.google.com/apis/
http://www.devshed.com/Server_Side/PHP/GoogleAPI/page1.html
ery string, like so...
http://www.yourserver.com/yourpage.htm?color=red#RowNum3
target="doc">Jump
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ewald Geschwinde wrote:
The problem is the /> at the end.
Has anyone seen this before?
What can I do against it?
Why do you want to get rid of it? It's there to make it valid XHTML. It
shouldn't cause any problems.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
T
of the fields in Exchange are exposed through LDAP (this is from
experience, I have no reference to back this up but would appreciate it
if someone else has any info on the LDAP implementation in Excahnge
5.5+). I would guess from your question that 'office' is one of the
fields th
7;DOCUMENT_ROOT']
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Decapode Azur wrote:
Is it possible to make php scripts working like deamons
and build something like a server?
Yes.
http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-answers.html
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
internet
explorer.
There are no error messages in the apache log or the mysql log.
Does anyone have any idea what is going on?!?
This is most likely an issue with the client-side (i.e. the Acrobat IE
plugin) and not PHP given that restarting IE (i.e. restarting the
plugin) solves it.
--
Stuart
n display thumbs of pages on your site in its reports. It runs on
Windows and appears to load the page in and embedded IE instance then
takes a screenshot.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the default value of 2MB. Try
setting it and see what happens.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you either need to rename index.html to index.php or tell the web
server to run .html files through PHP (refer to the PHP manual for
details on how to do this).
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
bed at
some later date and is then periodically updated unless no requests are
made for it after a certain period. But I'm just making a slightly
educated guess.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Cameron B. Prince wrote:
How would I go about determining if a specific key exists in an array?
http://php.net/isset
I want to see if $conf['hOpt'] is defined. is_array only works at the $conf
level.
I tried count(array_keys($conf, 'hOpt')), but always get 0.
if (isset($conf[
";, "r");
$contents = fread($fp);
print $contents;
fclose ($fp);
print '' . "\n";
?>
fread takes 2 parameters: the file pointer and the number of bytes to
read. See http://php.net/fread for full info.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that will
introduce you to the fundamentals of PHP. There is a list of titles
here: http://php.net/books
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
thods like running a PHP script as a daemon and
getting web requests to check each time but neither of those are
anywhere near as reliable or efficient as cron. Why don't you want to
use cron?
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
file of the database
No you didn't... which is actually a good thing. Feel free to include
snippets of code, ideally 3-4 lines before and after the line specified
in the error message, but I (and I'm sure many others) on this list
would prefer it if you didn't send attachments - I g
27;t forget the effect media hype had on their reputation. Cookies
were portrayed as bad guys. As John says, they're not if they're used
correctly, but it only takes one high-profile example of improper use to
tarnish a reputation forever.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
p/ "c:/php/"
AddType application/x-httpd-php .php .phtml
Action application/x-httpd-php "/php/php.exe"
See here: http://uk.php.net/manual/en/install.apache.php
If Apache 2, I'm not sure what they steps are, but I ask again, why
can't you use the module?
[1] http://uk.php.net
ch case you can have both the
module and the CLI version running at the same time.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
cess_file file2');
system('/usr/local/bin/process_file file1 &');
system('/usr/local/bin/process_file file2 &');
Should work in theory. Haven't test it though.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jonno Agnew wrote:
if ($guessnumb) {
Try $_GET['guessnumb'] or $_POST['guessnumb'] if the form is posted.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$this->database = & new database();
$this->accessory = & new accessory();
$this->order = & new order();
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it's actually creating 2 database objects one
of which will get deleted at the end of the function.
By assigning the reference (that's what the & gets) only one object is
created. Does that make sense now?
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sure that the output of that
program is redirected to a file or some other output stream or else PHP
will hang until the execution of the program ends."
So try this...
system('/usr/local/bin/process_file file1 > /dev/null &');
system('/usr/local/bin/process_file file2 >
olved) problem?
I may be way off base here (I am far from an expert on apache), but I
think when you use mod_php, the php.ini is only loaded one time, right
when apache starts up.
Some of the other posters can probably tell you if I am correct or
not.
Yup, that's correct.
--
Stuart
--
PHP Gener
er the similarity or the
publicity from the action MS would take. The lucky fscker got the latter.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2008/12/19 Gary Maddock-Greene :
> Thanks Stuart,
>
> Logs are no enabled and I generate this line:
>
> #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port
> cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
> time-taken
>
> Sorry this
7;t try your suggestion php -1 ... not sure how to!!
Fair enough, just use the error log.
-Stuart
--
http://stut.net/
> "Stuart" wrote in message
> news:a5f019de0812190516r3cdcdacana356320f39a8d...@mail.gmail.com...
>>
>> 2008/12/19 Gary Maddock-Greene :
>>>
>
urning of 0 results)
That line is not valid code. I'm guessing it's part of a comment that
has mistakenly been broken across 2 lines.
-Stuart
--
http://stut.net/
> "Stuart" wrote in message
> news:a5f019de0812190516r3cdcdacana356320f39a8d...@mail.gmail.com...
>>
&
ulent and difficult, but nothing
worthwhile comes easy and I know it's gonna be worth it!
Anyone got an interesting resolution beyond the usual
drinking/smoking/eating less? I intend to spend less non-work hours
sat in front of a computer and blog/twitter more. Those two are
probably mutual
e fields are limited to 255 chars (IIRC) in
length.
text: for all intents and purposes these have unlimited length (4GBish IIRC).
There is a page in the MySQL manual that explains all of the data
formats. Google for mysql data formats and you'll likely get it.
-Stuart
--
http://stut.ne
g to do with PHP. I suggest you try the
YouTube developers site - I'm sure there's a resource there that can
help you... http://youtube.com/dev
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ity of a third party API.
-Stuart
--
http://stut.net/
> On Jan 7, 2009, at 4:40 AM, Stuart wrote:
>
>> 2009/1/7 L. Herbert :
>>>
>>> Does anyone know if it is possible to get a collection of YouTube videos
>>> from multiple user accounts? If so, can you pr
the end of the URL in the
require call that should also work, but is easily copied. You could
randomise "safe_flag" and the value to make it more difficult, but
checking the IP is far better IMHO.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/1/7 Ross McKay :
> Oh, and for a column with a limited range of values, enum beats 'em all!
Got anything to back that up?
http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/
-Stuart
--
http://stut.net/
--
PHP General Mail
host has upgraded the server
software which has broken the site. It needs work and they need to pay
for it. If they object tell them you can work around the issue but it
means potentially exposing the site to potentially fatal security
risks.
-Stuart
--
http://stut.net/
--
PHP General Mailing
>> question.
>
> local.php
>
>
> $safe_flag = 1;
> require_once("http://otherhost.com/remote.php";);
>
> ?>
If the remote side is returning the code rather than running it then
anyone can see exactly what to do to get it to work. There is no
security there.
OP: Does otherhost.com run the code or return it?
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
il server?
>
> I am not sure what you mean by that...
They mean not using sendmail but instead talking SMTP with a remote mail server.
I believe PHPMailer supports this - check it out...
http://phpmailer.codeworxtech.com/
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nothing more complicated than that.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is otherwise Type
> Hinting would never have been introduced.
Type hinting is the happy medium between untyped and strongly typed variables.
Also, PHP is procedural with OO capabilities due to its history and
the engine developers commitment to maintaining backwards
compatibility whenever possible.
> PHP could easily be a one for all language and AFAIK the only major
> functionality missing is static typing..? I'm not trying to knock PHP,
> simply expand it's functionality and scope by having additional *optional*
> functionality implemented - like namespaces, if you don't like 'em don't use
> 'em.
Namespaces have a distinct and discrete advantage for all PHP users...
they will allow code to insure against naming clashes.
All IMHO - PHP FTW!!
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
enhancements have unexpected side effects that make them anything but
simple, especially when you need to maintain BC as much as possible.
Also, ignore Tony... PHP won't get better without people making
suggestions, even if they turn out to be impractical or unpopular, so
don't ever "LEAVE PHP ALONE"!! ;-)
-Stuart
--
http://stut.net/
2009/1/17 Nathan Rixham :
> Stuart wrote:
>>
>> 2009/1/17 Nathan Rixham :
>>>
>>> Tony Marston wrote:
>>>>
>>>> "Nathan Rixham" wrote in message
>>>>>
>>>>> a: Optional Static Typing
>>>>&
between untyped and strongly typed
>>>> variables.
>>>
>>> yup-ish, could do with that type hinting on vars, properties and return
>>> types too (infact if you had it on vars and properties you could forget
>>> return types theoretically, wouldn'
e feasible to change
> PHP so that it can be switched between dynamic typing to static typing at
> the flick of a switch. PHP is dynamicly typed, so either get used to it or
> switch to a different language.
I don't recall seeing anyone say it's not feasible, just that it comes
7;ll quickly lose a valuable source of
ideas.
I'm done with this now as you're clearly set in your ways and it's not
adding value to the discussion.
Nathan: I see you've taken this over to the internals list. I wish you
luck with your suggestions. Keep 'em coming.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
pitfalls I might face when doing something like this?
It's a security feature to prevent SQL injection. AFAIK you'll have no
problems so long as all calls to mysql_query happen on the same DB
connection so you might want to start using the linkid parameter.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
info, rather
than trying to control what people do with your publicly accessible
site, which is a battle you can't win.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
admin work.
Unless you feel like gambling that you'll get more with a fixed annual
fee. But remember that it is a gamble. Either way make sure there's a
written agreement that details exactly what's included in any fixed
fee.
-Stuart
--
http://stut.net/
--
PHP General Maili
a mailing list. Come again?
>>
>>
>
> So Funny, they went through all the trouble of signing up, unless hey have
> bots now that can sign up to mailing lists?
Yes they do - it's not hard, but you don't actually need to subscribe
to PHP mailing lists to post to them.
-Stu
g or array). Again, look at the line it
points you to and confirm the variables it contains have the values
you think they should.
This is basic debugging. Spending time resolving these errors yourself
is time well spent, and the more you do it the easier it becomes.
-Stuart
--
http:/
related to the first. When formatting text
>> using printf the padding works great when running from the command line but
>> not at all when in a browser.
>> Here is the code that I am working with:
>>
> Browsers **only** support HTML.
>
> They do not unders
sure what you're asking.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
an());
> }
> catch (Exception $ex) {
>exit('Exception:' . $ex->getMessage());
> }
>
>
> I'm exercising that code on PHP 5.2.4 and 5.2.8.
>
> Does anybody know why throwing an exception seems to override ob_start(),
> flushing the buffered output?
I
27;m not sure what you mean by "stick with the session". What exactly
are you trying to achieve?
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
actually trying to
achieve because they're wanting to know how to do something that's not
possible so the question is flawed.
Rant over.
-Stuart
> -----Mensagem original-
> De: Stuart [mailto:stut...@gmail.com]
> Enviada em: quarta-feira, 4 de fevereiro de 2009 07:52
>
ou
want it to you would not be able to create rules around what
properties can be created or what values they can hold.
I use those magic methods to implement validation in my model classes.
If $this->x simply created x I would have to implement it using
accessor functions which IMHO is much le
file.
>
> How can I correct this ?
The default_mimetype applies to the headers returned to browsers by
PHP, it does not have any effect on emails you send.
To send HTML email I would suggest you use phpmailer[1] because it
makes the whole process quite painless.
-Stuart
[1] http://ph
pted.
To the OP: Which DB server you use is far less important than making
sure you're using it right and optimising it as much as possible. Sure
there are differences between them, and MySQL is better in certain
situations than Postgres but a badly configured and optimised Postgres
in
omething gets
deleted that gets recorded in a semi-structured but fairly generic way
so if I need to know when record x was deleted from table y and what
record x contained I can craft a SQL query to get that from the audit
log table, albeit fairly slowly. I also records inserts and updates to
create a complete record.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the fast tags, http://stut.net/projects/phpspeed/?iterations=1
As you can see, the difference is so minimal that unless you're doing
it hundreds of thousands of times per script it makes little
difference how you do it.
In short it's usually not worth optimising at this level since greate
t. Turn it on and browse
your site. You will see the cookies in the headers of both requests
and responses. Cookies are not stored on the server side, they are
sent by the client with each request.
No additional HTTP requests are involved when using sessions.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Use an auto_increment field then, assuming MySQL you can use
mysql_insert_id to get the ID of the last record inserted on a given
connection.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/2/7 revDAVE :
> On 2/7/2009 11:41 AM, "Stuart" wrote:
>
>>> Then, after I inserted the record - I would do a quick query that would
>>> retrieve the record ID by searching for the random number
>>
>> Ouch that's nasty!!
>>
>&g
lise why the number is not available. You have to bear in
mind non-public use which will not be insignificant, servers where PHP
is not advertised and a multitude of other reasons why any number you
could come up with *will* be wrong, and therefore pretty useless.
Why anyone would see value
e sql');
>
> $r3 = $r1.$r2;
>
> I suppose they could be read into an array then output that way, but I was
> hoping to more easily just append the result sets.
Best place to do this is in the SQL query with a UNION.
http://dev.mysql.com/doc/refman/5.0/en/union.html
-Stuar
2009/2/8 tedd :
> At 3:54 PM + 2/8/09, Stuart wrote:
>>
>> 2009/2/8 tedd :
>>
>> > I wasn't able to find a lot of information, but here's a useful link:
>>>
>> > http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
&
2009/2/8 tedd :
> At 8:44 PM + 2/8/09, Stuart wrote:
>>
>> 2009/2/8 tedd :
>>
>> > just trying to get a handle on the number of people who program in php
>> --
>>>
>>> what's wrong with wanting to know that figure?
>>
from passwords. By removing characters you're significantly
reducing the number of possible passwords.
-Stuart
> Jan G.B. wrote:
>>
>> 2009/2/9 Andrew Williams :
>>
>>>
>>> Can some body help out on how to validate user password from the
>>> dat
2009/2/9 Jan G.B. :
> 2009/2/9 Stuart :
>> I would also advise against stripping and trimming
>> anything from passwords. By removing characters you're significantly
>> reducing the number of possible passwords.
>
> Surely, the stripping should only be done whe
h is that products from
closed corporations carry more risk than open source software. You
should tell them your QuickBasic story - that might start some mental
cogs turning in their heads.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>> asp numbers, right?
>>
>> Cheers,
>>
>> tedd
>
> Probably not. For that matter, ColdFusion under both IIS and Apache on
> either Windows or Linux (though the only couple installations I've
> seen have been on Windows/IIS). You could get a rea
the professors knew it so I had to teach myself. It's the original
and IMHO still the best implementation of OOP concepts around.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
y of reasons. Since you can't say with any
certainty what your margin of error is, the numbers will be
meaningless as a measure of language usage.
Having said that it's been a while since I wrote a spider, shame I
don't have time to have a go at the moment. Have fun ;-)
-Stuart
2009/2/9 Daniel Brown :
> On Mon, Feb 9, 2009 at 15:21, Stuart wrote:
>>
>> I would advise you against wasting your time because there is no
>> reliable way to tell what systems a server is actually using to serve
>> pages. Nearly all sites I work on these da
PVPM...
$token = sha1($_SERVER['REMOTE_ADDR'].microtime(true));
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t's you I'm going to offer you this ebook at the very
very very low limited time price of $49 and I'll throw in a free
watermelon.
Ahh, hell, I can't be arsed. It's in the frickin' manual: http://php.net/oop
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rforms extremely well. APC has a similar feature but I've never
used it.
Also, are you guestimating the performance of DB queries against a
serialised file? Do some tests and you might be surprised at how
quickly PHP can unserialise data.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
isit: http://www.php.net/unsub.php
Yup, that's really hard!!
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ault to. It
just happens that one of those fields is XML.
> $response = curl_exec($ch);
>
> Is this use of http_build_query the best way to send XML? Any other curl
> options I should be setting? I tried urlencoding() the $xml, I tried
> htmlspecialchars(), I tried nothing at all, I tri
#x27;re lying because only part
of it is.
As a test try setting $postArgs = $xml. If I'm right it might either
work or give you and authentication error.
-Stuart
> On Feb 11, 2009, at 4:56 PM, Stuart wrote:
>
>>> curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type:
HTML file containing a form with those fields
that posts to the destination URL, fill it in with valid values and
see what happens when you post that. Remove CURL from the equation,
and if that doesn't work go back to them and show them that form and
the response you get, because according to
e the browser has no idea that index.php
indicates the current directory so it resolves relative paths using
the full URL.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ndex.php you need to change it
to arse.
Another example... if you have crack
where crack.php is in the subdirectory somedir beneath where index.php
is you need to change the tag to crack.
You need to apply this to all URLs in your code, including
stylesheets, images and javascript references. This should not be a
difficult concept to grasp, so maybe I'm not explaining it right. If
so please explain what you understand by what I'm saying and I can
alter it to be more helpful.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/2/16 Thodoris :
> In addition to this there is an API for C that can be used to code web
> applications and it is known as CGI (it is provided by many languages)
CGI is a protocol not an API and has no specific connection to C.
-Stuart
--
http://stut.net/
--
PHP General Mailin
ntroller pattern (as evidenced in another thread).
It's simple to fix this. Add a hosts entry for mysite.local pointing
at pokey's IP. Change the server software so it has a virtual host for
mysite.local pointed at the mysite.com directory in the existing web
rooot.
This is not difficult and will allow you to solve both of the problems
you are currently asking this list about.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ction to
TCP/IP, HTTP or networks in general.
-Stuart
--
http://stut.net/
> 2009/2/17 Stuart
>>
>> 2009/2/16 Thodoris :
>> > In addition to this there is an API for C that can be used to code web
>> > applications and it is known as CGI (it is provided by m
ne already then there may be a problem
with the system, but please make sure you've fully read, understood
and actioned the instructions in the email you get back.
-Stuart
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 1126 matches
Mail list logo