के भीतर कोई फ़ंक्शन कैसे चलाएं यह एक त्वरित लेकिन सरल प्रश्न है। मैं एक बुरा दिन हो रहा है और ऐसा करने के तरीके पता नहीं है:इको कॉल
मैं क्या करने की जरूरत है इस है ...
मैं यूआरएल में PMD के लिए जाँच कर रहा हूँ यदि ऐसा है तो यह गूंज:
<?php
if (isset($_GET['pmd'])) {
echo"<div class=\"response\"><p style=\"width:350px; height:200px; vertical-align:middle;\"><strong>Thank you for acting as a "watchman on the walls" of Jerusalem! Your name will now appear on our virtual wall.<br><br>You can also catch up on the latest news from Israel by visiting our news feed below.</strong></p></div>";
}else { etc...
मुझे इसमें शामिल करने की आवश्यकता है जैसे कि एक ट्रैकिंग पिक्सेल को फायर कर रहा है।
<img src="url.com?cid=12345&aid=1234&oid=<?php echo mt_rand(); ?>&quantity=1" height="1" width="1" />
क्या मैं करना चाहते हैं यह है:
<?php
if (isset($_GET['pmd'])) {
echo"<div class=\"response\"><p style=\"width:350px; height:200px; vertical-align:middle;\"><strong>Thank you for acting as a "watchman on the walls" of Jerusalem! Your name will now appear on our virtual wall.<br><br>You can also catch up on the latest news from Israel by visiting our news feed below.</strong></p>
<br />
<img src="url.com?cid=12345&aid=1234&oid=<?php echo mt_rand(); ?>&quantity=1" height="1" width="1" />
</div>";
}else {
क्या मुझे लगता है कि mt_rand() फ़ंक्शन आग को पाने के लिए क्या करना होगा?
धन्यवाद,
मैट इस तरह
आपको यूआरएल में '' का उपयोग करना चाहिए, न कि '&'। – Artefacto
यदि आप स्ट्रिंग में उद्धरणों से बचना नहीं चाहते हैं (इसे पढ़ने में और अधिक कठिन बनाता है), बस '' ' –