我正在嘗試更新hook_cron函數上的Node。我使用Drupal6這裏是我的代碼 function offers_cron() {
$query= db_query("SELECT * FROM {node} WHERE type = 'product'");
while($allnodes = db_fetch_object($query)){
$node_id=$allnod
有一個PHP腳本,將節點我的故事的Drupal網站: function post_to_webpage($title, $body, $teaser, $promote) {
//set the working directory to your Drupal root
chdir($_SERVER["DOCUMENT_ROOT"].'/webpage/');
//require the