Using arguments with a PHP script in HTML -



Using arguments with a PHP script in HTML -

how can pass argument php script in this:

<?php require '../scripts/listpictures.php'; ?>

adding argument @ end causes whole script break , using vardump on argv returns null.

you don't send arguments because include/require runs script if wrote in place.

so check parameters script needs (something in session? on request? variable perhaps?) , set before require.

a improve approach turn whatever within listpictures.php function, send parameters

alban reply much little. creating class, instancing it, calling it, simple task =p rather either create function within that, since it's easier, cleaner, faster (both , php run) , uses less memory

php

Comments